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 170624 - NullPointerException at org.netbeans.core.startup.layers.ArchiveURLMapper.getURL
Summary: NullPointerException at org.netbeans.core.startup.layers.ArchiveURLMapper.getURL
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Milos Kleint
URL: http://statistics.netbeans.org/except...
Keywords:
: 166047 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-08-19 14:18 UTC by smvda
Modified: 2009-11-05 08:44 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 153843


Attachments
stacktrace (1.92 KB, text/plain)
2009-08-19 14:18 UTC, smvda
Details
stacktrace (1.33 KB, text/plain)
2009-08-20 03:40 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description smvda 2009-08-19 14:18:01 UTC
Build: NetBeans IDE 6.7.1 (Build 200907230233)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Linux, 2.6.28-15-generic, amd64

User Comments:
GUEST: Trying to  open a maven EAR project by right clicking on it and selecting "open module" in the parent project triggered this error.

smvda: Problem, create webservices client.



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.core.startup.layers.ArchiveURLMapper.getURL(ArchiveURLMapper.java:82)
        at org.openide.filesystems.URLMapper.findURL(URLMapper.java:136)
        at org.netbeans.modules.j2ee.deployment.impl.DeployOnSaveManager.startListening(DeployOnSaveManager.java:169)
        at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.enableCompileOnSaveSupport(Deployment.java:279)
        at org.netbeans.modules.maven.j2ee.POHImpl.refreshAppServerAssignment(POHImpl.java:208)
        at org.netbeans.modules.maven.j2ee.POHImpl$1.run(POHImpl.java:105)
Comment 1 smvda 2009-08-19 14:18:07 UTC
Created attachment 86455 [details]
stacktrace
Comment 2 Exceptions Reporter 2009-08-19 15:12:04 UTC
This issue already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=153843
Comment 3 Exceptions Reporter 2009-08-20 03:40:21 UTC
Build: NetBeans IDE 6.7 (Build 200906241340)
VM: Java HotSpot(TM) Client VM, 1.6.0_02-b06, Java(TM) SE Runtime Environment, 1.6.0_02-b06
OS: Windows XP, 5.1, x86

User Comments: 
Trying to open an EJB Maven Project. Project was previously opened, but closed for some reason. 

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.core.startup.layers.ArchiveURLMapper.getURL(ArchiveURLMapper.java:82)
        at org.openide.filesystems.URLMapper.findURL(URLMapper.java:136)
        at org.netbeans.modules.j2ee.deployment.impl.DeployOnSaveManager.startListening(DeployOnSaveManager.java:169)
        at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.enableCompileOnSaveSupport(Deployment.java:279)
        at org.netbeans.modules.maven.j2ee.POHImpl.refreshAppServerAssignment(POHImpl.java:208)
        at org.netbeans.modules.maven.j2ee.POHImpl.projectOpened(POHImpl.java:115)
Comment 4 Exceptions Reporter 2009-08-20 03:40:25 UTC
Created attachment 86492 [details]
stacktrace
Comment 5 Exceptions Reporter 2009-08-20 03:40:31 UTC
This issue already has 7 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=153843
Comment 6 Stanislav Aubrecht 2009-08-28 10:15:58 UTC
URLMapper is getting a null FileObject from jee module, please evaluate
Comment 7 Petr Jiricka 2009-09-15 16:12:07 UTC
Is this from j2eeserver or from Maven?
Comment 8 Petr Hejl 2009-09-23 13:30:52 UTC
Looks like there are some null FileObjects coming from provider.getSourceFileMap().getSourceRoots() in maven. Is this
intended?
Comment 9 Milos Kleint 2009-09-24 09:19:51 UTC
http://hg.netbeans.org/main/rev/cd1d1d5672d2
Comment 10 Quality Engineering 2009-09-25 09:15:18 UTC
Integrated into 'main-golden', will be available in build *200909241442* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/cd1d1d5672d2
User: Milos Kleint <mkleint@netbeans.org>
Log: #170624 rework getSoureRoots methods, make sure no null values slip in..
Comment 11 Petr Jiricka 2009-09-25 09:17:59 UTC
*** Issue 166047 has been marked as a duplicate of this issue. ***