MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
wskent
Post subject: NullPointerException on Updating Maven Configuration  PostPosted: Sep 29, 2010 - 05:40 PM
Registered Member
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?
 
 View user's profile Send private message  
Reply with quote Back to top
support-joy
Post subject: RE: NullPointerException on Updating Maven Configuration  PostPosted: Oct 01, 2010 - 04:59 PM
Registered Member
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
 
 View user's profile Send private message  
Reply with quote Back to top
gb2010
Post subject: NullPointerException on Updating Maven Configuration  PostPosted: Oct 26, 2011 - 08:03 PM
Registered Member
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.
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: 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
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits