java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=org/sonar/api/utils/SonarException, offset=6

Stack Overflow | Phil | 8 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola and rafael . Or join the community to write better ones.
  1. 0

    SonarQube 5.6.1 throwing bad major version while compiling a Java 7 project with Ant

    Stack Overflow | 8 months ago | Phil
    java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=org/sonar/api/utils/SonarException, offset=6
  2. 0

    UnsupportedClassVersionError with SonarQube Ant Task after Update to 5.1.1

    Stack Overflow | 2 years ago | Matthias
    java.lang.UnsupportedClassVersionError: org/sonar/api/utils/SonarException : Unsupported major.minor version 51.0
  3. 0

    Compatible?

    Google Groups | 8 months ago | Dinesh
    java.lang.UnsupportedClassVersionError: org/sonar/api/utils/SonarException : Unsupported major.minor version 52.0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    This might be caused by and outdated version of Java, SonarQube now uses Java 8 as default. You might upgrade java or use an older version of SonarQube.
  6. 0
    samebug tip
    If you're using intellij plugin of sonarqube, you might have to set the JAVA_HOME ambient variable manually.

  1. rafael 2 times, last 2 months ago
  2. andyglick 3 times, last 3 months ago
34 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.UnsupportedClassVersionError

    JVMCFRE003 bad major version; class=org/sonar/api/utils/SonarException, offset=6

    at java.lang.ClassLoader.defineClassImpl()
  2. Java RT
    URLClassLoader.findClass
    1. java.lang.ClassLoader.defineClassImpl(Native Method)
    2. java.lang.ClassLoader.defineClass(ClassLoader.java:324)
    3. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:155)
    4. java.net.URLClassLoader.defineClass(URLClassLoader.java:712)
    5. java.net.URLClassLoader.access$400(URLClassLoader.java:93)
    6. java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:1164)
    7. java.security.AccessController.doPrivileged(AccessController.java:492)
    8. java.net.URLClassLoader.findClass(URLClassLoader.java:595)
    8 frames
  3. SonarQube Runner
    IsolatedClassloader.loadClass
    1. org.sonar.runner.impl.IsolatedClassloader.loadClass(IsolatedClassloader.java:94)
    1 frame
  4. Java RT
    Class.getMethod
    1. java.lang.ClassLoader.loadClass(ClassLoader.java:731)
    2. java.lang.J9VMInternals.verifyImpl(Native Method)
    3. java.lang.J9VMInternals.verify(J9VMInternals.java:94)
    4. java.lang.J9VMInternals.prepare(J9VMInternals.java:514)
    5. java.lang.Class.getMethod(Class.java:1116)
    5 frames
  5. SonarQube Runner
    BatchLauncher$1.run
    1. org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:85)
    2. org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)
    2 frames
  6. Java RT
    AccessController.doPrivileged
    1. java.security.AccessController.doPrivileged(AccessController.java:400)
    1 frame
  7. SonarQube Runner
    Runner.execute
    1. org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
    2. org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
    3. org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
    4. org.sonar.runner.api.Runner.execute(Runner.java:100)
    4 frames
  8. Sonar Ant Task
    SonarTask.execute
    1. org.sonar.ant.SonarTask.launchAnalysis(SonarTask.java:53)
    2. org.sonar.ant.SonarTask.execute(SonarTask.java:48)
    2 frames
  9. Ant
    UnknownElement.execute
    1. org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
    1 frame
  10. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
    3. java.lang.reflect.Method.invoke(Method.java:620)
    3 frames
  11. Ant
    Sequential.execute
    1. org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    2. org.apache.tools.ant.Task.perform(Task.java:348)
    3. org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
    3 frames
  12. Ant-Contrib Tasks
    IfTask.execute
    1. net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
    1 frame
  13. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
    4. java.lang.reflect.Method.invoke(Method.java:620)
    4 frames
  14. Ant
    UnknownElement.execute
    1. org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    2. org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:155)
    3. org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
    3 frames
  15. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
    3. java.lang.reflect.Method.invoke(Method.java:620)
    3 frames
  16. Ant
    Main.startAnt
    1. org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    2. org.apache.tools.ant.Task.perform(Task.java:348)
    3. org.apache.tools.ant.Target.execute(Target.java:435)
    4. org.apache.tools.ant.Target.performTasks(Target.java:456)
    5. org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
    6. org.apache.tools.ant.Project.executeTarget(Project.java:1376)
    7. org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    8. org.apache.tools.ant.Project.executeTargets(Project.java:1260)
    9. org.apache.tools.ant.Main.runBuild(Main.java:854)
    10. org.apache.tools.ant.Main.startAnt(Main.java:236)
    10 frames
  17. Apache Ant Launcher
    Launcher.main
    1. org.apache.tools.ant.launch.Launcher.run(Launcher.java:285)
    2. org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)
    2 frames