Continuum

NPE when building Shell or Ant project

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.3.2 (Beta)
  • Fix Version/s: 1.3.2 (Beta)
  • Component/s: None
  • Labels:
    None
  • Environment:
    Continuum Version: 1.3.2-SNAPSHOT
    Build Number: 752591
  • Complexity:
    Intermediate
  • Number of attachments :
    1

Description

After adding a shell project (which has problems: CONTINUUM-2083, CONTINUUM-1859) I get a NPE trying to build it:

Error Occurred
java.lang.NullPointerException
Show/hide Stack Trace
java.lang.NullPointerException
at org.apache.maven.continuum.DefaultContinuum.buildProject(DefaultContinuum.java:1045)
at org.apache.maven.continuum.DefaultContinuum.buildProject(DefaultContinuum.java:1002)
at org.apache.maven.continuum.web.action.BuildProjectAction.execute(BuildProjectAction.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...

DefaultContinuum 1045-1046 is:
prepareBuildProjects( projectsBuildDefinitionsMap, trigger, scmRoot.getScmRootAddress(),
scmRoot.getProjectGroup().getId(), scmRoot.getId() );

There is no SCM Root URL shown on the Project Group Summary tab.

The same thing happens when trying to build an Ant project, though the NPE is on line 1076 there.

Activity

Hide
Wendy Smoak added a comment -

There's another NPE when trying to delete the project group, but I assume it will clear up when the SCM Root URL is added so I'll hold off opening another issue.

Error Occurred
java.lang.NullPointerException
Show/hide Stack Trace
java.lang.NullPointerException
at org.apache.maven.continuum.DefaultContinuum.removeProjectScmRoot(DefaultContinuum.java:3237)
at org.apache.maven.continuum.DefaultContinuum.removeProject(DefaultContinuum.java:692)
at org.apache.maven.continuum.DefaultContinuum.removeProjectGroup(DefaultContinuum.java:422)
at org.apache.maven.continuum.web.action.ProjectGroupAction.remove(ProjectGroupAction.java:302)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

Show
Wendy Smoak added a comment - There's another NPE when trying to delete the project group, but I assume it will clear up when the SCM Root URL is added so I'll hold off opening another issue. Error Occurred java.lang.NullPointerException Show/hide Stack Trace java.lang.NullPointerException at org.apache.maven.continuum.DefaultContinuum.removeProjectScmRoot(DefaultContinuum.java:3237) at org.apache.maven.continuum.DefaultContinuum.removeProject(DefaultContinuum.java:692) at org.apache.maven.continuum.DefaultContinuum.removeProjectGroup(DefaultContinuum.java:422) at org.apache.maven.continuum.web.action.ProjectGroupAction.remove(ProjectGroupAction.java:302) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Hide
Jose Morales Martinez added a comment -

This patch creates the scmRoot when you add a console or ant project. I tested the patch with the scm [1].

[1]scm:svn:http://svn.apache.org/repos/asf/ant/sandbox/parallelexecutor/

Show
Jose Morales Martinez added a comment - This patch creates the scmRoot when you add a console or ant project. I tested the patch with the scm [1]. [1]scm:svn:http://svn.apache.org/repos/asf/ant/sandbox/parallelexecutor/
Hide
Maria Catherine Tan added a comment -

Fixed in revision 756489. Thanks!

Show
Maria Catherine Tan added a comment - Fixed in revision 756489. Thanks!

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: