Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Java Applet hangs (client server architecture)

 
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.
 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • 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?
 
    Bookmark Topic Watch Topic
  • New Topic