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 138402 - NPE from IncrementalDeployment.getDirectoryForNewApplication
Summary: NPE from IncrementalDeployment.getDirectoryForNewApplication
Status: RESOLVED WORKSFORME
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-26 19:06 UTC by Jesse Glick
Modified: 2009-08-06 12:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2008-06-26 19:06:44 UTC
Dev build. Trying to deploy JSPWiki. Had some problems with GFv2 admin password, finally got it right (I think!),
pressed F6 on web app again. Build failed:

init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
Deployment error:
null
See the server log for details.
        at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:174)
        at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:104)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor119.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
        at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:273)
        at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:481)
        at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
Caused by: java.lang.NullPointerException
        at
org.netbeans.modules.j2ee.deployment.plugins.spi.IncrementalDeployment.getDirectoryForNewApplication(IncrementalDeployment.java:138)
        at
org.netbeans.modules.j2ee.sun.ide.j2ee.incrdeploy.DirectoryDeploymentFacade.getDirectoryForNewApplication(DirectoryDeploymentFacade.java:308)
        at
org.netbeans.modules.j2ee.deployment.impl.InitialServerFileDistributor.distribute(InitialServerFileDistributor.java:101)
        at org.netbeans.modules.j2ee.deployment.impl.TargetServer.initialDistribute(TargetServer.java:187)
        at org.netbeans.modules.j2ee.deployment.impl.TargetServer.deploy(TargetServer.java:537)
        at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:159)
        ... 16 more
BUILD FAILED (total time: 1 second)
Comment 1 Petr Hejl 2008-10-06 15:33:12 UTC
I'm not aware of any way how to reproduce this. I was looking into the code, but didn't find a way how this could
happen. Jesse do you have any further details? Are you able to reproduce it?
Comment 2 Jesse Glick 2008-11-07 18:06:23 UTC
Sorry, I don't know, just tried it once (do not usually try to do web app development!) and it failed with this error.
Generally an NPE means you can put in some more descriptive assertion code nearby, though.
Comment 3 Thuy.d Nguyen 2008-12-19 01:16:13 UTC
Since we do not have a reproducible case for this issue, We'll need to add an assertion to the code to get more info if
it ever happens again.
Comment 4 Petr Hejl 2009-08-06 12:55:59 UTC
I'm afraid we are not able to reproduce this one.