| Author |
Message |
|
|
Post subject: NullPointerException on Updating Maven Configuration
Posted: Sep 29, 2010 - 05:40 PM
|
|
Registered Member


Joined: Oct 27, 2004
Posts: 19
|
|
I have been seeing the following error when I attempt “Maven4MyEclipse” > “Update Project Dependencies”
--------------------------------------------------------------------------------
Updating Maven Configuration has encountered a problem
An internal error occurred during: “Updating Maven Configuration”,
An internal error occurred during: Updating Maven Configuration”. java.lang.NullPointerException
--------------------------------------------------------------------------------
Any ideas what the problem might be? |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: NullPointerException on Updating Maven Configuration
Posted: Oct 01, 2010 - 04:59 PM
|
|
Registered Member


Joined: Feb 03, 2009
Posts: 3442
|
|
Sorry to hear you are running into this issue. Can you answer below queries ?
1. Can you copy and paste your installation details? Open MyEclipse IDE, from menu options click on MyEclipse > Installation Summary > Installation Details.
2. Can you open .log file located at [your workspace dir]/.metadata/.log and look for relevant issues logged.
3. Do you see anything in the problems tab? |
_________________ Joy
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject: NullPointerException on Updating Maven Configuration
Posted: Oct 26, 2011 - 08:03 PM
|
|
Registered Member

Joined: Oct 26, 2011
Posts: 1
|
|
I created a webapp project with Maven using the archetype:
| Code: | | mvn archetype:generate -DgroupId=com.mycompany.myapp -DartifactId=myapp -DarchetypeArtifactId=maven-archetype-webapp |
I then imported the application in MyEclipse 9.1 and encountered this error when trying to update the project configuration. The stack trace in MyEclipse (myWorkspace/.metadata/.log) was as follow:
| Code: | !ENTRY org.eclipse.core.jobs 4 2 2011-10-26 11:16:00.199
!MESSAGE An internal error occurred during: "Updating Maven Configuration".
!STACK 0
java.lang.NullPointerException
at com.genuitec.eclipse.maven.project.MyEclipseProjectSupport.findWebRoot(MyEclipseProjectSupport.java:204)
at com.genuitec.eclipse.maven.project.MyEclipseProjectSupport.configureWebProject(MyEclipseProjectSupport.java:71)
at com.genuitec.eclipse.maven.project.MyEclipseProjectSupport.configure(MyEclipseProjectSupport.java:57)
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:332)
at org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:318)
at org.maven.ide.eclipse.actions.UpdateSourcesAction$1.runInWorkspace(UpdateSourcesAction.java:93)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
|
I solved the project by adding "Web Project Capabilities" to the project in MyEclipse, pointing to the webapp directory created by Maven during the project creation and answering "No" to change the target directory for the classes. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Oct 27, 2011 - 03:12 AM
|
|

Joined: Nov 11, 2010
Posts: 2150
|
|
gb2010 ,
Glad that it is working.
Do let us know if you have any other issues. |
_________________ Swapna
MyEclipse Support
|
| |
|
|
|
 |
|
|
| |