permaculture playing cards
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
JavaRanch » Java Forums » Java » Applets
Bookmark "Java Applet hangs (client server architecture)" Watch "Java Applet hangs (client server architecture)" New topic

Java Applet hangs (client server architecture)

shreelaxmi patki

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

Joined: May 03, 2008
Posts: 5115

Hi shreelaxmi, and welcome to the Ranch! Please BeForthrightWhenCrossPostingToOtherSites

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

Joined: Apr 07, 2011
Posts: 5
Thank you for letting me know the policy.I will post my queries on here onwards.
shreelaxmi patki

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(
at javax.swing.JTable.getValueAt(Unknown Source)
at com.wccs.rsmfm.RsmFmApplet.printRemoteDirectory(
at com.wccs.rsmfm.RfbProto.readFTPMsgDirectoryListEndContent(
at com.wccs.rsmfm.RfbProto.readDriveOrDirectory(
at com.wccs.rsmfm.RfbProto.readRfbFileTransferMsg(
at com.wccs.rsmfm.VncCanvas.processNormalProtocol(
at Source)
RFB socket closed
so from this it is definitely not a memory leak how should i go about solving the hang issue? please help.
shreelaxmi patki

Joined: Apr 07, 2011
Posts: 5
Hello, i have not come up with any solution yet.can anyone please help me with this issue?
I agree. Here's the link:
subject: Java Applet hangs (client server architecture)
It's not a secret anymore!