Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems initializing JAIIIOServiceImpl in the context of Fiji #18

Open
dscho opened this issue Aug 5, 2013 · 0 comments
Open

Problems initializing JAIIIOServiceImpl in the context of Fiji #18

dscho opened this issue Aug 5, 2013 · 0 comments
Assignees
Labels
Milestone

Comments

@dscho
Copy link
Contributor

dscho commented Aug 5, 2013

When SCIFIO's JAIIIOServiceImpl is loaded (because an ImageJ2 context is created) at startup of Fiji, I sometimes get this:

[WARNING] Invalid service: io.scif.services.JAIIIOServiceImpl
java.lang.NoClassDefFoundError: io/scif/media/imageioimpl/plugins/jpeg2000/J2KImageReaderSpi
    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.createService(ServiceHelper.java:213)
    at org.scijava.service.ServiceHelper.createExactService(ServiceHelper.java:181)
    at org.scijava.service.ServiceHelper.loadService(ServiceHelper.java:156)
    at org.scijava.service.ServiceHelper.loadServices(ServiceHelper.java:127)
    at org.scijava.Context.<init>(Context.java:162)
    at org.scijava.Context.<init>(Context.java:120)
    at org.scijava.Context.<init>(Context.java:81)
    at org.scijava.Context.<init>(Context.java:71)
    at ij.IJ.getContext(IJ.java)
    at ij.IJ.runPlugIn(IJ.java)
    at fiji.Main$1.run(Main.java:116)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:642)
    at java.awt.EventQueue.access$000(EventQueue.java:85)
    at java.awt.EventQueue$1.run(EventQueue.java:603)
    at java.awt.EventQueue$1.run(EventQueue.java:601)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:612)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.lang.ClassNotFoundException: io.scif.media.imageioimpl.plugins.jpeg2000.J2KImageReaderSpi
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    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)
    ... 30 more

My suspicion is that two of the following files in the class path are the culprit:

  • jai-codec-1.1.3.jar
  • jai-core-1.1.3.jar
  • jai_imageio-1.0.1.jar
  • jai_codec.jar
  • jai_core.jar
@hinerm hinerm modified the milestones: 0.10.0, 0.9.0 Feb 11, 2014
@hinerm hinerm modified the milestones: 0.11.0, 0.10.0 Mar 10, 2014
@hinerm hinerm modified the milestones: 0.12.0, 0.11.0 Apr 21, 2014
@hinerm hinerm modified the milestones: 0.13.0, 0.12.0, 0.15.0 May 30, 2014
@hinerm hinerm modified the milestones: 0.16.0, 0.15.0 Jun 10, 2014
@hinerm hinerm removed this from the 0.16.0 milestone Mar 10, 2015
@hinerm hinerm added this to the unscheduled milestone Mar 11, 2015
@hinerm hinerm modified the milestones: 1.0.0 - Official Release, unscheduled Mar 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants