This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 218334 - NPE thrown when publishing single WAR on JBoss
Summary: NPE thrown when publishing single WAR on JBoss
Status: CLOSED FIXED
Alias: None
Product: WTP Java EE Tools
Classification: WebTools
Component: jst.j2ee (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 major with 1 vote (vote)
Target Milestone: 3.0.4   Edit
Assignee: Jason Sholl CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-08 11:35 EST by Kaloyan Raev CLA
Modified: 2009-02-18 10:13 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kaloyan Raev CLA 2008-02-08 11:35:40 EST
Steps to reproduce:
1. Create a Web 2.5 project. Target it on JBoss v4.2. 
2. Right click on the project > Run As > Run On Server. 

Publishing starts, but crashes with NullPointerException - see below. After a quick look it seems that the problem is in the J2EEFlexProjDeployable, but I cannot be sure. 

Tim, please have a look, too. 



java.lang.NullPointerException
	at org.eclipse.wst.common.componentcore.internal.util.ComponentUtilities.getDeployUriOfComponent(ComponentUtilities.java:327)
	at org.eclipse.jst.j2ee.internal.deployables.J2EEFlexProjDeployable.getURI(J2EEFlexProjDeployable.java:439)
	at org.eclipse.jst.server.generic.core.internal.publishers.AntPublisher.guessModuleName(AntPublisher.java:282)
	at org.eclipse.jst.server.generic.core.internal.publishers.AntPublisher.getPublishProperties(AntPublisher.java:247)
	at org.eclipse.jst.server.generic.core.internal.publishers.AntPublisher.publish(AntPublisher.java:115)
	at org.eclipse.jst.server.generic.core.internal.GenericServerBehaviour.publishModule(GenericServerBehaviour.java:82)
	at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:742)
	at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:828)
	at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:659)
	at org.eclipse.wst.server.core.internal.Server.doPublish(Server.java:985)
	at org.eclipse.wst.server.core.internal.Server.publish(Server.java:935)
	at org.eclipse.wst.server.core.internal.PublishServerJob.run(PublishServerJob.java:73)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Comment 1 Tim deBoer CLA 2008-02-08 13:36:37 EST
Gorkem develops the generic server, but I don't see any obvious problem with calling getURI().
Comment 2 Silvano Maffeis CLA 2008-02-28 12:08:31 EST
I have exactly the same problem consistently. Everything is OK after a clean installation of Eclipse EE 3.3. Then I run an update and install all the available DTP and WST updates. The NullPointerException occurs after installing those updates. Workaround: revert to previous configuration.
Comment 3 Carl Anderson CLA 2009-01-15 13:54:42 EST
Is this problem still occurring?  (I know a lot of work has been done in this area.)
Comment 4 Kaloyan Raev CLA 2009-01-15 14:08:06 EST
This is not reproducible in 3.0.x and 3.1 codelines any more. 
Comment 5 Kaloyan Raev CLA 2009-02-18 10:13:06 EST
Closing.