Results 1 to 3 of 3

Thread: Applet hang

  1. #1
    Worlock is offline Member
    Join Date
    Aug 2009
    Posts
    1
    Rep Power
    0

    Default 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.

  2. #2
    corlettk is offline Member
    Join Date
    Apr 2009
    Location
    Brisbane
    Posts
    86
    Rep Power
    0

    Default

    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 ;-)

  3. #3
    Singing Boyo is offline Senior Member
    Join Date
    Mar 2009
    Posts
    552
    Rep Power
    6

    Default

    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

  1. Calling another applet on click of button in one applet
    By niteshwar.bhardwaj in forum Java 2D
    Replies: 1
    Last Post: 02-19-2009, 12:54 PM
  2. Web application hang without comm.jar
    By chankokchern in forum Java Applets
    Replies: 0
    Last Post: 12-16-2008, 12:38 PM
  3. Applet
    By sonu in forum Java Applets
    Replies: 1
    Last Post: 11-04-2008, 10:31 AM
  4. applet
    By amith in forum AWT / Swing
    Replies: 1
    Last Post: 05-16-2008, 03:24 AM
  5. Replies: 4
    Last Post: 06-08-2007, 06:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •