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 199838 - Unable to deploy project, NPE during deployment
Summary: Unable to deploy project, NPE during deployment
Status: RESOLVED INCOMPLETE
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.0.1
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-01 20:02 UTC by javydreamercsw
Modified: 2011-07-14 13:50 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Log with the issue (137.42 KB, application/octet-stream)
2011-07-01 20:03 UTC, javydreamercsw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description javydreamercsw 2011-07-01 20:02:30 UTC
I noticed there are changes done to the build-impl.xml file when the project is compiled on 7.0.1. It gives a NPE.

Exactly the same project (reverting the changes done by 7.0.1) deploys successfully on the same container (Tomcat 7) without any further changes.

The project can be checked out from https://xinco.svn.sourceforge.net/svnroot/xinco/trunk

Notice that you need to clean and build on 7.0.1 to trigger the issue.

java.lang.NullPointerException
	at org.netbeans.modules.j2ee.deployment.plugins.spi.IncrementalDeployment.getDirectoryForNewApplication(IncrementalDeployment.java:147)
	at org.netbeans.modules.j2ee.deployment.impl.InitialServerFileDistributor.distribute(InitialServerFileDistributor.java:104)
	at org.netbeans.modules.j2ee.deployment.impl.TargetServer.initialDistribute(TargetServer.java:263)
	at org.netbeans.modules.j2ee.deployment.impl.TargetServer.deploy(TargetServer.java:638)
[catch] at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:197)
	at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:106)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
	at sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:390)
	at org.apache.tools.ant.Target.performTasks(Target.java:411)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
	at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:284)
	at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)
	at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
Comment 1 javydreamercsw 2011-07-01 20:03:33 UTC
Created attachment 109199 [details]
Log with the issue

After switching to 7.0 then back to 7.0.1 the issue was gone. Attaching the log showing the issue.
Comment 2 David Konecny 2011-07-03 21:11:05 UTC
PetrH, feel free to lower to P3 if impact is limited. At first sight looks like a regression or something in 7.0.1.
Comment 3 Petr Hejl 2011-07-13 13:55:07 UTC
I am not aware of any changes in call stack that could introduce this.

I'm not able to reproduce the issue as the freshly checkout project is not buildable (non utf char, missing org.eclipse.* class). Can you provide steps to reproduce the issue with clean installation of NetBeans and Tomcat 7? Including project configuration. The project seems to be somehow customized.
Comment 4 javydreamercsw 2011-07-13 22:53:47 UTC
You can get a working project from: https://xinco.svn.sourceforge.net/svnroot/xinco/trunk

I would load it but I'm away from home with limited speed internet access and will be for at least 3 more weeks.
Comment 5 Petr Hejl 2011-07-14 13:50:04 UTC
As I wrote I've checked out the project from the URL you provided, but it is not prepared for "open - assign server - run". There are some missing dependencies etc.

Would be great to have step by step configuration instructions.
Thanks.