Re: A fatal exception occurred: Bad version number in .class file
Re: A fatal exception occurred: Bad version number in .class file
- Subject: Re: A fatal exception occurred: Bad version number in .class file
- From: David Holt <email@hidden>
- Date: Tue, 12 Feb 2013 16:16:13 -0800
Pascal discovered the dirty class:
./com/webobjects/woextensions/WXRadioButtonList.class: compiled Java class data, version 50.0 (Java 1.6)
If anyone else has this issue you need to copy an older version of JavaWOExtensions from Wonder, or use Apple's if your app is not dependent on the Wonder version.
Thanks so much Pascal,
David
On 2013-02-12, at 4:01 PM, Pascal Robert <email@hidden> wrote:
> Dirty way to find which classes are built with Java 6:
>
> - Copy the app in a temporary folder, like /tmp
> - find MyApp.woa -name '*.jar' -exec unzip {} \;
> - find . -name '*.class' -exec file {} \; | grep "version 50"
>
>> Hi all,
>>
>> I'm trying to deploy to a server running Java 1.5 and I am getting the error A fatal exception occurred: Bad version number in .class file when I start up the app.
>>
>> So on my development box:
>>
>> I deleted all my frameworks.
>>
>> I installed the binaries of Wonder Integration from Jenkins.
>>
>> I have the compiler settings set to 1.5 in Eclipse, I deleted my frameworks' bin folders, then built inside Eclipse using Ant install....
>>
>> Does anyone know how I could still be getting 1.6 byte code?
>>
>> Thanks,
>> David
>>
>>
>> Feb 12 15:32:40 APP [50883] WARN NSLog - A fatal exception occurred: Bad version number in .class file
>> [2013-2-12 15:32:40 PST] <main> java.lang.UnsupportedClassVersionError: Bad version number in .class file
>> at java.lang.ClassLoader.defineClass1(Native Method)
>> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>> at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>> at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>> at java.lang.ClassLoader.defineClass1(Native Method)
>> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>> at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>> at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>> at er.extensions.appserver.ERXApplication.installPatches(ERXApplication.java:1064)
>> at er.extensions.appserver.ERXApplication.<init>(ERXApplication.java:1147)
>> at ca.cscw.app.appserver.Application.<init>(Application.java:18)
>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>> at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>> at java.lang.Class.newInstance0(Class.java:350)
>> at java.lang.Class.newInstance(Class.java:303)
>> at com.webobjects.appserver.WOApplication.main(WOApplication.java:547)
>> at er.extensions.appserver.ERXApplication.main(ERXApplication.java:861)
>> at ca.cscw.app.appserver.Application.main(Application.java:15)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:585)
>> at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:87)
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden