• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Applet hangs (client server architecture)

 
shreelaxmi patki
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Darryl Burke
Bartender
Posts: 5148
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi shreelaxmi, and welcome to the Ranch! Please BeForthrightWhenCrossPostingToOtherSites
http://www.java-forums.org/java-applets/41996-java-applet-hangs.html
 
shreelaxmi patki
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for letting me know the policy.I will post my queries on javaranch.com here onwards.
 
shreelaxmi patki
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, i have not come up with any solution yet.can anyone please help me with this issue?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic