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 235687

Summary: IllegalArgumentException: Root cannot be null.
Product: projects Reporter: Exceptions Reporter <exceptions_reporter>
Component: MavenAssignee: Milos Kleint <mkleint>
Status: RESOLVED FIXED    
Severity: normal CC: abien, crued, ejvyas, mjanicek, pramoth, rayhanfrds, xtecuan
Priority: P3    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 203700
Attachments: stacktrace

Description Exceptions Reporter 2013-09-09 11:26:41 UTC
This issue was reported manually by mjanicek.
It already has 26 duplicates 


Build: NetBeans IDE 7.3 (Build 201306052037)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_17-b02
OS: Linux

User Comments:
GUEST: Building a maven project

GUEST: I don't know the reason of this exception

GUEST: errr

ejvyas: JUnit with Spring

GUEST: Error root not null

xtecuan: Error al trabajar con GlassFish Server Open Source Edition 3.1.2.2 (build 5) en netbeans 7.3.1

GUEST: Started netbeans and the error shows up

crued: Working with several maven projects, some of which depend on others. Switching back into the source view for the client of the jars produced by the others seems to cause this error.

This seems to prevent other source editing features from working properly, like "Fix Imports." It seems that the IDE is completely unaware of some of the classes contained in the upstream projects.

Unfortunately, I'm not exactly sure how to reproduce. It seems to get better for a little while after clearing out the cache directory under .netbeans, but then re-appears.

It may be nice to skip past this condition to allow source scanning to continue properly, perhaps with reporting the error condition? 

Wish I had more info (maybe the trace has more)

GUEST: project opening

xtecuan: in maven projects

abien: Problem happend during experiments with JBoss 7.1.1 hot deployment

GUEST: new a web filter




Stacktrace: 
java.lang.IllegalArgumentException: Root cannot be null.
   at org.netbeans.modules.java.classpath.SimplePathResourceImplementation.verify(SimplePathResourceImplementation.java:85)
   at org.netbeans.modules.java.classpath.SimplePathResourceImplementation.verify(SimplePathResourceImplementation.java:68)
   at org.netbeans.modules.java.classpath.SimplePathResourceImplementation.<init>(SimplePathResourceImplementation.java:126)
   at org.netbeans.spi.java.classpath.support.ClassPathSupport.createResource(ClassPathSupport.java:77)
   at org.netbeans.modules.maven.classpath.EndorsedClassPathImpl.getResources(EndorsedClassPathImpl.java:128)
   at org.netbeans.modules.maven.classpath.BootClassPathImpl.getResources(BootClassPathImpl.java:97)
Comment 1 Exceptions Reporter 2013-09-09 11:26:43 UTC
Created attachment 139826 [details]
stacktrace
Comment 2 Milos Kleint 2013-09-10 07:46:22 UTC
http://hg.netbeans.org/core-main/rev/2d2bb8baec34
Comment 3 Quality Engineering 2013-09-12 01:22:15 UTC
Integrated into 'main-silver', will be available in build *201309120002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/2d2bb8baec34
User: Milos Kleint <mkleint@netbeans.org>
Log: #235687 always check for null before passing to createResource method
Comment 4 Tomas Zezula 2015-08-20 12:49:07 UTC
*** Bug 254538 has been marked as a duplicate of this bug. ***