Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 369912

Summary: NullPointerException on deployment
Product: [WebTools] WTP Java EE Tools Reporter: Guillaume Doumenc <gdoumenc>
Component: jst.j2eeAssignee: Roberto Sanchez Herrera <shr31223>
Status: NEW --- QA Contact: Chuck Bridgham <cbridgha>
Severity: major    
Priority: P3 CC: ccc
Version: unspecified   
Target Milestone: Future   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Guillaume Doumenc CLA 2012-01-27 06:06:23 EST
Build Identifier: 20110301-1815

!ENTRY org.eclipse.core.jobs 4 2 2012-01-27 11:46:49.027
!MESSAGE An internal error occurred during: "Updating status for Tomcat v6.0 Server at localhost...".
!STACK 0
java.lang.NullPointerException
	at org.eclipse.wst.common.componentcore.internal.util.VirtualReferenceUtilities.getDefaultProjectArchiveName(VirtualReferenceUtilities.java:81)
	at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponent.getJavaClasspathReferences(J2EEModuleVirtualComponent.java:338)
	at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponent.getNonManifestRefs(J2EEModuleVirtualComponent.java:242)
	at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponent.getReferences(J2EEModuleVirtualComponent.java:166)
	at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponent.getReferences(J2EEModuleVirtualComponent.java:214)
	at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponent.getReferences(J2EEModuleVirtualComponent.java:207)
	at org.eclipse.jst.common.internal.modulecore.SingleRootUtil.hasConsumableReferences(SingleRootUtil.java:217)
	at org.eclipse.jst.common.internal.modulecore.SingleRootUtil.validateSingleRoot(SingleRootUtil.java:165)
	at org.eclipse.jst.common.internal.modulecore.SingleRootUtil.isSingleRoot(SingleRootUtil.java:93)
	at org.eclipse.jst.common.internal.modulecore.SingleRootExportParticipant.canOptimize(SingleRootExportParticipant.java:84)
	at org.eclipse.wst.common.componentcore.internal.flat.FlatVirtualComponent.canOptimize(FlatVirtualComponent.java:136)
	at org.eclipse.wst.common.componentcore.internal.flat.FlatVirtualComponent.cacheResources(FlatVirtualComponent.java:118)
	at org.eclipse.wst.common.componentcore.internal.flat.FlatVirtualComponent.fetchResources(FlatVirtualComponent.java:101)
	at org.eclipse.wst.web.internal.deployables.FlatComponentDeployable.members(FlatComponentDeployable.java:147)
	at org.eclipse.wst.server.core.internal.ModulePublishInfo.hasDelta(ModulePublishInfo.java:418)
	at org.eclipse.wst.server.core.internal.ServerPublishInfo.hasDelta(ServerPublishInfo.java:443)
	at org.eclipse.wst.server.core.internal.Server.hasPublishedResourceDelta(Server.java:1574)
	at org.eclipse.wst.server.core.internal.Server$ResourceChangeJob$1.visit(Server.java:214)
	at org.eclipse.wst.server.core.internal.Server.visitModule(Server.java:2962)
	at org.eclipse.wst.server.core.internal.Server.visit(Server.java:2946)
	at org.eclipse.wst.server.core.internal.Server$ResourceChangeJob.run(Server.java:225)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)


Reproducible: Always

Steps to Reproduce:
Don't understand the reasons as many others projects working well...
Comment 1 Elson Yuen CLA 2012-03-07 12:00:27 EST
The problem looks like to be coming from the Java EE code when calculating the members.  Therefore, I am routing this to the Java EE tools component.
Comment 2 Carl Anderson CLA 2012-03-14 08:38:47 EDT
Assigning to Roberto for the initial investigation.
Comment 3 Roberto Sanchez Herrera CLA 2012-03-14 10:52:46 EDT
Guillaume, what type of projects did you have deployed in Tomcat? Web modules?