Applet Application throwing ClassFormatError
gaurav
gshcet at gmail.com
Tue Oct 23 03:30:07 EDT 2012
I have successfully configured Shibboleth IDP (On Machine 1) and Shibboleth
SP with Apache (On Machine 2). Deployed some sample application on Tomcat
(On Machine 2) built using JSP and everything was working fine with
Shibboleth setup.
After this I have deployed our Application which uses Applets on Tomcat (On
Machine 2), configured it behind Shibboleth and I started getting strange
ClassFormatError on browser.
Tried accessing from multiple browsers/different machines/ cleared temp
files from Java Control Panel but I was still getting the error.
Was surprised with error, removed the application entry from
"apache24.config" file in SP and accessed the application and it works fine.
Again, I have created again a sample "Hello World" Applet application
configured it behind SP, but I am still getting the same exception.
-----------------------------------------------------------------------------------------------------
basic: error: Incompatible magic value 171731060 in class file HelloWorld.
java.lang.ClassFormatError: Incompatible magic value 171731060 in class file
HelloWorld
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 171731060 in
class file HelloWorld
Ignored exception: java.lang.ClassFormatError: Incompatible magic value
171731060 in class file HelloWorld
-----------------------------------------------------------------------------------------------------
Both Machine 1 and Machine 2, uses Java 6 .
-Gaurav
--
View this message in context: http://shibboleth.1660669.n2.nabble.com/Applet-Application-throwing-ClassFormatError-tp7582638.html
Sent from the Shibboleth - Users mailing list archive at Nabble.com.
More information about the users
mailing list