Icy 1.5.0.0 and debug

52 views
Skip to first unread message

John leger

unread,
May 21, 2014, 4:56:07 AM5/21/14
to icy-so...@googlegroups.com
Hi,

Yesterday I did the update for ICY and today when I tried to launch icy from eclipse I got this exception.

Icy is not launching BUT if I launch ICY without eclipse it's working flawlessly.

Any Ideas ?

java.lang.NoSuchMethodError: com.sun.media.imageioimpl.common.PackageUtil.isCodecLibAvailable()Z
    at com.sun.media.imageioimpl.plugins.jpeg.CLibJPEGImageReaderSpi.onRegistration(CLibJPEGImageReaderSpi.java:109)
    at javax.imageio.spi.SubRegistry.registerServiceProvider(ServiceRegistry.java:715)
    at javax.imageio.spi.ServiceRegistry.registerServiceProvider(ServiceRegistry.java:302)
    at javax.imageio.spi.IIORegistry.registerApplicationClasspathSpis(IIORegistry.java:211)
    at javax.imageio.spi.IIORegistry.<init>(IIORegistry.java:138)
    at javax.imageio.spi.IIORegistry.getDefaultInstance(IIORegistry.java:159)
    at javax.imageio.ImageIO.<clinit>(ImageIO.java:65)
    at icy.image.ImageUtil.load(ImageUtil.java:144)
    at icy.resource.ResourceUtil.getIconAsImage(ResourceUtil.java:325)
    at icy.resource.ResourceUtil.getIconAsImage(ResourceUtil.java:346)
    at icy.resource.ResourceUtil.<clinit>(ResourceUtil.java:49)
    at icy.gui.frame.SplashScreenFrame$SplashPanel.<init>(SplashScreenFrame.java:56)
    at icy.gui.frame.SplashScreenFrame.<init>(SplashScreenFrame.java:83)
    at icy.main.Icy.main(Icy.java:195)


Stephane

unread,
May 22, 2014, 8:15:00 AM5/22/14
to icy-so...@googlegroups.com
Hi,

Google-ing the error message i get some links on Bio-Format so i think it is related to the last Bio-Formats library included in Icy.
Specifically i think it comes from their included ImageIO library. Maybe you have a conflict in Eclipse which try to use another ImageIO library for some reasons, as having it in the base JVM.

John leger

unread,
May 22, 2014, 8:40:42 AM5/22/14
to icy-so...@googlegroups.com
Hi,

I manage to launch it as always by creating a new eclipse workspace and moving my projects back into the new workspace (ie deleting eclipse preferences and icy preferences) and it's working well now.

For me it was more a glitch from the command executed tu launch ICY in develloper mod.

Anyway, thanks for your answer

Stephane

unread,
May 23, 2014, 4:33:04 AM5/23/14
to icy-so...@googlegroups.com
Hi,

Glad to hear you fixed it ! I guess it was an obscure eclipse cache related bug...
Good to know anyway as it can be useful for others people experiencing the same problem.

Stephane

unread,
May 27, 2014, 11:32:20 AM5/27/14
to icy-so...@googlegroups.com
Hi,

I was able to reproduce the problem, it looks like there is a bug with the Icy4Eclipse plugin which probably cache some data and don't refresh them when the icy.jar file change.
Actually the only way to fix it is indeed to recreate the project...

- Stephane
Reply all
Reply to author
Forward
0 new messages