Created
August 25, 2021 14:07
-
-
Save tinevez/7bee36095ed089937c0c55776aa7ad7e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Exception in thread "main" java.lang.IllegalArgumentException: Invalid service: net.imagej.legacy.LegacyService | |
at org.scijava.service.ServiceHelper.createExactService(ServiceHelper.java:278) | |
at org.scijava.service.ServiceHelper.loadService(ServiceHelper.java:229) | |
at org.scijava.service.ServiceHelper.loadService(ServiceHelper.java:192) | |
at org.scijava.service.ServiceHelper.loadServices(ServiceHelper.java:164) | |
at org.scijava.Context.<init>(Context.java:285) | |
at org.scijava.Context.<init>(Context.java:234) | |
at org.scijava.Context.<init>(Context.java:130) | |
at org.scijava.Context.<init>(Context.java:117) | |
at org.scijava.Context.<init>(Context.java:106) | |
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | |
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) | |
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) | |
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) | |
at java.lang.Class.newInstance(Class.java:442) | |
at ij.IJ.runUserPlugIn(IJ.java:238) | |
at ij.IJ.runPlugIn(IJ.java:203) | |
at ij.IJ.runPlugIn(IJ.java:192) | |
at fiji.plugin.trackmate.util.TMUtils.getContext(TMUtils.java:689) | |
at fiji.plugin.trackmate.providers.AbstractProvider.registerModules(AbstractProvider.java:58) | |
at fiji.plugin.trackmate.providers.AbstractProvider.<init>(AbstractProvider.java:45) | |
at fiji.plugin.trackmate.providers.DetectorProvider.<init>(DetectorProvider.java:32) | |
at fiji.plugin.trackmate.io.TmXmlReader.readSettings(TmXmlReader.java:424) | |
at fiji.plugin.trackmate.LoadTrackMatePlugIn.run(LoadTrackMatePlugIn.java:157) | |
at fr.pasteur.iah.extrack.compute.TrackMateExTrackTestDrive.main(TrackMateExTrackTestDrive.java:40) | |
Caused by: java.lang.ExceptionInInitializerError | |
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | |
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) | |
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) | |
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) | |
at java.lang.Class.newInstance(Class.java:442) | |
at org.scijava.service.ServiceHelper.createServiceRecursively(ServiceHelper.java:300) | |
at org.scijava.service.ServiceHelper.createExactService(ServiceHelper.java:267) | |
... 23 more | |
Caused by: java.lang.RuntimeException: No _hooks field found in ij.IJ | |
It appears that this class was already defined in the class loader! | |
Please make sure that you initialize the LegacyService before using | |
any ImageJ 1.x class. You can do that by adding this static initializer: | |
static { | |
LegacyInjector.preinit(); | |
} | |
To debug this issue, start the JVM with the option: | |
-javaagent:/Users/tinevez/.m2/repository/net/imagej/ij1-patcher/1.2.0/ij1-patcher-1.2.0.jar | |
To enforce pre-initialization, start the JVM with the option: | |
-javaagent:/Users/tinevez/.m2/repository/net/imagej/ij1-patcher/1.2.0/ij1-patcher-1.2.0.jar=init | |
at net.imagej.patcher.CodeHacker.javaAgentHint(CodeHacker.java:826) | |
at net.imagej.patcher.LegacyInjector.alreadyPatched(LegacyInjector.java:431) | |
at net.imagej.patcher.LegacyInjector.preinit(LegacyInjector.java:378) | |
at net.imagej.patcher.LegacyInjector.preinit(LegacyInjector.java:374) | |
at net.imagej.legacy.LegacyService.<clinit>(LegacyService.java:141) | |
... 30 more | |
Caused by: java.lang.NoSuchFieldException: _hooks | |
at java.lang.Class.getField(Class.java:1703) | |
at net.imagej.patcher.LegacyInjector.alreadyPatched(LegacyInjector.java:422) | |
... 33 more |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment