This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 252478 - NoClassDefFoundError: Could not initialize class org.netbeans.modules.cnd.api.utils.CndFileVisibilityQuery
Summary: NoClassDefFoundError: Could not initialize class org.netbeans.modules.cnd.api...
Status: RESOLVED DUPLICATE of bug 252855
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-19 09:42 UTC by Exceptions Reporter
Modified: 2015-09-10 08:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 199619


Attachments
stacktrace (2.44 KB, text/plain)
2015-05-19 09:42 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2015-05-19 09:42:44 UTC
This bug was originally marked as duplicate of bug 188769, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: OpenJDK 64-Bit Server VM, 24.75-b04, OpenJDK Runtime Environment, 1.7.0_75-b13
OS: Linux

User Comments:
GUEST: Project is not opened.




Stacktrace: 
java.lang.NoClassDefFoundError: Could not initialize class org.netbeans.modules.cnd.api.utils.CndFileVisibilityQuery
   at org.netbeans.modules.cnd.makeproject.MakeSharabilityQuery$1.run(MakeSharabilityQuery.java:109)
   at org.netbeans.modules.cnd.makeproject.MakeSharabilityQuery$1.run(MakeSharabilityQuery.java:104)
   at org.openide.util.Mutex.readAccess(Mutex.java:295)
   at org.netbeans.modules.cnd.makeproject.MakeSharabilityQuery.getSharability(MakeSharabilityQuery.java:104)
   at org.netbeans.modules.projectapi.ProjectSharabilityQuery2.getSharability(ProjectSharabilityQuery2.java:67)
   at org.netbeans.api.queries.SharabilityQuery.getSharability(SharabilityQuery.java:177)
Comment 1 Exceptions Reporter 2015-05-19 09:42:46 UTC
Created attachment 153743 [details]
stacktrace
Comment 2 Tomas Hurka 2015-05-29 12:58:05 UTC
Problem is caused by exception in static initializer in MIMEExtensions. See messages.log for details.

java.lang.IllegalArgumentException: MultiFileObject@c670cfa[Services/MIMEResolver/user-defined-mime-resolver.xml]
	at org.netbeans.modules.openide.filesystems.declmime.MIMEResolverImpl.create(MIMEResolverImpl.java:358)
	at org.netbeans.modules.openide.filesystems.declmime.MIMEResolverImpl.getMIMEToExtensions(MIMEResolverImpl.java:153)
	at org.openide.filesystems.FileUtil.getMIMETypeExtensions(FileUtil.java:1385)
	at org.netbeans.modules.cnd.utils.MIMEExtensions.<init>(MIMEExtensions.java:127)
	at org.netbeans.modules.cnd.utils.MIMEExtensions.<init>(MIMEExtensions.java:73)
	at org.netbeans.modules.cnd.utils.MIMEExtensions$Manager.create(MIMEExtensions.java:305)
	at org.netbeans.modules.cnd.utils.MIMEExtensions$Manager.initialize(MIMEExtensions.java:267)
	at org.netbeans.modules.cnd.utils.MIMEExtensions$Manager.<init>(MIMEExtensions.java:241)
	at org.netbeans.modules.cnd.utils.MIMEExtensions$Manager.<init>(MIMEExtensions.java:231)
	at org.netbeans.modules.cnd.utils.MIMEExtensions.<clinit>(MIMEExtensions.java:75)
Comment 3 Alexander Simon 2015-07-21 08:20:33 UTC
It looks like broken NetBeans installation.
Stack in the class cnd.utils.MIMEExtensions does not fit the module:
org.netbeans.modules.cnd.utils [1.43.14.2 2 201502261250]
Reassign to evaluation.
Comment 4 Tomas Hurka 2015-09-10 08:35:39 UTC
Problem is caused by broken Services/MIMEResolver/user-defined-mime-resolver.xml file.

*** This bug has been marked as a duplicate of bug 252855 ***