Results 1 to 7 of 7
  1. #1
    bhaskar_e is offline Member
    Join Date
    Oct 2008
    Posts
    4
    Rep Power
    0

    Default Applet works on Windows, Ubuntu and Mac, but not on Redhat and Fedora

    Hi,

    I am having an applet which uses AWT and has a functionality of opening up a web page dynamically. The applet also has its own menu bar. This functionality works fine on Windows, Mac and Ubuntu client machines, but the menu bar goes away when I open the web page using same functionality on Redhat 5 and Fedora 9 client machines. Moreover I am also getting an InterruptedThread exception on these machines.

    For security reasons I cannot share the code. Please guide me to resolve this issue.

    Thanks,
    Bhaskar.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,306
    Rep Power
    25

    Default

    Does your browser show an error message in its Java console?
    Copy and paste it here.

    What versions of java are on the different machines?
    What version of java was the applet compiled with?

  3. #3
    bhaskar_e is offline Member
    Join Date
    Oct 2008
    Posts
    4
    Rep Power
    0

    Default

    All my Linux client machines are using Sun JVM 1.6.0_07 and Mozilla Firefox 3 with Sun Java 6 plug-in. Applet is compiled with Java 1.4

    The browser shows an Interruptedthread Exception on the console. The stack trace is as follows.

    java.lang.InterruptedException
    at java.lang.Object.wait(Native Method)
    at XXX.YYY.SomeClass1.method(SomeClass1.java:503)
    at XXX.YYY.SomeClass2.run(SomeClass2:130)


    Sorry I cannot share the code. I hope this gives you some idea.

    Quote Originally Posted by Norm View Post
    Does your browser show an error message in its Java console?
    Copy and paste it here.

    What versions of java are on the different machines?
    What version of java was the applet compiled with?

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,306
    Rep Power
    25

    Default

    Have you read the API doc for the wait() method? You get that interrupt if a wait is interrupted.
    How does your code handle interupts for the wait at line 503?
    Does your code execute an interrupt against the thread that is waiting?

  5. #5
    bhaskar_e is offline Member
    Join Date
    Oct 2008
    Posts
    4
    Rep Power
    0

    Default

    Quote Originally Posted by Norm View Post
    Have you read the API doc for the wait() method? You get that interrupt if a wait is interrupted.
    How does your code handle interupts for the wait at line 503?
    Does your code execute an interrupt against the thread that is waiting?
    I configured the browser with Java 1.4 plug-in and the functionality is working fine. What can be wrong with 1.6 plug-in in Firefox?:confused:

  6. #6
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,306
    Rep Power
    25

    Default

    I also have noticed differences for java 1.6. Perhaps someone that is up to date on the new version can explain.

  7. #7
    bhaskar_e is offline Member
    Join Date
    Oct 2008
    Posts
    4
    Rep Power
    0

    Default

    Quote Originally Posted by Norm View Post
    I also have noticed differences for java 1.6. Perhaps someone that is up to date on the new version can explain.
    Thanks for your help Norm :)

Similar Threads

  1. Signed applet works only with jre 1.6u10 beta...
    By smartizzz in forum Java Applets
    Replies: 0
    Last Post: 08-07-2008, 07:54 AM
  2. Replies: 0
    Last Post: 07-29-2008, 01:19 PM
  3. To run Netbeans on Linux Fedora 8
    By rorootot in forum NetBeans
    Replies: 11
    Last Post: 07-22-2008, 04:23 AM
  4. how compareTo Method works
    By nanaji in forum Advanced Java
    Replies: 1
    Last Post: 06-22-2008, 07:40 PM
  5. Create Windows, Applet & Swing
    By Eric in forum AWT / Swing
    Replies: 1
    Last Post: 07-05-2007, 06:36 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
  •