JtestR

UnsupportedClassVersionError on OS X

Details

  • Type: Bug Bug
  • Status: Reopened Reopened
  • Priority: Blocker Blocker
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    Mac OS X 10.5.4, Java 1.5.0_13, Maven 2.0.9, JtestR 0.3.1
  • Number of attachments :
    0

Description

mvn org.jtestr:jtestr:server

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building some-code-to-test-jtestr
[INFO] task-segment: [org.jtestr:jtestr:server]
[INFO] ------------------------------------------------------------------------
[INFO] [jtestr:server]
creating runtime 0
[FATAL ERROR] org.jtestr.maven.JtestRMavenServerMojo#execute() caused a linkage error (java.lang.UnsupportedClassVersionError) and may be out-of-date. Check the realms:
[FATAL ERROR] Plugin realm = app0.child-container[org.jtestr:jtestr]
urls[0] = file:/Users/kevwil/.m2/repository/org/jtestr/jtestr/0.3.1/jtestr-0.3.1.jar
urls[1] = file:/Users/kevwil/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
urls[2] = file:/Users/kevwil/.m2/repository/junit/junit/4.4/junit-4.4.jar
urls[3] = file:/Users/kevwil/.m2/repository/org/testng/testng/5.8/testng-5.8-jdk15.jar
urls[4] = file:/Users/kevwil/.m2/repository/ant/ant/1.6.5/ant-1.6.5.jar
urls[5] = file:/Users/kevwil/.m2/repository/org/jtestr/jruby-complete/r7479/jruby-complete-r7479.jar
[FATAL ERROR] Container realm = plexus.core
urls[0] = file:/Users/kevwil/apache-maven-2.0.9/lib/maven-2.0.9-uber.jar
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Bad version number in .class file
[INFO] ------------------------------------------------------------------------
[INFO] Trace
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 org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.jruby.internal.runtime.methods.InvocationMethodFactory.tryClass(InvocationMethodFactory.java:1222)
at org.jruby.internal.runtime.methods.InvocationMethodFactory.getAnnotatedMethodClass(InvocationMethodFactory.java:692)
at org.jruby.internal.runtime.methods.InvocationMethodFactory.getAnnotatedMethod(InvocationMethodFactory.java:659)
at org.jruby.RubyModule.defineAnnotatedMethod(RubyModule.java:750)
at org.jruby.RubyModule.defineAnnotatedMethod(RubyModule.java:718)
at org.jruby.anno.TypePopulator$DefaultTypePopulator.populate(TypePopulator.java:50)
at org.jruby.RubyModule.defineAnnotatedMethodsIndividually(RubyModule.java:630)
at org.jruby.RubyModule.defineAnnotatedMethods(RubyModule.java:531)
at org.jruby.RubyObject.createObjectClass(RubyObject.java:317)
at org.jruby.Ruby.initRoot(Ruby.java:943)
at org.jruby.Ruby.init(Ruby.java:900)
at org.jruby.Ruby.newInstance(Ruby.java:159)
at org.jtestr.RuntimeFactory.createRuntime(RuntimeFactory.java:55)
at org.jtestr.BackgroundServer.createNewRuntime(BackgroundServer.java:94)
at org.jtestr.BackgroundServer.<init>(BackgroundServer.java:56)
at org.jtestr.maven.JtestRMavenServerMojo.execute(JtestRMavenServerMojo.java:48)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
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 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Sun Aug 17 08:54:11 MDT 2008
[INFO] Final Memory: 2M/4M
[INFO] ------------------------------------------------------------------------

Activity

Hide
Ola Bini added a comment -

How annoying, it seems I've built it using 1.6 and somewhere the generated classes still seems to be 1.6 compatible, when all settings say it should be 1.5.

I'll fix and amend the releases.

Show
Ola Bini added a comment - How annoying, it seems I've built it using 1.6 and somewhere the generated classes still seems to be 1.6 compatible, when all settings say it should be 1.5. I'll fix and amend the releases.
Hide
Ola Bini added a comment -

Sorry about this. It was JRuby that was building 1.6 binaries in a quite unintuitive way. I've pushed new files now, but you'll probably need to clean your local org.jtestr files out of your Maven repository.

Show
Ola Bini added a comment - Sorry about this. It was JRuby that was building 1.6 binaries in a quite unintuitive way. I've pushed new files now, but you'll probably need to clean your local org.jtestr files out of your Maven repository.
Hide
Kevin Williams added a comment -

I've deleted my ~/.m2/repository and run the same command again, and I don't see any change (get the same error). Is there anything else I can try to fix this?

Show
Kevin Williams added a comment - I've deleted my ~/.m2/repository and run the same command again, and I don't see any change (get the same error). Is there anything else I can try to fix this?
Hide
Kevin Williams added a comment -

oops. see previous comment

Show
Kevin Williams added a comment - oops. see previous comment
Hide
Ola Bini added a comment -

This is just a matter of waiting for it to be distributed. The new version works, it just needs to be available from everywhere. Not sure how long that will take - this is because of the Maven infrastructure.

Show
Ola Bini added a comment - This is just a matter of waiting for it to be distributed. The new version works, it just needs to be available from everywhere. Not sure how long that will take - this is because of the Maven infrastructure.
Hide
Kevin Williams added a comment -

Should it download a newer version of the jruby-complete jar? I can watch for that and mark this resolved when it works.

Show
Kevin Williams added a comment - Should it download a newer version of the jruby-complete jar? I can watch for that and mark this resolved when it works.
Hide
Johan Carlsson added a comment -

Replaced ~/.m2/repository/org/jtestr/jruby-complete/1.2.0/jruby-complete-1.2.0.jar with file downloaded from jruby homepage and now everything seems to work just fine.

Show
Johan Carlsson added a comment - Replaced ~/.m2/repository/org/jtestr/jruby-complete/1.2.0/jruby-complete-1.2.0.jar with file downloaded from jruby homepage and now everything seems to work just fine.

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated: