question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NoClassDefFoundError at startup

See original GitHub issue

Prerequisites

Description

The following java.lang.NoClassDefFoundError error shows up when running Constellation. This has been observed for several weeks. It doesn’t look like its affecting the functionality but I don’t want to take my chances.

Caught and handled this exception :
java.lang.NoClassDefFoundError: com/sun/media/imageioimpl/common/BogusColorSpace
	at it.geosolutions.imageioimpl.plugins.tiff.TIFFImageReaderSpi.onRegistration(TIFFImageReaderSpi.java:170)
	at java.desktop/javax.imageio.spi.SubRegistry.registerServiceProvider(ServiceRegistry.java:765)
	at java.desktop/javax.imageio.spi.ServiceRegistry.registerServiceProvider(ServiceRegistry.java:307)
	at java.desktop/javax.imageio.spi.IIORegistry.registerApplicationClasspathSpis(IIORegistry.java:189)
	at java.desktop/javax.imageio.spi.IIORegistry.<init>(IIORegistry.java:113)
	at java.desktop/javax.imageio.spi.IIORegistry.getDefaultInstance(IIORegistry.java:134)
	at java.desktop/javax.imageio.ImageIO.<clinit>(ImageIO.java:66)
	at org.openide.util.ImageUtilities.<clinit>(ImageUtilities.java:141)
	at org.netbeans.core.startup.Splash.loadContentIcon(Splash.java:248)
	at org.netbeans.core.startup.Splash.access$400(Splash.java:50)
	at org.netbeans.core.startup.Splash$SplashPainter.init(Splash.java:477)
	at org.netbeans.core.startup.Splash$SplashPainter$1.run(Splash.java:518)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.lang.ClassNotFoundException: com.sun.media.imageioimpl.common.BogusColorSpace starting from ModuleCL@6f347a02[au.gov.asd.tac.constellation.dependencies] with possible defining loaders null and declared parents ]
	at org.netbeans.ProxyClassLoader.doFindClass(ProxyClassLoader.java:211)
	at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:125)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
	... 25 more
Caused by: java.lang.ClassNotFoundException: com.sun.media.imageioimpl.common.BogusColorSpace
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
	at org.netbeans.ProxyClassLoader.doFindClass(ProxyClassLoader.java:209)
	... 27 more
Caught and handled this exception :
java.lang.NoClassDefFoundError: com/sun/media/imageioimpl/common/BogusColorSpace
	at it.geosolutions.imageioimpl.plugins.tiff.TIFFImageWriterSpi.onRegistration(TIFFImageWriterSpi.java:147)
	at java.desktop/javax.imageio.spi.SubRegistry.registerServiceProvider(ServiceRegistry.java:765)
	at java.desktop/javax.imageio.spi.ServiceRegistry.registerServiceProvider(ServiceRegistry.java:307)
	at java.desktop/javax.imageio.spi.IIORegistry.registerApplicationClasspathSpis(IIORegistry.java:189)
	at java.desktop/javax.imageio.spi.IIORegistry.<init>(IIORegistry.java:113)
	at java.desktop/javax.imageio.spi.IIORegistry.getDefaultInstance(IIORegistry.java:134)
	at java.desktop/javax.imageio.ImageIO.<clinit>(ImageIO.java:66)
	at org.openide.util.ImageUtilities.<clinit>(ImageUtilities.java:141)
	at org.netbeans.core.startup.Splash.loadContentIcon(Splash.java:248)
	at org.netbeans.core.startup.Splash.access$400(Splash.java:50)
	at org.netbeans.core.startup.Splash$SplashPainter.init(Splash.java:477)
	at org.netbeans.core.startup.Splash$SplashPainter$1.run(Splash.java:518)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.lang.ClassNotFoundException: com.sun.media.imageioimpl.common.BogusColorSpace starting from ModuleCL@6f347a02[au.gov.asd.tac.constellation.dependencies] with possible defining loaders null and declared parents ]
	at org.netbeans.ProxyClassLoader.doFindClass(ProxyClassLoader.java:211)
	at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:125)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
	... 25 more
Caused by: java.lang.ClassNotFoundException: com.sun.media.imageioimpl.common.BogusColorSpace
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
	at org.netbeans.ProxyClassLoader.doFindClass(ProxyClassLoader.java:209)
	... 27 more

Steps to Reproduce

  1. Start Constellation
  2. Help -> Show Logs

Expected behaviour: There shouldn’t be any exceptions at startup

Actual behaviour: There is an error in the log file which is caught by NetBeans so there is no pop-up but the error is there

Reproduces how often: 100%

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
cygnus-x-1commented, May 22, 2020

I also don’t see this for both cases.

0reactions
arcturus2commented, May 22, 2020

Thanks @aldebaran30701 for the clarification. I’m happy for it to be an issue only on my setup. I’ll keep this open a little longer to see if I find out why I’m getting it and the close asap.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Application startup failed java.lang.NoClassDefFoundError
I solved the problem by myself. My main process was written in CommandLineRunner#run method, but it is wrong way to write main process...
Read more >
java.lang.NoClassDefFoundError - DigitalOcean
java.lang.NoClassDefFoundError is runtime error thrown when a required class is not found in the classpath and hence JVM is unable to load it ......
Read more >
We receive a NoClassDefFoundError during our startup the ...
We have our own sonar custom java rules. But we receive a NoClassDefFoundError during our startup the SonarQuebe server 7.0.
Read more >
PM82831: JAVA.LANG.NOCLASSDEFFOUNDERROR ... - IBM
A java.lang.NoClassDefFoundError is thrown on occasion, when restarting the server in a Libery profile. The shared library.
Read more >
Random NoClassDefFoundError/ClassNotFoundException ...
It appears to me that the app deploys, IJ launches the browser, which causes a frame deactivation...causing a rebuild/redeploy. Meantime the browser is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found