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 27124

Summary: xtest's tests with own classloader doesn't work
Product: platform Reporter: L Martinek <lmartinek>
Component: -- Other --Assignee: issues@utilities <issues>
Status: VERIFIED FIXED    
Severity: blocker CC: breh, jglick
Priority: P2 Keywords: T9Y
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description L Martinek 2002-09-09 11:17:31 UTC
Appeared in build 200209090100. Exception is
thrown during IDE startup. Build 200209060100 with
the same xtest works.

java.lang.reflect.InvocationTargetException:
java.lang.NullPointerException
	at
org.netbeans.core.modules.Module.findExtensionsAndVariants(Module.java:589)
	at
org.netbeans.core.modules.Module.<init>(Module.java:138)
	at
org.netbeans.core.modules.ModuleManager.create(ModuleManager.java:380)
	at
org.netbeans.core.modules.ModuleList.scanDir(ModuleList.java:182)
	at
org.netbeans.core.modules.ModuleList.scan(ModuleList.java:162)
	at
org.netbeans.core.modules.ModuleSystem.scanForNewAndRestore(ModuleSystem.java:257)
	at org.netbeans.core.NonGui.run(NonGui.java:466)
	at org.netbeans.core.Main.run(Main.java:237)
	at
org.openide.TopManager.initializeTopManager(TopManager.java:122)
	at
org.openide.TopManager.getDefault(TopManager.java:83)
	at org.netbeans.xtest.ide.Main.main(Main.java:267)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.netbeans.Main.main(Main.java:75)
Comment 1 L Martinek 2002-09-09 16:39:17 UTC
This is not bug in openidex tests. All tests which use own classloader
doesn't work. Bug could be in core.
Comment 2 _ ttran 2002-09-10 20:54:03 UTC
just saw Jesse fix it today


  User: jglick  
  Date: 02/09/10 08:14:15

  Modified:    src/org/netbeans/core/modules Module.java
  Log:
  Fixing NPE that was (apparently) causing problems for openidex tests.
  
  Revision  Changes    Path
  1.36      +3 -0      core/src/org/netbeans/core/modules/Module.java
  
 
http://core.netbeans.org/source/browse/core/src/org/netbeans/core/modules/Module.java.diff?r1=1.35&r2=1.36
Comment 3 Jesse Glick 2002-09-10 21:03:45 UTC
Ah, didn't even know it was filed already. You could just assign
straight to core/modules BTW since the NPE was there.

I noticed the problem only after a couple of days - when XTest failed
to run the openidex tests, it did not list them in Failed Tests in the
results summary! It mentioned that the tests were not run in small
print somewhere else on the page. You might want to call attention to
such errors more clearly in the results summary.
Comment 4 Marian Mirilovic 2004-03-05 22:37:18 UTC
verified