Results 1 to 3 of 3
Thread: Applet hang
- 08-08-2009, 01:41 PM #1
Member
- Join Date
- Aug 2009
- Posts
- 1
- Rep Power
- 0
Applet hang
Hi,
I'm new to the forum and new to applet development, although I do have some Java experience. I have a strange problem with an Applet. It does some minor UI and file handling which works fine but it also needs to post some data back to the server, I have tried using both HttpUrlConnection and the Apache Commons HttpClient but both completely hang the JVM and the browser and I cannot figure out why, I have got it down to a single line in a method which will completely hang:
GetMethod method = new GetMethod(<url removed due to forum restriction>); // URL is a fully qualified HTTP URL on the same domain
That is the only line in the method, without it, obviously nothing happens, with it, everything hangs and I have to force quit the browser process. The last line in the console is:
network: Connecting to <my server>/java/commons-httpclient-3.1.jar
Does anyone have either a clue what would cause this or how to debug? I've tried using jstack but it errors saying that "-m is not supported in OSX"
Any help would be much appreciated!
Thanks.
- 08-09-2009, 09:57 AM #2
Member
- Join Date
- Apr 2009
- Location
- Brisbane
- Posts
- 86
- Rep Power
- 0
No idea... Evidently, you already know how to use SOP's to debug an applet, which is my "standard approach"... if you really want help you're going to have to prepare an SSCCE.
Hanging the browser is definately BAD. Good luck with that ;-)
- 08-10-2009, 06:43 AM #3
Senior Member
- Join Date
- Mar 2009
- Posts
- 552
- Rep Power
- 5
My guess is that there is a failed connection somewhere that does not stop trying to get through, though the browser hanging is fishy... You definitely need to post some code before anyone can help you.
If the above doesn't make sense to you, ignore it, but remember it - might be useful!
And if you just randomly taught yourself to program, well... you're just like me!
Similar Threads
-
Calling another applet on click of button in one applet
By niteshwar.bhardwaj in forum Java 2DReplies: 1Last Post: 02-19-2009, 12:54 PM -
Web application hang without comm.jar
By chankokchern in forum Java AppletsReplies: 0Last Post: 12-16-2008, 12:38 PM -
Applet
By sonu in forum Java AppletsReplies: 1Last Post: 11-04-2008, 10:31 AM -
applet
By amith in forum AWT / SwingReplies: 1Last Post: 05-16-2008, 03:24 AM -
Applet, To center text and To open I engage in a dialog in an Applet
By Marcus in forum Java AppletsReplies: 4Last Post: 06-08-2007, 06:15 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks