Question
I am attempting to install the
TwikiDraw Plugin when I ran into a bad magic value error that prevented the applet
from loading.
The
TwikiDrawPlugin from the main TWiki site at
http://twiki.org/cgi-bin/view/TWiki04/TWikiDrawPlugin
loads fine so I know it is not a browser issue.
"CH.ifa.draw.twiki.TWikiDraw notinited" appears in status bar
Java console shows:
java.lang.ClassFormatError: Incompatible magic value 1008813135 in class file CH/ifa/draw/twiki/TWikiDraw
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Environment
--
TWikiGuest - 19 Dec 2006
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
Some things to check for:
- that the
.jar file is actually available at the location pointed to by the web page.
- that your Java VM is actually allowed to retrieve it (check its proxy configuration)
--
SteffenPoulsen - 19 Dec 2006
Your browser might cache an incomplete jar file. Try with a different browser.
Also, make sure the .jar file is readable by the webserver user; set the permission to 644 or 444.
--
PeterThoeny - 19 Dec 2006
1) .jar file is available at the right location
2) IE and Firefox have the same issue
3) I have permissions set to 755
I will follow up with the proxy configuration. it seems to be the most likely issue
--
TWikiGuest - 19 Dec 2006
The problem was that the directory I had the .jar file in was not enabled to serve jar files. moving the .jar to a directory that was and linking to it using the
codebase attribute fixed the problem
--
TWikiGuest - 20 Dec 2006