Issues with JOGL + Applet

Hi Guys,

I’ve been working on a JOGL loader for applets for a while now (yes, I know there is now an official one, I actually started this one aaaages ago :O), it works great, with one problem.

When I clear the classloader cache and refresh the applet, the whole thing dies with this exception trace:

So obviously, it seems to be boiling down to JAWT. I am preloading it, and making sure JOGL doesn’t try doing that itself (disableLoading() in NativeLibLoader). My preload code is ignoring the “already loaded in another classloader” exception, which IS occurring on the second execution.

So basically, is there something I’m not doing right, or is it a bug with JVM/JOGL/browser/Windows/The World? Should I just pretend I don’t know about this error? I don’t think many users would bother clearing classloader cache anyway, I only use it during development.

If anyone could shed some light on this issue, I’d be very grateful :smiley:

EDIT: I just gave the official AppletLauncher a go, and it’s having the same problem.

-Sam

How exactly are you causing this error to happen? I went to the JOGL Applet Test page, navigated away from it, went into the Java Control Panel, cleared all of the “Temporary Files”, and went back to the applet test page and it was still working fine.

Open the Java console and press “x”. This clears the classloader cache. I found it was the quickest way for me to reload the applet after I changed it. Perhaps I shouldn’t use that feature anymore :slight_smile:

I didn’t even know about that feature. When I tried it with the JOGL applet test I got a similar exception to the one you posted (I think) and then the Java implementation in my web browser locked up completely. I would recommend you just don’t do that anymore.