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 226061

Summary: NullPointerException at java.io.File.<init>
Product: javaee Reporter: mienamoo
Component: MavenAssignee: Martin Janicek <mjanicek>
Status: VERIFIED FIXED    
Severity: normal    
Priority: P3    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 198565
Attachments: stacktrace

Description mienamoo 2013-02-13 14:08:32 UTC
This bug was originally marked as duplicate of bug 222839, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201302070001)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.6-b04, Java(TM) SE Runtime Environment, 1.7.0_11-b21
OS: Windows 7

User Comments:
mienamoo: I pulled changes from our repository, which included renaming a web module (including the folder name), so that the project that was open no longer existed on the file system.

GUEST: idle

GUEST: rebuild




Stacktrace: 
java.lang.NullPointerException
   at java.io.File.<init>(File.java:251)
   at org.netbeans.modules.maven.j2ee.ear.EarImpl.getContentDirectory(EarImpl.java:353)
   at org.netbeans.modules.j2ee.deployment.devmodules.api.J2eeModule.getContentDirectory(J2eeModule.java:269)
   at org.netbeans.modules.j2ee.deployment.impl.TargetServer.init(TargetServer.java:153)
   at org.netbeans.modules.j2ee.deployment.impl.TargetServer.notifyArtifactsUpdated(TargetServer.java:819)
   at org.netbeans.modules.j2ee.deployment.impl.DeployOnSaveManager$DeployTask.notifyServer(DeployOnSaveManager.java:548)
Comment 1 mienamoo 2013-02-13 14:08:34 UTC
Created attachment 131347 [details]
stacktrace
Comment 2 Martin Janicek 2013-02-13 16:12:15 UTC
Fixed in: web-main #d63e2bf9859e (not in trunk, currently only on javaee7 branch)
Comment 3 Quality Engineering 2013-02-19 01:50:40 UTC
Integrated into 'main-golden', will be available in build *201302182300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/d63e2bf9859e
User: Martin Janicek <mjanicek@netbeans.org>
Log: #226061 - NullPointerException at java.io.File.<init>
Comment 4 mienamoo 2013-02-19 06:48:33 UTC
Verified with build 201302182300. Thanks for the fix!
Comment 5 Martin Janicek 2013-02-19 08:23:42 UTC
(In reply to comment #4)
> Verified with build 201302182300. Thanks for the fix!

You are welcome! Thanks for the report ;)
Comment 6 mienamoo 2013-02-19 09:07:54 UTC
(In reply to comment #5)
> You are welcome! Thanks for the report ;)

You're welcome! :D