Differences between Sun JVM and Microsoft JVM.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Chris Grimble

    Differences between Sun JVM and Microsoft JVM.

    I have a very simple applet that I am trying to make compatible with
    both Microsoft's JVM and Suns JVM in Internet Explorer.
    However, when I turn on the Sun JVM it works occasionally, but
    frustratingly on most occasions I get the following error messages:

    In the status bar: "Applet <name> notinited"

    And when I investigate further in the console I get the following
    output:

    load: class <name>.class not found.
    java.lang.Class NotFoundExcepti on: <name>.class
    at sun.applet.Appl etClassLoader.f indClass(Unknow n Source)
    at java.lang.Class Loader.loadClas s(Unknown Source)
    at sun.applet.Appl etClassLoader.l oadClass(Unknow n Source)
    at java.lang.Class Loader.loadClas s(Unknown Source)
    at sun.applet.Appl etClassLoader.l oadCode(Unknown Source)
    at sun.applet.Appl etPanel.createA pplet(Unknown Source)
    at sun.plugin.Appl etViewer.create Applet(Unknown Source)
    at sun.applet.Appl etPanel.runLoad er(Unknown Source)
    at sun.applet.Appl etPanel.run(Unk nown Source)
    at java.lang.Threa d.run(Unknown Source)

    Caused by: java.net.Socket Exception: Malformed reply from SOCKS server
    at java.net.SocksS ocketImpl.readS ocksReply(Unkno wn Source)
    at java.net.SocksS ocketImpl.conne ct(Unknown Source)
    at java.net.Socket .connect(Unknow n Source)
    at sun.net.Network Client.doConnec t(Unknown Source)
    at sun.plugin.net. protocol.http.H ttpClient.doCon nect(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.htt p.HttpClient$3. run(Unknown Source)
    at java.security.A ccessController .doPrivileged(N ative Method)
    at sun.net.https://www.http.HttpClient.privileg...Server(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.htt p.HttpClient.<i nit>(Unknown Source)
    at sun.net.www.htt p.HttpClient.<i nit>(Unknown Source)
    at sun.plugin.net. protocol.http.H ttpClient.<init >(Unknown Source)
    at sun.plugin.net. protocol.http.H ttpClient.New(U nknown Source)
    at sun.plugin.net. protocol.http.H ttpURLConnectio n.createConnect ion(Unknown
    Source)
    at sun.plugin.net. protocol.http.H ttpURLConnectio n.connect(Unkno wn
    Source)
    at sun.plugin.net. protocol.http.H ttpURLConnectio n.getInputStrea m(Unknown
    Source)
    at java.net.HttpUR LConnection.get ResponseCode(Un known Source)
    at sun.applet.Appl etClassLoader.g etBytes(Unknown Source)
    at sun.applet.Appl etClassLoader.a ccess$100(Unkno wn Source)
    at sun.applet.Appl etClassLoader$1 .run(Unknown Source)
    at java.security.A ccessController .doPrivileged(N ative Method)

    ... 10 more

    It appears that the applet never gets loaded. I have no idea why?
    What is the Sun JVM doing here?

    Many thanks in advance for any help.
  • FISH

    #2
    Re: Differences between Sun JVM and Microsoft JVM.

    chris.grimble@k tsplc.com (Chris Grimble) wrote in message news:<a5cdab5b. 0401270629.7b03 [email protected] ogle.com>...[color=blue]
    > I have a very simple applet that I am trying to make compatible with
    > both Microsoft's JVM and Suns JVM in Internet Explorer.
    > However, when I turn on the Sun JVM it works occasionally, but
    > frustratingly on most occasions I get the following error messages:
    >
    > In the status bar: "Applet <name> notinited"
    >
    > And when I investigate further in the console I get the following
    > output:
    >
    > load: class <name>.class not found.
    > java.lang.Class NotFoundExcepti on: <name>.class
    > at sun.applet.Appl etClassLoader.f indClass(Unknow n Source)
    > at java.lang.Class Loader.loadClas s(Unknown Source)[/color]
    [snipped...][color=blue]
    >
    > Caused by: java.net.Socket Exception: Malformed reply from SOCKS server
    > at java.net.SocksS ocketImpl.readS ocksReply(Unkno wn Source)
    > at java.net.SocksS ocketImpl.conne ct(Unknown Source)
    > at java.net.Socket .connect(Unknow n Source)[/color]
    [snipped...][color=blue]
    >
    > It appears that the applet never gets loaded. I have no idea why?
    > What is the Sun JVM doing here?[/color]

    The clue was in the question - did you not notice the bit saying
    "Malformed reply from SOCKS server" ? This is the first thing you
    should investigate...

    If you have access to them, try checking any error logs for your
    SOCKS service, that should give you a few important pointers.
    Check that the plugin is configured correctly. If you have one,
    try pointing the plugin towards a web proxy instead, and see what
    results you get.


    -FISH- ><>

    Comment

    Working...