NPE during log rotation?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

NPE during log rotation?

Ravi Luthra
[INFO] Scanning for projects...
[INFO] snapshot com.axolotl:axolotl_parent_pom:1.1-SNAPSHOT: checking
for updates from inhouse
ERROR: Processing failed due to a bug in the code. Please report thus
to [hidden email]
java.lang.NullPointerException
 at hudson.model.AbstractProject.getDownstreamProjects(AbstractProject.java:649)
 at hudson.model.AbstractBuild.getDownstreamBuilds(AbstractBuild.java:475)
 at hudson.model.AbstractBuild.getWhyKeepLog(AbstractBuild.java:365)
 at hudson.model.Run.isKeepLog(Run.java:277)
 at hudson.tasks.LogRotator.perform(LogRotator.java:59)
 at hudson.model.Job.logRotate(Job.java:209)
 at hudson.model.Run.run(Run.java:704)
 at hudson.maven.MavenBuild.access$600(MavenBuild.java:26)
 at hudson.maven.MavenBuild$ProxyImpl2.close(MavenBuild.java:285)
 at hudson.maven.MavenModuleSetBuild$Builder.end(MavenModuleSetBuild.java:386)
 at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:311)
 at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:192)
 at hudson.model.Run.run(Run.java:646)
 at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:172)
 at hudson.model.ResourceController.execute(ResourceController.java:70)
 at hudson.model.Executor.run(Executor.java:62)
FATAL: null
java.lang.NullPointerException
 at hudson.model.AbstractItem.getFullName(AbstractItem.java:93)
 at hudson.model.AbstractItem.toString(AbstractItem.java:214)
 at java.lang.String.valueOf(String.java:2827)
 at java.lang.StringBuilder.append(StringBuilder.java:115)
 at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:329)
 at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:192)
 at hudson.model.Run.run(Run.java:646)
 at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:172)
 at hudson.model.ResourceController.execute(ResourceController.java:70)
 at hudson.model.Executor.run(Executor.java:62)

Now just looking at that NPE takes me to another issue I've been
meaning to ask about for a while:
I no longer get downstream builds in m2 project types. I think,
without certainty, this occurred when I started using a parent pom for
my company for all of our projects.

When we look at our build results page, we also see this:
Build #91 (Dec 10, 2007 1:32:12 PM)
add description
        Changes
   1. cleaned up some code (detail)
        Test Result (no failures)
Module Builds
LibraryA Pending#91Success#92
Downstream Builds
    * Shared Library (none)
Permalinks
    * Build number

The (none) above suggests to me it is not able to find the
module/version related to this build.

Any ideas?

Ravi

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: NPE during log rotation?

Kohsuke Kawaguchi
Administrator

Does this problem happen consistently? Looking at the code, I'm having
hard time seeing how line 649 can cause NPE. The same goes to
AbstractItem.java:93

Is there any earlier error reported, like when Hudson starts up?

Ravi Luthra wrote:

> [INFO] Scanning for projects...
> [INFO] snapshot com.axolotl:axolotl_parent_pom:1.1-SNAPSHOT: checking
> for updates from inhouse
> ERROR: Processing failed due to a bug in the code. Please report thus
> to [hidden email]
> java.lang.NullPointerException
>  at hudson.model.AbstractProject.getDownstreamProjects(AbstractProject.java:649)
>  at hudson.model.AbstractBuild.getDownstreamBuilds(AbstractBuild.java:475)
>  at hudson.model.AbstractBuild.getWhyKeepLog(AbstractBuild.java:365)
>  at hudson.model.Run.isKeepLog(Run.java:277)
>  at hudson.tasks.LogRotator.perform(LogRotator.java:59)
>  at hudson.model.Job.logRotate(Job.java:209)
>  at hudson.model.Run.run(Run.java:704)
>  at hudson.maven.MavenBuild.access$600(MavenBuild.java:26)
>  at hudson.maven.MavenBuild$ProxyImpl2.close(MavenBuild.java:285)
>  at hudson.maven.MavenModuleSetBuild$Builder.end(MavenModuleSetBuild.java:386)
>  at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:311)
>  at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:192)
>  at hudson.model.Run.run(Run.java:646)
>  at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:172)
>  at hudson.model.ResourceController.execute(ResourceController.java:70)
>  at hudson.model.Executor.run(Executor.java:62)
> FATAL: null
> java.lang.NullPointerException
>  at hudson.model.AbstractItem.getFullName(AbstractItem.java:93)
>  at hudson.model.AbstractItem.toString(AbstractItem.java:214)
>  at java.lang.String.valueOf(String.java:2827)
>  at java.lang.StringBuilder.append(StringBuilder.java:115)
>  at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:329)
>  at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:192)
>  at hudson.model.Run.run(Run.java:646)
>  at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:172)
>  at hudson.model.ResourceController.execute(ResourceController.java:70)
>  at hudson.model.Executor.run(Executor.java:62)
>
> Now just looking at that NPE takes me to another issue I've been
> meaning to ask about for a while:
> I no longer get downstream builds in m2 project types. I think,
> without certainty, this occurred when I started using a parent pom for
> my company for all of our projects.
>
> When we look at our build results page, we also see this:
> Build #91 (Dec 10, 2007 1:32:12 PM)
> add description
> Changes
>    1. cleaned up some code (detail)
> Test Result (no failures)
> Module Builds
> LibraryA Pending#91Success#92
> Downstream Builds
>     * Shared Library (none)
> Permalinks
>     * Build number
>
> The (none) above suggests to me it is not able to find the
> module/version related to this build.
>
> Any ideas?
>
> Ravi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Loading...