Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364972 - NullPointerException with an internal maven project as a dependency and 'Maven Dependencies' are in 'Web Deployment Assembly'
Summary: NullPointerException with an internal maven project as a dependency and 'Mave...
Status: CLOSED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: m2e (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-28 11:09 EST by Missing name Mising name CLA
Modified: 2021-04-19 13:23 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Missing name Mising name CLA 2011-11-28 11:09:46 EST
I'm getting a NullPointerException under the following circumstances:

- 'Maven Dependencies' are added to the 'Web Deployment Assembly'
- I add a dependency to the POM that is another maven project in the same workspace

I also get the error when the situation is reversed:

- The other maven project in the same workspace is already added to the project's POM
- I add 'Maven Dependencies' to the 'Web Deployment Assembly'

Error message is:
An internal error occurred during: "Updating status for Tomcat v6.0 Server at localhost...".
java.lang.NullPointerException


From the .metadata/.log file:

!ENTRY org.eclipse.core.jobs 4 2 2011-11-28 10:03:21.247
!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:415)
	at org.eclipse.wst.server.core.internal.ServerPublishInfo.hasDelta(ServerPublishInfo.java:440)
	at org.eclipse.wst.server.core.internal.Server.hasPublishedResourceDelta(Server.java:1534)
	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:2910)
	at org.eclipse.wst.server.core.internal.Server.visit(Server.java:2894)
	at org.eclipse.wst.server.core.internal.Server$ResourceChangeJob.run(Server.java:225)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 1 Igor Fedorenko CLA 2011-11-28 12:48:03 EST
m2e does not directly provide integration with wtp. Please use https://issues.sonatype.org/browse/MECLIPSEWTP to report m2e/wtp integration problems (assuming you are using m2eclipse-wtp).
Comment 2 Denis Roy CLA 2021-04-19 13:23:44 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/