java.lang.NullPointerException

Spring JIRA | Marek Defeciński | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    We have spring roo based project. When I want to update maven dependencies for this project I get An internal error occurred during: "Updating Maven Configuration". java.lang.NullPointerException at com.springsource.sts.roo.ui.internal.maven.RooProjectConfigurator.doConfigure(RooProjectConfigurator.java:56) at com.springsource.sts.roo.ui.internal.maven.RooProjectConfigurator.doConfigure(RooProjectConfigurator.java:56) at com.springsource.sts.maven.AbstractSpringProjectConfigurator.configure(AbstractSpringProjectConfigurator.java:36) at org.eclipse.m2e.core.project.configurator.AbstractLifecycleMapping.configure(AbstractLifecycleMapping.java:72) at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:302) at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:277) at org.eclipse.m2e.core.ui.internal.UpdateConfigurationJob.runInWorkspace(UpdateConfigurationJob.java:87) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) I had looked with java decompiler (cannot find source code for RooProjectConfigurator - so not sure if it pertains to spring ide) into the file com.springsource.sts.roo.ui_2.9.1.201203221000-RELEASE.jar and found IMavenProjectFacade facade = this.projectManager.getMavenProject(parent.getGroupId(), parent.getArtifactId(), parent.getVersion()); doConfigure(facade.getMavenProject(), facade.getProject(), request, monitor); I guess facade is a null. I thought it might have something to do with parent project not being opened, but if this project is open I get also NPE. This is as well described in SO: http://stackoverflow.com/questions/10098440/spring-roo-update-maven-configuration-error

    Spring JIRA | 5 years ago | Marek Defeciński
    java.lang.NullPointerException
  2. 0

    We have spring roo based project. When I want to update maven dependencies for this project I get An internal error occurred during: "Updating Maven Configuration". java.lang.NullPointerException at com.springsource.sts.roo.ui.internal.maven.RooProjectConfigurator.doConfigure(RooProjectConfigurator.java:56) at com.springsource.sts.roo.ui.internal.maven.RooProjectConfigurator.doConfigure(RooProjectConfigurator.java:56) at com.springsource.sts.maven.AbstractSpringProjectConfigurator.configure(AbstractSpringProjectConfigurator.java:36) at org.eclipse.m2e.core.project.configurator.AbstractLifecycleMapping.configure(AbstractLifecycleMapping.java:72) at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:302) at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:277) at org.eclipse.m2e.core.ui.internal.UpdateConfigurationJob.runInWorkspace(UpdateConfigurationJob.java:87) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) I had looked with java decompiler (cannot find source code for RooProjectConfigurator - so not sure if it pertains to spring ide) into the file com.springsource.sts.roo.ui_2.9.1.201203221000-RELEASE.jar and found IMavenProjectFacade facade = this.projectManager.getMavenProject(parent.getGroupId(), parent.getArtifactId(), parent.getVersion()); doConfigure(facade.getMavenProject(), facade.getProject(), request, monitor); I guess facade is a null. I thought it might have something to do with parent project not being opened, but if this project is open I get also NPE. This is as well described in SO: http://stackoverflow.com/questions/10098440/spring-roo-update-maven-configuration-error

    Spring JIRA | 5 years ago | Marek Defeciński
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.springsource.sts.roo.ui.internal.maven.RooProjectConfigurator.doConfigure()
    2. com.springsource.sts
      AbstractSpringProjectConfigurator.configure
      1. com.springsource.sts.roo.ui.internal.maven.RooProjectConfigurator.doConfigure(RooProjectConfigurator.java:56)
      2. com.springsource.sts.roo.ui.internal.maven.RooProjectConfigurator.doConfigure(RooProjectConfigurator.java:56)
      3. com.springsource.sts.maven.AbstractSpringProjectConfigurator.configure(AbstractSpringProjectConfigurator.java:36)
      3 frames
    3. org.eclipse.m2e.core
      ProjectConfigurationManager.updateProjectConfiguration
      1. org.eclipse.m2e.core.project.configurator.AbstractLifecycleMapping.configure(AbstractLifecycleMapping.java:72)
      2. org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:302)
      3. org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:277)
      3 frames
    4. org.eclipse.m2e
      UpdateConfigurationJob.runInWorkspace
      1. org.eclipse.m2e.core.ui.internal.UpdateConfigurationJob.runInWorkspace(UpdateConfigurationJob.java:87)
      1 frame
    5. Core Resource Management
      InternalWorkspaceJob.run
      1. org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
      1 frame
    6. Eclipse Jobs
      Worker.run
      1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      1 frame