Re: unsupported class version error
Re: unsupported class version error
- Subject: Re: unsupported class version error
- From: Tim Worman <email@hidden>
- Date: Fri, 20 Nov 2009 07:42:21 -0800
Ha! That's awesome.
Tim Worman
UCLA GSE&IS
On Nov 20, 2009, at 3:38 AM, Kieran Kelleher wrote:
> Funny, I got the Mike Schrag version of the error like this: ....
>
> java.lang.UnsupportedSpellingError: Bad spelling error in .class file
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
> 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:316)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
> 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:316)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at com.webobjects._bootstrap.WOBoostrap.main(WOBoostrap.java:97)
>
> Is my system infected with the "Boostrap" virus?! :-)
>
>
> On Nov 20, 2009, at 2:35 AM, Tim Worman wrote:
>
>> I am getting this error all-the-sudden and it appears to be related to this.
>>
>> java.lang.UnsupportedClassVersionError: Bad version number in .class file
>> at java.lang.ClassLoader.defineClass1(Native Method)
>> at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
>> 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:316)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
>> at java.lang.ClassLoader.defineClass1(Native Method)
>> at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
>> 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:316)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>> at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:84)
>>
>> Obviously something's changed but I haven't changed my setup or installed any new components/software. I have done WOLips updates. I did `file WOBootstrap.class` and it returned "version 49.0 (Java 1.5)." It was the same on the deployment machine. The JDK compliance in Eclipse is set to Java 1.5 on my dev machine.
>>
>> I've been banging my head against it and can't seem to figure what else I have to do to get this to run - or why my compile products are different suddenly.
>>
>> Tim Worman
>> UCLA GSE&IS
>>
>>
>>
>> On Nov 11, 2009, at 8:36 PM, Mike Schrag wrote:
>>
>>> For anyone who is getting an unexplained UnsupportedClassVersion error at startup -- unjar your WOBoostrap.jar and run file on the WOBoostrap.class. George Domurot and I just discovered that there is at least one WOBoostrap.jar floating around the intertubes that was built with 1.6 and has a 50.0 version number. Possibly this came from a Snow Leopard developer preview? This file comes from whatever machine performed your build and typically is found in /System/Library/WebObjects/JavaApplications/wotaskd.woa/WOBoostrap.jar (though the precise location is defined in your wolips.properties). I don't know how widespread that 1.6 build is, but if you've got it, this might save you a lot of insanity.
>>>
>>> ms
>>>
>>> _______________________________________________
>>> 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
>
> _______________________________________________
> 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