java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • [WARNINGS] Successfully parsed file <log file name A> of module ABC with 0 warnings. [WARNINGS] Successfully parsed file <log file name B> of module ABC with 582 warnings. [WARNINGS] Successfully parsed file <log file name C> of module ABC with 45 warnings. ERROR: Publisher hudson.plugins.warnings.WarningsPublisher aborted due to exception java.lang.NullPointerException: Name is null at java.lang.Enum.valueOf(Enum.java:195) at hudson.plugins.analysis.util.model.Priority.valueOf(Priority.java:18) at hudson.plugins.analysis.core.HealthAwarePublisher.getMinimumPriority(HealthAwarePublisher.java:522) at hudson.plugins.analysis.core.AbstractHealthDescriptor.<init>(AbstractHealthDescriptor.java:36) at hudson.plugins.warnings.WarningsHealthDescriptor.<init>(WarningsHealthDescriptor.java:25) at hudson.plugins.warnings.WarningsResultAction.<init>(WarningsResultAction.java:31) at hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:224) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:280) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:558) at hudson.model.Build$RunnerImpl.post2(Build.java:158) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528) at hudson.model.Run.run(Run.java:1296) at hudson.matrix.MatrixRun.run(MatrixRun.java:137) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:129) Finished: FAILURE
    via by jasperlj,
  • 5:40:04 [INFO] Generating "Dependency Convergence" report. 15:40:06 [INFO] ------------------------------------------------------------------------ 15:40:06 [ERROR] FATAL ERROR 15:40:06 [INFO] ------------------------------------------------------------------------ 15:40:06 [INFO] Name is null 15:40:06 [INFO] ------------------------------------------------------------------------ 15:40:06 [INFO] Trace 15:40:06 java.lang.NullPointerException: Name is null 15:40:06 at java.lang.Enum.valueOf(Enum.java:195) 15:40:06 at hudson.plugins.analysis.util.model.Priority.valueOf(Priority.java:18) 15:40:06 at hudson.plugins.analysis.core.HealthAwareMavenReporter.getMinimumPriority(HealthAwareMavenReporter.java:465) 15:40:06 at hudson.plugins.analysis.core.AbstractHealthDescriptor.<init>(AbstractHealthDescriptor.java:36) 15:40:06 at hudson.plugins.pmd.PmdHealthDescriptor.<init>(PmdHealthDescriptor.java:25) 15:40:06 at hudson.plugins.pmd.PmdResultAction.<init>(PmdResultAction.java:31) 15:40:06 at hudson.plugins.pmd.MavenPmdResultAction.<init>(MavenPmdResultAction.java:57) 15:40:06 at hudson.plugins.pmd.PmdReporter.persistResult(PmdReporter.java:94) 15:40:06 at hudson.plugins.analysis.core.HealthAwareMavenReporter$1.call(HealthAwareMavenReporter.java:212) 15:40:06 at hudson.plugins.analysis.core.HealthAwareMavenReporter$1.call(HealthAwareMavenReporter.java:210) 15:40:06 at hudson.maven.MavenBuild$ProxyImpl.execute(MavenBuild.java:341) 15:40:06 at sun.reflect.GeneratedMethodAccessor243.invoke(Unknown Source) 15:40:06 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 15:40:06 at java.lang.reflect.Method.invoke(Method.java:597) 15:40:06 at hudson.model.Executor$1.call(Executor.java:402) 15:40:06 at hudson.util.InterceptingProxy$1.invoke(InterceptingProxy.java:23) 15:40:06 at $Proxy31.execute(Unknown Source) 15:40:06 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 15:40:06 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 15:40:06 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 15:40:06 at java.lang.reflect.Method.invoke(Method.java:597) 15:40:06 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274) 15:40:06 at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255) 15:40:06 at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215) 15:40:06 at hudson.remoting.UserRequest.perform(UserRequest.java:114) 15:40:06 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 15:40:06 at hudson.remoting.Request$2.run(Request.java:270) 15:40:06 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) 15:40:06 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 15:40:06 at java.util.concurrent.FutureTask.run(FutureTask.java:138) 15:40:06 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 15:40:06 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 15:40:06 at java.lang.Thread.run(Thread.java:619) 15:40:06 [INFO] ------------------------------------------------------------------------ 15:40:06 [INFO] Total time: 1 minute 5 seconds 15:40:06 [INFO] Finished at: Mon Sep 27 15:40:06 CEST 2010 15:40:07 [INFO] Final Memory: 108M/258M 15:40:07 [INFO] ------------------------------------------------------------------------
    via by lucadistefano,
  • Builds are finishing with a failure result, and the following exception is being shown: [WARNINGS] Parsing warnings in console log... ERROR: Publisher hudson.plugins.warnings.WarningsPublisher aborted due to exception java.lang.NullPointerException: Name is null at java.lang.Enum.valueOf(Enum.java:195) at hudson.plugins.analysis.util.model.Priority.valueOf(Priority.java:18) at hudson.plugins.analysis.core.HealthAwarePublisher.getMinimumPriority(HealthAwarePublisher.java:522) at hudson.plugins.analysis.core.AbstractHealthDescriptor.<init>(AbstractHealthDescriptor.java:36) at hudson.plugins.warnings.WarningsHealthDescriptor.<init>(WarningsHealthDescriptor.java:25) at hudson.plugins.warnings.WarningsResultAction.<init>(WarningsResultAction.java:31) at hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:202) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:280) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:603) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:582) at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:651) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:529) at hudson.model.Run.run(Run.java:1349) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:349) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:139) If I disable the warnings publisher from the job configuration, the build ends successfully. Here is the config section of the warnings plugin of the job: <hudson.plugins.warnings.WarningsPublisher> <pluginName>[WARNINGS] </pluginName> <defaultEncoding></defaultEncoding> <canRunOnFailed>false</canRunOnFailed> <useDeltaValues>false</useDeltaValues> <thresholds> <unstableTotalHigh></unstableTotalHigh> <unstableTotalNormal></unstableTotalNormal> <unstableTotalLow></unstableTotalLow> <unstableNewHigh></unstableNewHigh> <unstableNewNormal></unstableNewNormal> <unstableNewLow></unstableNewLow> <failedTotalHigh></failedTotalHigh> <failedTotalNormal></failedTotalNormal> <failedTotalLow></failedTotalLow> <failedNewHigh></failedNewHigh> <failedNewNormal></failedNewNormal> <failedNewLow></failedNewLow> </thresholds> <pattern></pattern> <parserNames> <string>Java Compiler</string> </parserNames> <ignoreConsole>false</ignoreConsole> </hudson.plugins.warnings.WarningsPublisher>
    via by ingmartinlopez,
  • Again in latest version there is a bug during publishing with analysis-core plugin. Cause: In section "Post-build Actions" of job configuration (type: maven), when "Publish combined analysis results" checked, the value of "Health priorities" (e.g. All priorities) is not remembered after save action (probably only in a form, no in stored a job configuration - there is ok). To reproduce (changes in job configuration): - check "Post-build Actions" -> "Publish combined analysis results" - use advanced settings and select "Health priorities" -> "All priorities" - use save action - build (should be BUILD SUCCESSFUL, config_correct.xml) - edit configuration again, there should be any value selected in path: "Post-build Actions" -> "Publish combined analysis results" -> "Health priorities" (bug_analysis_core_nullpointerexception.jpg) - use save action - build (should be FAILURE, config_wrong.xml) ERROR: Publisher hudson.plugins.analysis.collector.AnalysisPublisher aborted due to exception java.lang.NullPointerException: Name is null at java.lang.Enum.valueOf(Enum.java:195) at hudson.plugins.analysis.util.model.Priority.valueOf(Priority.java:18) at hudson.plugins.analysis.core.HealthAwarePublisher.getMinimumPriority(HealthAwarePublisher.java:618) at hudson.plugins.analysis.core.AbstractHealthDescriptor.<init>(AbstractHealthDescriptor.java:36) at hudson.plugins.analysis.collector.AnalysisHealthDescriptor.<init>(AnalysisHealthDescriptor.java:25) at hudson.plugins.analysis.collector.AnalysisResultAction.<init>(AnalysisResultAction.java:31) at hudson.plugins.analysis.collector.AnalysisPublisher.perform(AnalysisPublisher.java:256) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:338) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:692) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:667) at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:1014) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:614) at hudson.model.Run.run(Run.java:1429) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238)
    via by Marcin Drozdowski,
  • Hello All, While building my nightly build i am getting the following err : BUILD SUCCESSFUL Total time: 11 minutes 24 seconds [TASKS] Scanning workspace files for tasks... ERROR: Publisher hudson.plugins.tasks.TasksPublisher aborted due to exception java.lang.NullPointerException: Name is null at java.lang.Enum.valueOf(Enum.java:195) at hudson.plugins.analysis.util.model.Priority.valueOf(Priority.java:18) at hudson.plugins.analysis.core.HealthAwarePublisher.getMinimumPriority(HealthAwarePublisher.java:522) at hudson.plugins.analysis.core.AbstractHealthDescriptor.<init>(AbstractHealthDescriptor.java:36) at hudson.plugins.tasks.TasksHealthDescriptor.<init>(TasksHealthDescriptor.java:26) at hudson.plugins.tasks.TasksResultAction.<init>(TasksResultAction.java:31) at hudson.plugins.tasks.TasksPublisher.perform(TasksPublisher.java:175) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:280) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:558) at hudson.model.Build$RunnerImpl.post2(Build.java:157) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528) at hudson.model.Run.run(Run.java:1303) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:137) Archiving artifacts Recording fingerprints I have tried a lot but could not find the reason of this failure, i upgraded hudson to new version 2 days ago. Is this err is coming because of this? I have also attached the Task Scanner Plugin conf. of my nightly build. I am also using Sonar plugin. Please give me any idea why it is coming. is it a bug? Thanks, Khush.
    via by chahalkhushwinder,
  • NPe logged by jivesoftware.smack in console
    via by Unknown author,
    • java.lang.NullPointerException: Name is null at java.lang.Enum.valueOf(Enum.java:195) at com.google.appengine.api.datastore.dev.CompositeIndexManager$IndexSource.valueOf(CompositeIndexManager.java:64)

    Users with the same issue

    raytestraytest
    1 times, last one,
    Andreas HäberAndreas Häber
    1 times, last one,
    jpveejpvee
    1 times, last one,
    linxiaolonglinxiaolong
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    3 more bugmates