java.lang.UnsupportedClassVersionError: Bad version number in .class file

One of our tests failures with the following exception:


java.lang.UnsupportedClassVersionError: Bad version number in .class
filejava.lang.UnsupportedClassVersionError: Bad version number in .class
file at java.lang.ClassLoader.defineClass1(Native Method) at
java.lang.ClassLoader.defineClass(Unknown Source) at
java.security.SecureClassLoader.defineClass(Unknown Source) at
java.net.URLClassLoader.defineClass(Unknown Source) at
java.net.URLClassLoader.access$100(Unknown Source) at
java.net.URLClassLoader$1.run(Unknown Source) at
java.security.AccessController.doPrivileged(Native Method) at
java.net.URLClassLoader.findClass(Unknown Source) at
java.lang.ClassLoader.loadClass(Unknown Source) at
sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at
java.lang.ClassLoader.loadClass(Unknown Source) at
java.lang.ClassLoader.loadClassInternal(Unknown Source) at
java.lang.Class.forName0(Native Method) at
java.lang.Class.forName(Unknown Source) at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:254)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:672)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:546)


but this test works fine at programmer's pcs.
How can we fix it?

Vitaly Berov

7 comments
Comment actions Permalink

Which JDK is used for the projects?
The exception looks like a bug, please file it to our Jira.

Regards,
KIR

0
Comment actions Permalink

Kirill Maximov (JetBrains) wrote:

Which JDK is used for the projects?
The exception looks like a bug, please file it to our Jira.

Regards,
KIR


We use java 1.6.0

May be this exception related to the problems with finding JSDK home
path for .ipr project (described in my other letter).

Sorry, but I'm just started evaluation of TeamCity and I'm a newbie in
JetBrain products. What is "your Jira" and where should I file this
problem to?

Vitaly Berov

0
Comment actions Permalink

Vitaly Berov wrote:

What is "your Jira" and where should I file this
problem to?


You'll need to create an account
http://www.jetbrains.net/jira/secure/Signup!default.jspa
Then log in and Create New Issue. Use Project TeamCity.
HTH,
R

0
Comment actions Permalink

Robert Gibson wrote:

Vitaly Berov wrote:

>> What is "your Jira" and where should I file this problem to?


You'll need to create an account
http://www.jetbrains.net/jira/secure/Signup!default.jspa
Then log in and Create New Issue. Use Project TeamCity.
HTH,
R

Thanks, Robert
I created the issue

Vitaly Berov

0
Comment actions Permalink

Kirill Maximov (JetBrains) wrote:

Which JDK is used for the projects?
The exception looks like a bug, please file it to our Jira.

Regards,
KIR

Kirill, I created the issue.

Can you propose a workaround for this problem?

It seems to be impossible to have TeamCity building our projects (and
resolve TeamCity evaluation) until with bug is fixed. But I'm not sure
it'll happen soon (due to amount of bugs in JIRA).

Vitaly Berov

0
Comment actions Permalink

Vitaly Berov wrote:

Kirill Maximov (JetBrains) wrote:

>> Which JDK is used for the projects?
>> The exception looks like a bug, please file it to our Jira.
>>
>> Regards,
>> KIR

Kirill, I created the issue.

Can you propose a workaround for this problem?

It seems to be impossible to have TeamCity building our projects (and
resolve TeamCity evaluation) until with bug is fixed. But I'm not sure
it'll happen soon (due to amount of bugs in JIRA).

Vitaly Berov


Guys, what's about a workaround? Our builds just don't work.

Or it's better to give up with TeamCity and prefer something else - e.g.
QuickBuild? :)

Vitaly Berov

0
Comment actions Permalink

Guys, what's about a workaround? Our builds just
don't work.


Not sure about this. Please find my comments for the created issue:
http://www.jetbrains.net/jira/browse/TW-1846


Or it's better to give up with TeamCity and prefer
something else - e.g.
QuickBuild? :)


You're right, there are a lot of alternatives.

Kind regards,
KIR

0

Please sign in to leave a comment.