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

Bug 343583

Summary: NPE during "Updating Maven Configuration"
Product: z_Archived Reporter: Benjamin Reed <ranger>
Component: m2eAssignee: Project Inbox <m2e.core-inbox>
Status: CLOSED NOT_ECLIPSE QA Contact:
Severity: major    
Priority: P3 CC: igor
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Benjamin Reed CLA 2011-04-21 12:33:45 EDT
I receive the following exception when trying to import the "opennms-webapp" project:

---(snip!)---
eclipse.buildId=M20110210-1200
java.version=1.6.0_24
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.java.product -keyring /Users/ranger/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.java.product -keyring /Users/ranger/.eclipse_keyring -showlocation


Error
Thu Apr 21 12:28:30 EDT 2011
An internal error occurred during: "Updating Maven Configuration".

java.lang.NullPointerException
at org.eclipse.wst.common.componentcore.internal.resources.VirtualComponent.create(VirtualComponent.java:364)
at org.maven.ide.eclipse.wtp.WebProjectConfiguratorDelegate.configure(WebProjectConfiguratorDelegate.java:93)
at org.maven.ide.eclipse.wtp.AbstractProjectConfiguratorDelegate.configureProject(AbstractProjectConfiguratorDelegate.java:75)
at org.maven.ide.eclipse.wtp.WTPProjectConfigurator.configure(WTPProjectConfigurator.java:44)
at org.maven.ide.eclipse.project.configurator.AbstractLifecycleMapping.configure(AbstractLifecycleMapping.java:57)
at org.maven.ide.eclipse.internal.project.GenericLifecycleMapping.configure(GenericLifecycleMapping.java:48)
at org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:306)
at org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:292)
at org.maven.ide.eclipse.actions.UpdateSourcesAction$1.runInWorkspace(UpdateSourcesAction.java:92)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
---(snip!)---

Steps to reproduce:

1. git clone git://opennms.git.sourceforge.net/gitroot/opennms/opennms
2. cd opennms
3. ./compile.pl
4. open Eclipse
5. File -> Import -> Existing Maven Projects
6. Right-click on project -> m2Eclipse -> Update Project Configuration
Comment 1 Benjamin Reed CLA 2011-04-21 12:34:55 EDT
Version is the latest one in the public eclipse repository, it wasn't in the "version" pull-down:

  Maven Integration for Eclipse (Required)	0.12.1.20110112-1712
  Maven Integration for WTP (Optional)	0.11.1.20101108-1810
Comment 2 Igor Fedorenko CLA 2011-04-21 12:47:05 EDT
m2e/wtp bugs should be reported to https://issues.sonatype.org/browse/MECLIPSEWTP
Comment 3 Benjamin Reed CLA 2011-04-21 13:39:25 EDT
Ah, OK.  I originally went to https://issues.sonatype.org/browse/MNGECLIPSE and it said that it was read-only.  Didn't occur to me that sub-projects are not read-only, but the main one one is.  Kinda confusing.
Comment 4 Denis Roy CLA 2021-04-19 13:26:26 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/