Incompatible Magic value in jfileupload

Enhanced frontend add-on to queue files.
Post Reply
tharp
Posts: 2
Joined: Tue Feb 28, 2012 1:34 pm

Incompatible Magic value in jfileupload

Post by tharp »

I am receiving the following error when trying to load JBatchUpload. I have performed some google searches and discovered that the error message means that I have downloaded a corrupted zip file. The solution given is to re-download the zip directly to the server and unzip and install directly. I have done this and am still receiving this message. I have even tried both 2.8 and 2.9 versions of jbatch and jfile. I can get both versions's included example to load without issue on my local machine so I know that I have to be missing something.

In terms of the intended server, I have modified the MIME types to allow .properties, which fixed a previous "Can't find the jfileupload .jar" error message.

Java Plug-in 1.6.0_31
Using JRE version 1.6.0_31-b05 Java HotSpot(TM) Client VM
User home directory = C:\Users\stharp

----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------

java.lang.ClassFormatError: Incompatible magic value 218774632 in class file jfileupload/upload/client/MApplet
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: java.lang.ClassFormatError: Incompatible magic value 218774632 in class file jfileupload/upload/client/MApplet


Thanks in advance for any and all help.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Incompatible Magic value in jfileupload

Post by support »

It means either JAR files are corrupted (issue when you've installed them on server) or server return HTML because of missing authentication when downloading JAR files.

Post Reply