United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4975146 : Applet: java.lang.ClassFormatError: Incompatible magic value

Details
Type:
Bug
Submit Date:
2004-01-07
Status:
Closed
Updated Date:
2004-01-16
Project Name:
JDK
Resolved Date:
2004-01-16
Component:
hotspot
OS:
solaris_8
Sub-Component:
runtime
CPU:
generic
Priority:
P3
Resolution:
Cannot Reproduce
Affected Versions:
5.0
Fixed Versions:

Related Reports
Relates:

Sub Tasks

Description
Date: Wed, 07 Jan 2004 17:35:30 -0500
From: J<###@###.###>
Subject: Applet: java.lang.ClassFormatError: Incompatible magic value 2187
	62506 in class file weblogic/management/console/applets/NavApplet
To: "'###@###.###'" <###@###.###>

I get this when viewing the Weblogic 7.0 console applet.  I assume that
something has changed between the 1.4 and 1.5 applet classes, that causes
problems with the 1.5 classloader.  Stack trace enclosed below.  Maybe this
is an old 1.2 or 1.3 applet, but this will cause a problem with acceptance
if applets break all of a sudden in 1.5.  Bug or release note, dunno.


java.lang.ClassFormatError: Incompatible magic value 218762506 in class file
weblogic/management/console/applets/NavApplet
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:601)
	at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
	at
sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:159)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
	at
sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:116)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
	at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:574)
	at sun.applet.AppletPanel.createApplet(AppletPanel.java:630)
	at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1814)
	at sun.applet.AppletPanel.runLoader(AppletPanel.java:559)
	at sun.applet.AppletPanel.run(AppletPanel.java:300)
	at java.lang.Thread.run(Thread.java:565)

                                    

Comments
EVALUATION

This exception is being thrown from a file in the hotspot workspace: 
/src/share/vm/runtime/classFileParser.cpp(2038):  
"Incompatible magic value %d in class file %s", 

I don't know what caused it, but I can't imagine that it is anything AWT did. 
runtime is my best guess at the place to triage this.  
###@###.### 2004-01-07

From some communication with the original finder of the problem, it seems
it's a one time isolated issue due to Mozilla 1.6b corrupting something. And it
worked fine on another machine. Close as not reproducible.

###@###.### 2004-01-15
                                     
2004-01-15



Hardware and Software, Engineered to Work Together