Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease04x00x05
TWiki plugins: TWikiDrawPlugin, InterWikiPlugin,EditTablePlugin,SlideShowPlugin etc.
Server OS: Debian GNU/Linux
Web server: Apache/2.0.54
Perl version: 5.8.4
Client OS: MS WindowsXP SP2
Web Browser: MS Internet Explorer 6.0
Categories: Plugins

-- TWikiGuest - 19 Dec 2006

Answer

ALERT! 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

Change status to:
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2006-12-20 - TWikiGuest
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.