java.lang.IllegalArgumentException

Invalid service: io.scif.ome.services.DefaultOMEMetadataService

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.

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

Solutions on the web3944

  • via imagej.net by Unknown author, 1 year ago
    Invalid service: io.scif.ome.services.DefaultOMEMetadataService
  • via GitHub by PierreMuller
    , 10 months ago
    Invalid service: io.scif.ome.services.DefaultOMEMetadataService
  • via GitHub by ctrueden
    , 1 year ago
    Invalid service: io.scif.ome.services.DefaultOMEMetadataService
  • Stack trace

    • java.lang.IllegalArgumentException: Invalid service: io.scif.ome.services.DefaultOMEMetadataService at org.scijava.service.ServiceHelper.createExactService(ServiceHelper.java:280) at org.scijava.service.ServiceHelper.loadService(ServiceHelper.java:231) at org.scijava.service.ServiceHelper.loadService(ServiceHelper.java:194) at org.scijava.service.ServiceHelper.loadServices(ServiceHelper.java:166) at org.scijava.Context.<init>(Context.java:277) at org.scijava.Context.<init>(Context.java:234) at org.scijava.Context.<init>(Context.java:174) at org.scijava.Context.<init>(Context.java:160) at net.imagej.ImageJ.<init>(ImageJ.java:79) at net.imagej.Main.launch(Main.java:61) at net.imagej.Main.main(Main.java:73) 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:597) at net.imagej.launcher.ClassLauncher.launch(ClassLauncher.java:279) at net.imagej.launcher.ClassLauncher.run(ClassLauncher.java:186) at net.imagej.launcher.ClassLauncher.main(ClassLauncher.java:77) Caused by: java.lang.UnsupportedClassVersionError: ome/xml/model/enums/EnumerationException : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632) at java.lang.ClassLoader.defineClass(ClassLoader.java:616) 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:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) at java.lang.Class.getConstructor0(Class.java:2699) at java.lang.Class.newInstance0(Class.java:326) at java.lang.Class.newInstance(Class.java:308) at org.scijava.service.ServiceHelper.createServiceRecursively(ServiceHelper.java:302) at org.scijava.service.ServiceHelper.createExactService(ServiceHelper.java:269) ... 17 more

    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

    Once, 5 days ago
    6 times, 4 weeks ago
    Unknown user
    Once, 1 month ago
    Once, 1 month ago
    Unknown user
    Once, 3 months ago
    193 more bugmates