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.

  • [...] Deploying the main artifact eu.educator.ws-3.0.0-SNAPSHOT.jar [INFO ] Retrieving previous build number from [INFO ] Retrieving previous metadata from [INFO ] Uploading repository metadata for: 'artifact eu.educator:eu.educator.ws' [INFO ] Retrieving previous metadata from [INFO ] Uploading repository metadata for: 'snapshot eu.educator:eu.educator.ws:3.0.0-SNAPSHOT' [INFO ] Uploading project information for eu.educator.ws 3.0.0-SNAPSHOT [WARNINGS] Parsing warnings in console log... [WARNINGS] Found 0 annotations (0 new, 0 high, 0 normal, 0 low) [WARNINGS] Not changing build status, since no threshold has been exceeded FATAL: null java.lang.NullPointerException at java.lang.String.replace(String.java:2208) at hudson.plugins.descriptionsetter.DescriptionSetterPublisher.getExpandedDescription(DescriptionSetterPublisher.java:157) at hudson.plugins.descriptionsetter.DescriptionSetterPublisher.perform(DescriptionSetterPublisher.java:80) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:577) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:563) at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:594) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:535) at hudson.model.Run.run(Run.java:1199) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:304) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:123) Used expression: (Total time: \d+ minutes \d+ seconds)|(Build timed out. Aborting) Text which should be matched: [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 11 minutes 53 seconds [INFO] Finished at: Tue Dec 01 09:21:04 CET 2009 [INFO] Final Memory: 272M/508M [INFO] ------------------------------------------------------------------------
    via by Cees Bos,
  • [...] Deploying the main artifact eu.educator.ws-3.0.0-SNAPSHOT.jar [INFO ] Retrieving previous build number from [INFO ] Retrieving previous metadata from [INFO ] Uploading repository metadata for: 'artifact eu.educator:eu.educator.ws' [INFO ] Retrieving previous metadata from [INFO ] Uploading repository metadata for: 'snapshot eu.educator:eu.educator.ws:3.0.0-SNAPSHOT' [INFO ] Uploading project information for eu.educator.ws 3.0.0-SNAPSHOT [WARNINGS] Parsing warnings in console log... [WARNINGS] Found 0 annotations (0 new, 0 high, 0 normal, 0 low) [WARNINGS] Not changing build status, since no threshold has been exceeded FATAL: null java.lang.NullPointerException at java.lang.String.replace(String.java:2208) at hudson.plugins.descriptionsetter.DescriptionSetterPublisher.getExpandedDescription(DescriptionSetterPublisher.java:157) at hudson.plugins.descriptionsetter.DescriptionSetterPublisher.perform(DescriptionSetterPublisher.java:80) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:577) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:563) at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:594) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:535) at hudson.model.Run.run(Run.java:1199) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:304) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:123) Used expression: (Total time: \d+ minutes \d+ seconds)|(Build timed out. Aborting) Text which should be matched: [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 11 minutes 53 seconds [INFO] Finished at: Tue Dec 01 09:21:04 CET 2009 [INFO] Final Memory: 272M/508M [INFO] ------------------------------------------------------------------------
    via by Cees Bos,
  • If my regex is: ^URL: (\S)+( .*)?$ And my replacement text is: <a href="\1">My URL\2</a> It is possible that the regex can succeed and the matcher.group(2) will be null. If that happens the description setter fails like this: ERROR: Publisher hudson.plugins.descriptionsetter.DescriptionSetterPublisher aborted due to exception java.lang.NullPointerException at java.lang.String.replace(String.java:2208) at hudson.plugins.descriptionsetter.DescriptionSetterPublisher.getExpandedDescription(DescriptionSetterPublisher.java:158) at hudson.plugins.descriptionsetter.DescriptionSetterPublisher.perform(DescriptionSetterPublisher.java:80) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:644) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:623) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:601) at hudson.model.Build$RunnerImpl.post2(Build.java:159) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:570) at hudson.model.Run.run(Run.java:1386) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) This can probably be fixed by changing: result = result.replace("\\" + i, matcher.group(i)) to result = result.replace("\\" + i, matcher.group(i) == null ? '' : matcher.group(i)) But I haven't actually checked it.
    via by pgweiss,
  • If my regex is: ^URL: (\S)+( .*)?$ And my replacement text is: <a href="\1">My URL\2</a> It is possible that the regex can succeed and the matcher.group(2) will be null. If that happens the description setter fails like this: ERROR: Publisher hudson.plugins.descriptionsetter.DescriptionSetterPublisher aborted due to exception java.lang.NullPointerException at java.lang.String.replace(String.java:2208) at hudson.plugins.descriptionsetter.DescriptionSetterPublisher.getExpandedDescription(DescriptionSetterPublisher.java:158) at hudson.plugins.descriptionsetter.DescriptionSetterPublisher.perform(DescriptionSetterPublisher.java:80) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:644) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:623) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:601) at hudson.model.Build$RunnerImpl.post2(Build.java:159) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:570) at hudson.model.Run.run(Run.java:1386) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) This can probably be fixed by changing: result = result.replace("\\" + i, matcher.group(i)) to result = result.replace("\\" + i, matcher.group(i) == null ? '' : matcher.group(i)) But I haven't actually checked it.
    via by pgweiss,
  • MCore / Factions Progressbar bug
    via GitHub by Pinkii-
    ,
  • Player City NPE
    via GitHub by WizardCM
    ,
  • Error /f show
    via GitHub by LooToS
    ,
  • Server crash upon death
    via GitHub by Exorian
    ,
    • java.lang.NullPointerException at java.lang.String.replace(String.java:2208) at hudson.plugins.descriptionsetter.DescriptionSetterPublisher.getExpandedDescription(DescriptionSetterPublisher.java:157) at hudson.plugins.descriptionsetter.DescriptionSetterPublisher.perform(DescriptionSetterPublisher.java:80) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:577) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:563) at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:594) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:535) at hudson.model.Run.run(Run.java:1199) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:304) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:123)

    Users with the same issue

    Alireza Mohamadi
    1 times, last one,
    bpbhat77
    6 times, last one,
    abrazeneb
    3 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    2 more bugmates