java.lang.UnsupportedClassVersionError

org/osjava/sj/SimpleContextFactory : Unsupported major.minor version 51.0

Samebug tips4

Update "latest" to Java 8 on DockerHub.

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.


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web3028

  • via Unknown by Jason Yau,
  • via Unknown by Jason Yau,
  • via Unknown by Paula Clemente,
  • Stack trace

    • java.lang.UnsupportedClassVersionError: org/osjava/sj/SimpleContextFactory : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637) at java.lang.ClassLoader.defineClass(ClassLoader.java:621) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:249) at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:46) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288) at javax.naming.InitialContext.init(InitialContext.java:223) at javax.naming.InitialContext.<init>(InitialContext.java:175) at org.pentaho.di.core.database.util.DatabaseUtil.getDataSourceFromJndi(DatabaseUtil.java:77) at org.pentaho.di.core.database.util.DatabaseUtil.getNamedDataSource(DatabaseUtil.java:55) at org.pentaho.di.core.database.Database.connectUsingNamedDataSource(Database.java:441) at org.pentaho.di.core.database.Database.connectUsingClass(Database.java:4691) at org.pentaho.di.core.database.Database.normalConnect(Database.java:414) at org.pentaho.di.core.database.Database.connect(Database.java:358) at org.pentaho.di.core.database.Database.connect(Database.java:311) at org.pentaho.di.trans.steps.insertupdate.InsertUpdate.init(InsertUpdate.java:480) at org.pentaho.di.trans.step.StepInitThread.run(StepInitThread.java:69) at java.lang.Thread.run(Thread.java:695)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    mauritiusmauritius
    Once,
    andyglickandyglick
    6 times, last one
    Unknown visitor
    Unknown visitorOnce,
    Eric HendersonEric Henderson
    Once,
    Unknown visitor
    Unknown visitorOnce,
    193 more bugmates