NoClassDefFoundError at startup
See original GitHub issuePrerequisites
- Put an X between the brackets on this line if you have done all of the following:
- Running the latest version of Constellation
- Attached the Support Package via
Help
>Support Package
- Checked the FAQs: https://github.com/constellation-app/constellation/wiki/FAQ
- Checked that your issue isn’t already filed: https://github.com/constellation-app/constellation/issues
- Checked that there is not already a module that provides the described functionality: https://github.com/constellation-app/constellation/wiki/Catalogue-of-Repositories
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
- Start Constellation
- 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:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I also don’t see this for both cases.
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.