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 168279 - NullPointerException in org.netbeans.modules.apisupport.project.layers.LayerNode$LayerChildren$1.run(LayerNode.java:158)
Summary: NullPointerException in org.netbeans.modules.apisupport.project.layers.LayerN...
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: rmichalsky
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-08 13:02 UTC by mslama
Modified: 2009-09-24 23:21 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 153471


Attachments
stacktrace (410 bytes, text/plain)
2009-08-06 20:19 UTC, Milos Kleint
Details
stacktrace (1.88 KB, text/plain)
2009-08-07 11:08 UTC, Martin Entlicher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mslama 2009-07-08 13:02:17 UTC
Build: NetBeans IDE Dev (Build 090708)
VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08
OS: Linux, 2.6.28-13-generic, i386
User comments: Starting IDE
STACKTRACE: (first 10 lines)
org.openide.util.RequestProcessor$FastItem: task failed due to: java.lang.IllegalArgumentException: Already listening to
/home/mslama/NetBeansProjects/JavaApplication1/test
Comment 1 Milos Kleint 2009-08-06 20:19:27 UTC
Build: NetBeans IDE Dev (Build 200908011401)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Linux, 2.6.29.6-desktop-1mnb, i386

User Comments: 
expanding the xml layer node in the maven nb module project

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.apisupport.project.layers.LayerNode$LayerChildren$1.run(LayerNode.java:158)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1070)
Comment 2 Milos Kleint 2009-08-06 20:19:31 UTC
Created attachment 85927 [details]
stacktrace
Comment 3 Martin Entlicher 2009-08-07 11:08:42 UTC
Build: NetBeans IDE Dev (Build 090803)
VM: Java HotSpot(TM) Client VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03
OS: Linux, 2.6.22-14-generic, i386

User Comments: 
During project opening.

Stacktrace: 
java.lang.IllegalArgumentException: Already listening to /home.local/martin/NetBeansProjects/Gallery/test
        at org.openide.filesystems.FileUtil.addFileChangeListener(FileUtil.java:242)
        at org.netbeans.modules.java.api.common.SourceRoots$ProjectMetadataListener.add(SourceRoots.java:513)
        at org.netbeans.modules.java.api.common.SourceRoots$4.run(SourceRoots.java:257)
        at org.netbeans.modules.java.api.common.SourceRoots$4.run(SourceRoots.java:235)
        at org.openide.util.Mutex.readAccess(Mutex.java:285)
        at org.netbeans.modules.java.api.common.SourceRoots.getRootURLs(SourceRoots.java:235)
Comment 4 Martin Entlicher 2009-08-07 11:08:46 UTC
Created attachment 85954 [details]
stacktrace
Comment 5 Exceptions Reporter 2009-08-20 07:49:24 UTC
This issue already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=153471
Comment 6 Jan Lahoda 2009-08-20 10:00:03 UTC
Reassigning all moonko's java/source bugs to myself.
Comment 7 Jan Lahoda 2009-08-20 13:03:18 UTC
For the IAE, see issue #167605 and issue #169008. Reassigning to apisupport to cover the NPE.
Comment 8 rmichalsky 2009-08-20 21:27:14 UTC
Reproducible. core-main #aee17e5099a7
Comment 9 Quality Engineering 2009-08-26 06:41:59 UTC
Integrated into 'main-golden', will be available in build *200908260201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/aee17e5099a7
User: Richard Michalsky <rmichalsky@netbeans.org>
Log: #168279: NPE while expanding XML layer node in Maven NBM project