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: Pascal Robert <email@hidden>
- Date: Tue, 12 Feb 2013 19:17:30 -0500
Le 2013-02-12 à 19:16, David Holt <email@hidden> a écrit :
> Pascal discovered the dirty class:
>
> ./com/webobjects/woextensions/WXRadioButtonList.class: compiled Java class data, version 50.0 (Java 1.6)
It's all class in JavaWOExtensions:
./com/webobjects/woextensions/_ClassNameComparator.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/_EventComparator.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/_WOJExtensionsUtil.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/JSAlertPanel.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/JSComponent.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/JSConfirmPanel.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/JSImageFlyover.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/JSModalWindow.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/JSTextFlyover.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/JSValidatedField.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/KeyValueCodingProtectedAccessor.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WOAggregateEventRow.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WOAnyField.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WOAssociationEventRow.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WOBatchNavigationBar.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WOCheckboxMatrix.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WOCollapsibleComponentContent.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WOCompletionBar.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WODictionaryRepetition.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WOEventDisplay.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WOEventDisplayPage.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WOEventPage.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WOEventRow.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WOEventSetup.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WOEventSetupPage.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WOExceptionDelegateInterface.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WOExceptionPage.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WOExceptionParser.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WOIFrame.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WOKeyValueConditional.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WOLongResponsePage.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WOMetaRefresh.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WOMethodInvocation.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WOPageRestorationError.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WOParsedErrorLine.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WORadioButtonMatrix.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WOSessionCreationError.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WOSessionRestorationError.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WOSimpleArrayDisplay.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WOSimpleArrayDisplay2.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WOSortOrder.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WOSortOrderManyKey.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WOStats.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WOStatsPage.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WOTable.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WOTabPanel.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WOThresholdColoredNumber.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WOToManyRelationship.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WOToOneRelationship.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WXAccessControl.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WXBar.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WXOutlineControl.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WXOutlineEntry.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WXOutlineRepetition.class: compiled Java class data, version 50.0 (Java 1.6)
./com/webobjects/woextensions/WXRadioButtonList$Bindings.class: compiled Java class data, version 50.0 (Java 1.6)
./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