Java Applet hangs (client server architecture)

Hello, our project is an applet running on client server architecture,whose basic function is remote machine sharing(inspired from UltraVNC viewer and customized).we are trying to do a file transfer from client to server.while transferring a 100mb file for the 3rd time(after successful attempts twice) the applet hangs(file gets transferred without any problem though) and the browser should be restarted.the logic used is,we first zip a file to be sent to server and then unzip at server side (and vice versa).we are stuck up as how to narrow down our problem area.we found out possibilities though 1.socket closes after file transfer 2.might be buffer problem. we suppose there is a problem in unzip function.i paste that code here.thanks in advance.

is size of buffer array a cause of the problem? or the input/outputstream/bufferedoutputstream a problem? kindly help.

Thank you for letting me know the policy.I will post my queries on javaranch.com here onwards.

shreelaxmi patki
Greenhorn

Joined: Apr 07, 2011
Posts: 5

posted Apr 07, 2011 23:50:22

0

Hello, with reference to the applet hang problem,when it hangs the java console log reads as follows:
Error: -1
java.lang.ArrayIndexOutOfBoundsException: -1
at java.util.Vector.get(Unknown Source)
at com.wccs.rsmfm.DetailsJTableModel.getValueAt(DetailsJTableModel.java:135)
at javax.swing.JTable.getValueAt(Unknown Source)
at com.wccs.rsmfm.RsmFmApplet.printRemoteDirectory(RsmFmApplet.java:1223)
at com.wccs.rsmfm.RfbProto.readFTPMsgDirectoryListEndContent(RfbProto.java:2726)
at com.wccs.rsmfm.RfbProto.readDriveOrDirectory(RfbProto.java:1114)
at com.wccs.rsmfm.RfbProto.readRfbFileTransferMsg(RfbProto.java:1008)
at com.wccs.rsmfm.VncCanvas.processNormalProtocol(VncCanvas.java:129)
at com.wccs.rsmfm.RsmFmApplet.run(RsmFmApplet.java:631)
at java.lang.Thread.run(Unknown Source)
RFB socket closed
-----------------------------------------------------------------------------------------------------
so from this it is definitely not a memory leak problem.so how should i go about solving the hang issue? please help.

shreelaxmi patki
Greenhorn

Joined: Apr 07, 2011
Posts: 5

posted Apr 08, 2011 02:47:52

0

Hello, i have not come up with any solution yet.can anyone please help me with this issue?