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 212067 - NoClassDefFoundError: Could not initialize class org.netbeans.modules.project.ant.AntBasedProjectFactorySingleton
Summary: NoClassDefFoundError: Could not initialize class org.netbeans.modules.project...
Status: NEW
Alias: None
Product: third-party
Classification: Unclassified
Component: xtt (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: twojenski
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-04 09:24 UTC by karianna
Modified: 2013-02-07 13:43 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 144169


Attachments
stacktrace (1.28 KB, text/plain)
2012-05-04 09:24 UTC, karianna
Details

Note You need to log in before you can comment on or make changes to this bug.
Description karianna 2012-05-04 09:24:21 UTC
Build: NetBeans IDE 7.1.2 (Build 201204101705)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.6-b01-415, Java(TM) SE Runtime Environment, 1.6.0_31-b04-415-11M3635
OS: Mac OS X

Stacktrace: 
java.lang.NoClassDefFoundError: Could not initialize class org.netbeans.modules.project.ant.AntBasedProjectFactorySingleton
   at org.netbeans.modules.project.ant.ProjectLibraryProvider.getOpenAreas(ProjectLibraryProvider.java:184)
   at org.netbeans.modules.project.libraries.LibraryAccessor.getOpenAreas(LibraryAccessor.java:100)
   at org.netbeans.api.project.libraries.LibraryManager.getOpenManagers(LibraryManager.java:495)
   at org.netbeans.modules.java.j2seplatform.libraries.J2SELibraryClassPathProvider.findClassPath(J2SELibraryClassPathProvider.java:74)
   at org.netbeans.api.java.classpath.ClassPath.getClassPath(ClassPath.java:632)
   at org.netbeans.modules.parsing.impl.indexing.errors.Utilities.getSourceClassPathFor(Utilities.java:66)
Comment 1 karianna 2012-05-04 09:24:26 UTC
Created attachment 119072 [details]
stacktrace
Comment 2 Jaroslav Tulach 2012-05-18 09:57:48 UTC
Looking at
http://statistics.netbeans.org/exceptions/messageslog?id=577579
one can find:

INFO [org.netbeans.modules.subversion.client.SvnClientFactory]: setup: using commandline as the client - saved in preferences
WARNING [org.netbeans.ProxyClassLoader]: Will not load class org.apache.xerces.jaxp.SAXParserFactoryImpl arbitrarily from one of ModuleCL@72d006a7[org.netbeans.libs.xerces] and ModuleCL@aede59e[org.apache.xerces_2_11_0] starting from SystemClassLoader[518 modules]; see http://wiki.netbeans.org/DevFaqModuleCCE
WARNING [org.netbeans.modules.netbinox]: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found
javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found
	at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:134)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAdaptorHook$ParsingService.createService(EclipseAdaptorHook.java:147)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAdaptorHook$ParsingService.getService(EclipseAdaptorHook.java:122)
	at org.eclipse.osgi.internal.serviceregistry.ServiceUse$1.run(ServiceUse.java:120)
	at java.security.AccessController.doPrivileged(Native Method)


we should not have two modules providing Xerces in the system:
[org.netbeans.libs.xerces] and ModuleCL@aede59e[org.apache.xerces_2_11_0]
Comment 3 Jaroslav Tulach 2012-05-18 09:59:04 UTC
My guess is that the org.apache.xerces is coming from 

dougmcneild.name.xslt.debugger.container [1.4.1 1 120331]
dougmcneil.name.xslt.debugger [1.5.2 2 120331]

as it has the same impl version 120331. Stop using dogmcneil debugger for now.