java.util.ServiceConfigurationError

tip

Update "latest" to Java 8 on DockerHub.

tip

You're using an older version of java with classes compiled for java7

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.

tip

If you're using intellij plugin of sonarqube, you might have to set the JAVA_HOME ambient variable manually.

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

  • only works with Java 8?
    via GitHub by mandubian
    ,
  • Mac OS X Activator New Play Framework Error
    via Stack Overflow by Haurus
    ,
  • play-scala seed doesn't work
    via GitHub by hrcorrado
    ,
  • CircleCI timeout on Activator update
    via Stack Overflow by Carlos
    ,
  • tomcat failing to start
    via Stack Overflow by Sandilya Miduthuri
    ,
    • java.util.ServiceConfigurationError: org.apache.nifi.processor.Processor: Provider nifi.test.processors.PutHiveQL could not be instantiated at java.util.ServiceLoader.fail(ServiceLoader.java:224)[na:1.7.0_95] at java.util.ServiceLoader.access$100(ServiceLoader.java:181)[na:1.7.0_95] at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:377)[na:1.7.0_95] at java.util.ServiceLoader$1.next(ServiceLoader.java:445)[na:1.7.0_95] at org.apache.nifi.nar.ExtensionManager.loadExtensions(ExtensionManager.java:107)[nifi-nar-utils-0.6.0.1.2.0.1-1.jar:0.6.0.1.2.0.1-1] at org.apache.nifi.nar.ExtensionManager.discoverExtensions(ExtensionManager.java:88)[nifi-nar-utils-0.6.0.1.2.0.1-1.jar:0.6.0.1.2.0.1-1] at org.apache.nifi.NiFi.<init>(NiFi.java:120)[nifi-runtime-0.6.0.1.2.0.1-1.jar:0.6.0.1.2.0.1-1] at org.apache.nifi.NiFi.main(NiFi.java:227)[nifi-runtime-0.6.0.1.2.0.1-1.jar:0.6.0.1.2.0.1-1] Caused by: java.lang.UnsupportedClassVersionError: org/apache
    • ifi/processor/util/StandardValidators : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method)[na:1.7.0_95] at java.lang.ClassLoader.defineClass(ClassLoader.java:800)[na:1.7.0_95] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)[na:1.7.0_95] at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)[na:1.7.0_95] at java.net.URLClassLoader.access$100(URLClassLoader.java:71)[na:1.7.0_95] at java.net.URLClassLoader$1.run(URLClassLoader.java:361)[na:1.7.0_95] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)[na:1.7.0_95] at java.security.AccessController.doPrivileged(Native Method)[na:1.7.0_95] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)[na:1.7.0_95] at java.lang.ClassLoader.loadClass(ClassLoader.java:425)[na:1.7.0_95] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)[na:1.7.0_95] at nifi.test.processors.PutHiveQL.<clinit>(PutHiveQL.java:73)[nifi-hiveQLProcessor-1.0-SNAPSHOT.nar-unpacked/:na] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[na:1.7.0_95] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)[na:1.7.0_95] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[na:1.7.0_95] at java.lang.reflect.Constructor.newInstance(Constructor.java:526)[na:1.7.0_95] at java.lang.Class.newInstance(Class.java:383)[na:1.7.0_95] at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:373)[na:1.7.0_95] ... 5 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    193 more bugmates