This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Applets and the fly likes Java Applet hangs (client server architecture) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Java Applet hangs (client server architecture)" Watch "Java Applet hangs (client server architecture)" New topic
Author

Java Applet hangs (client server architecture)

shreelaxmi patki
Greenhorn

Joined: Apr 07, 2011
Posts: 5
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

Joined: May 03, 2008
Posts: 4523
    
    5

Hi shreelaxmi, and welcome to the Ranch! Please BeForthrightWhenCrossPostingToOtherSites
http://www.java-forums.org/java-applets/41996-java-applet-hangs.html


luck, db
There are no new questions, but there may be new answers.
shreelaxmi patki
Greenhorn

Joined: Apr 07, 2011
Posts: 5
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
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
Hello, i have not come up with any solution yet.can anyone please help me with this issue?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Java Applet hangs (client server architecture)
 
Similar Threads
UnZip error
Problem in unzipping a folder using java.util.zip API
if statement inside try/catch block
UnZipping Occurs in Server System only
Unzip problem .. please its urgent