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 187130 - Can not run unit tests anymore
Summary: Can not run unit tests anymore
Status: RESOLVED INCOMPLETE
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on: 185135
Blocks:
  Show dependency tree
 
Reported: 2010-06-03 11:48 UTC by delbd
Modified: 2011-06-10 18:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description delbd 2010-06-03 11:48:57 UTC
i constantly get this exception when trying to run unit test (maven 2 projet). Was working well until yesterday. The mentionned class in exception is random, but it's systematic. After error, netbean consume constantly one CPU core.

Moreover, it seems impossible to send an automatic error report from netbeans (it doesn't appear in tracker)


java.lang.ClassNotFoundException: org.apache.tools.ant.module.api.IntrospectedInfo$IntrospectedClass
	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
	at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:259)
Caused: java.lang.ClassNotFoundException: org.apache.tools.ant.module.api.IntrospectedInfo$IntrospectedClass starting from ModuleCL@5b5a5cf[org.apache.tools.ant.module] with possible defining loaders [ModuleCL@5b5a5cf[org.apache.tools.ant.module]] and declared parents [ModuleCL@f786a3c[org.openide.awt], ModuleCL@689e8c34[org.jdesktop.layout], ModuleCL@106df95[org.openide.dialogs], ModuleCL@79ca209e[org.netbeans.api.xml], ModuleCL@594ab51b[org.netbeans.modules.projectuiapi], ModuleCL@3cd0d12e[org.openide.windows], ModuleCL@2a63b2e6[org.openide.actions], ModuleCL@4523a389[org.netbeans.spi.navigator], ModuleCL@53706eb7[org.openide.execution], ModuleCL@75d709a5[org.netbeans.modules.options.api], ...8 more]
	at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:261)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Caused: java.lang.NoClassDefFoundError: org/apache/tools/ant/module/api/IntrospectedInfo$IntrospectedClass
	at org.apache.tools.ant.module.api.IntrospectedInfo$3.assureDefined(IntrospectedInfo.java:761)
	at org.apache.tools.ant.module.api.IntrospectedInfo$3.load(IntrospectedInfo.java:717)
	at org.apache.tools.ant.module.AntSettings.getCustomDefs(AntSettings.java:138)
	at org.apache.tools.ant.module.bridge.impl.BridgeImpl$1.run(BridgeImpl.java:303)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1084)
Comment 1 delbd 2010-06-03 12:58:55 UTC
a workaround was to remove /var/cache in my netbean user profile, very curious bug
Comment 2 joefitz 2010-08-27 21:08:53 UTC
I have a problem like this at least once/day... closing netbeans and deleting the ~/.netbeans/var/cache/index directory fixes it.  This is a real pain though.  This has been happening for me in the last 2-3+ versions of NetBeans.
Comment 3 Jesse Glick 2011-06-10 18:32:51 UTC
Cannot say much without your log file, but most likely you ran out of file handles. See blocking issue for instructions on increasing your ulimit.