NullPointerException at hudson.plugins.analysis.core.AbstractResultAction.isSuccessful

59 views
Skip to first unread message

Steve Holmes

unread,
Jan 7, 2015, 7:23:43 AM1/7/15
to jenkins...@googlegroups.com
I've upgraded Jenkins to the 1.580.2 LTS and also upgraded my plugins to the latest versions.

Any build which publishes static analysis results now fails similar to the following:

[CHECKSTYLE] Successfully parsed file /appdata/hudson/jobs/B-WD-2014-12-22-Release15_02/workspace/jdw-webDavInterface/reports/checkstyle/checkstyle-result.xml with 2234 unique warnings and 0 duplicates.
ERROR: Publisher hudson.plugins.checkstyle.CheckStylePublisher aborted due to exception
java.lang.NullPointerException
	at hudson.plugins.analysis.core.AbstractResultAction.isSuccessful(AbstractResultAction.java:226)
	at hudson.plugins.analysis.core.BuildHistory.isSuccessfulAction(BuildHistory.java:143)
	at hudson.plugins.analysis.core.BuildHistory.getAction(BuildHistory.java:135)
	at hudson.plugins.analysis.core.BuildHistory.getReferenceAction(BuildHistory.java:119)
	at hudson.plugins.analysis.core.BuildHistory.getReferenceAnnotations(BuildHistory.java:102)
	at hudson.plugins.analysis.core.BuildResult.initialize(BuildResult.java:272)
	at hudson.plugins.analysis.core.BuildResult.<init>(BuildResult.java:216)
	at hudson.plugins.checkstyle.CheckStyleResult.<init>(CheckStyleResult.java:67)
	at hudson.plugins.checkstyle.CheckStyleResult.<init>(CheckStyleResult.java:61)
	at hudson.plugins.checkstyle.CheckStyleResult.<init>(CheckStyleResult.java:39)
	at hudson.plugins.checkstyle.CheckStylePublisher.perform(CheckStylePublisher.java:148)
	at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:152)
	at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:347)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
	at hudson.model.Build$BuildExecution.post2(Build.java:183)
	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
	at hudson.model.Run.execute(Run.java:1770)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:89)
	at hudson.model.Executor.run(Executor.java:240)
[FINDBUGS] Skipping publisher since build result is FAILURE

I have the latest anaylsis-core (1.67) and I manually installed my plugins through the UI, so I know that there are no missing dependencies.

I've tried downgrading Jenkins to the previous versions and various combinations of versions of analysis-core and checkstyle, tasks plugins, but nothing works any more.

Any ideas please?

Ulli Hafner

unread,
Jan 7, 2015, 2:01:01 PM1/7/15
to jenkins...@googlegroups.com
Can you please file a bug report?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e4d7ace0-e905-426f-9d99-8dce5e6842ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

signature.asc

Ulli Hafner

unread,
Jan 7, 2015, 2:09:13 PM1/7/15
to jenkins...@googlegroups.com
And please check on the console or in http://localhost:8080/manage if there are any warnings about unresolved elements in the serialization of your jobs.

The referenced element should never be null. (Do you see which is your reference build? Then please attach the build.xml file of the reference build)
signature.asc
Reply all
Reply to author
Forward
0 new messages