java.lang.NullPointerException

Jenkins JIRA | Ian Mckay | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Publishing pages suddenly stopped working with the following exceptions after builds finish: {code} [confluence] Uploading 0 file(s) to Confluence... [confluence] Done [confluence] EXPERIMENTAL: performing storage format edits on Confluence 4.0 [confluence] Performing wiki edits: Replace entire page content ERROR: Publisher com.myyearbook.hudson.plugins.confluence.ConfluencePublisher aborted due to exception java.lang.NullPointerException at com.myyearbook.hudson.plugins.confluence.wiki.editors.MarkupEditor.performReplacement(MarkupEditor.java:65) at com.myyearbook.hudson.plugins.confluence.ConfluencePublisher.performEdits(ConfluencePublisher.java:426) at com.myyearbook.hudson.plugins.confluence.ConfluencePublisher.performWikiReplacements(ConfluencePublisher.java:385) at com.myyearbook.hudson.plugins.confluence.ConfluencePublisher.perform(ConfluencePublisher.java:341) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:946) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:725) at hudson.model.Run.execute(Run.java:1701) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231) {code}

    Jenkins JIRA | 3 years ago | Ian Mckay
    java.lang.NullPointerException
  2. 0

    Publishing pages suddenly stopped working with the following exceptions after builds finish: {code} [confluence] Uploading 0 file(s) to Confluence... [confluence] Done [confluence] EXPERIMENTAL: performing storage format edits on Confluence 4.0 [confluence] Performing wiki edits: Replace entire page content ERROR: Publisher com.myyearbook.hudson.plugins.confluence.ConfluencePublisher aborted due to exception java.lang.NullPointerException at com.myyearbook.hudson.plugins.confluence.wiki.editors.MarkupEditor.performReplacement(MarkupEditor.java:65) at com.myyearbook.hudson.plugins.confluence.ConfluencePublisher.performEdits(ConfluencePublisher.java:426) at com.myyearbook.hudson.plugins.confluence.ConfluencePublisher.performWikiReplacements(ConfluencePublisher.java:385) at com.myyearbook.hudson.plugins.confluence.ConfluencePublisher.perform(ConfluencePublisher.java:341) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:946) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:725) at hudson.model.Run.execute(Run.java:1701) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231) {code}

    Jenkins JIRA | 3 years ago | Ian Mckay
    java.lang.NullPointerException
  3. 0

    Jenkins 1.518 Plugin information Confluence Publisher 1.8 Objective: To publish build artifact to confluence. Note: If I untick "Attach archived artifacts to page" the build is successful. Console output {code} Started by user anonymous Building in workspace C:\Program Files (x86)\Jenkins\jobs\TestNewJob\workspace Parsing POMs [workspace] $ C:\webui-dev.x64\jdk6/bin/java -cp "C:\Program Files (x86)\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven3-agent-1.2.jar;C:\webui-dev.x64\maven3\boot\plexus-classworlds-2.4.jar" org.jvnet.hudson.maven3.agent.Maven3Main C:\webui-dev.x64\maven3 "C:\Program Files (x86)\Jenkins\war\WEB-INF\lib\remoting-2.23.jar" "C:\Program Files (x86)\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven3-interceptor-1.2.jar" 50864 <===[JENKINS REMOTING CAPACITY]===>channel started log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.converters.BooleanConverter). log4j:WARN Please initialize the log4j system properly. Executing Maven: -B -f C:\Program Files (x86)\Jenkins\jobs\TestNewJob\workspace\pom.xml install [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building MySel20Proj 1.0 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ MySel20Proj --- [debug] execute contextualize [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory C:\Program Files (x86)\Jenkins\jobs\TestNewJob\workspace\src\main\resources [INFO] No sources to compile [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ MySel20Proj --- [debug] execute contextualize [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory C:\Program Files (x86)\Jenkins\jobs\TestNewJob\workspace\src\test\resources [INFO] [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ MySel20Proj --- [INFO] No sources to compile [INFO] [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ MySel20Proj --- [INFO] [INFO] --- maven-surefire-plugin:2.10:test (default-test) @ MySel20Proj --- [INFO] No tests to run. [INFO] Surefire report directory: C:\Program Files (x86)\Jenkins\jobs\TestNewJob\workspace\target\surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [JENKINS] Recording test results [WARNING] JAR will be empty - no content was marked for inclusion! [INFO] [INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ MySel20Proj --- [INFO] [INFO] Installing C:\Program Files (x86)\Jenkins\jobs\TestNewJob\workspace\target\MySel20Proj-1.0.jar to C:\.m2\repository\MySel20Proj\MySel20Proj\1.0\MySel20Proj-1.0.jar [INFO] Installing C:\Program Files (x86)\Jenkins\jobs\TestNewJob\workspace\pom.xml to C:\.m2\repository\MySel20Proj\MySel20Proj\1.0\MySel20Proj-1.0.pom [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ MySel20Proj --- [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 11.703s [INFO] Finished at: Thu Aug 01 10:43:26 BST 2013 [INFO] Final Memory: 8M/139M [INFO] ------------------------------------------------------------------------ [JENKINS] Archiving C:\Program Files (x86)\Jenkins\jobs\TestNewJob\workspace\pom.xml to C:\Program Files (x86)\Jenkins\jobs\TestNewJob\modules\MySel20Proj$MySel20Proj\builds\2013-08-01_10-43-10\archive\MySel20Proj\MySel20Proj\1.0\MySel20Proj-1.0.pom [JENKINS] Archiving C:\Program Files (x86)\Jenkins\jobs\TestNewJob\workspace\target\MySel20Proj-1.0.jar to C:\Program Files (x86)\Jenkins\jobs\TestNewJob\modules\MySel20Proj$MySel20Proj\builds\2013-08-01_10-43-10\archive\MySel20Proj\MySel20Proj\1.0\MySel20Proj-1.0.jar Waiting for Jenkins to finish collecting data channel stopped [confluence] Uploading attachments to Confluence page: http://xxx.xxx.com/display/Space/Page Name ERROR: Publisher com.myyearbook.hudson.plugins.confluence.ConfluencePublisher aborted due to exception java.lang.NullPointerException at com.myyearbook.hudson.plugins.confluence.ConfluencePublisher.findArtifacts(ConfluencePublisher.java:445) at com.myyearbook.hudson.plugins.confluence.ConfluencePublisher.performAttachments(ConfluencePublisher.java:182) at com.myyearbook.hudson.plugins.confluence.ConfluencePublisher.perform(ConfluencePublisher.java:314) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:949) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726) at hudson.model.Run.execute(Run.java:1601) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:241) Finished: FAILURE {code}

    Jenkins JIRA | 4 years ago | Sean Moloney
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Jenkins 1.518 Plugin information Confluence Publisher 1.8 Objective: To publish build artifact to confluence. Note: If I untick "Attach archived artifacts to page" the build is successful. Console output {code} Started by user anonymous Building in workspace C:\Program Files (x86)\Jenkins\jobs\TestNewJob\workspace Parsing POMs [workspace] $ C:\webui-dev.x64\jdk6/bin/java -cp "C:\Program Files (x86)\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven3-agent-1.2.jar;C:\webui-dev.x64\maven3\boot\plexus-classworlds-2.4.jar" org.jvnet.hudson.maven3.agent.Maven3Main C:\webui-dev.x64\maven3 "C:\Program Files (x86)\Jenkins\war\WEB-INF\lib\remoting-2.23.jar" "C:\Program Files (x86)\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven3-interceptor-1.2.jar" 50864 <===[JENKINS REMOTING CAPACITY]===>channel started log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.converters.BooleanConverter). log4j:WARN Please initialize the log4j system properly. Executing Maven: -B -f C:\Program Files (x86)\Jenkins\jobs\TestNewJob\workspace\pom.xml install [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building MySel20Proj 1.0 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ MySel20Proj --- [debug] execute contextualize [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory C:\Program Files (x86)\Jenkins\jobs\TestNewJob\workspace\src\main\resources [INFO] No sources to compile [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ MySel20Proj --- [debug] execute contextualize [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory C:\Program Files (x86)\Jenkins\jobs\TestNewJob\workspace\src\test\resources [INFO] [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ MySel20Proj --- [INFO] No sources to compile [INFO] [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ MySel20Proj --- [INFO] [INFO] --- maven-surefire-plugin:2.10:test (default-test) @ MySel20Proj --- [INFO] No tests to run. [INFO] Surefire report directory: C:\Program Files (x86)\Jenkins\jobs\TestNewJob\workspace\target\surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [JENKINS] Recording test results [WARNING] JAR will be empty - no content was marked for inclusion! [INFO] [INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ MySel20Proj --- [INFO] [INFO] Installing C:\Program Files (x86)\Jenkins\jobs\TestNewJob\workspace\target\MySel20Proj-1.0.jar to C:\.m2\repository\MySel20Proj\MySel20Proj\1.0\MySel20Proj-1.0.jar [INFO] Installing C:\Program Files (x86)\Jenkins\jobs\TestNewJob\workspace\pom.xml to C:\.m2\repository\MySel20Proj\MySel20Proj\1.0\MySel20Proj-1.0.pom [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ MySel20Proj --- [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 11.703s [INFO] Finished at: Thu Aug 01 10:43:26 BST 2013 [INFO] Final Memory: 8M/139M [INFO] ------------------------------------------------------------------------ [JENKINS] Archiving C:\Program Files (x86)\Jenkins\jobs\TestNewJob\workspace\pom.xml to C:\Program Files (x86)\Jenkins\jobs\TestNewJob\modules\MySel20Proj$MySel20Proj\builds\2013-08-01_10-43-10\archive\MySel20Proj\MySel20Proj\1.0\MySel20Proj-1.0.pom [JENKINS] Archiving C:\Program Files (x86)\Jenkins\jobs\TestNewJob\workspace\target\MySel20Proj-1.0.jar to C:\Program Files (x86)\Jenkins\jobs\TestNewJob\modules\MySel20Proj$MySel20Proj\builds\2013-08-01_10-43-10\archive\MySel20Proj\MySel20Proj\1.0\MySel20Proj-1.0.jar Waiting for Jenkins to finish collecting data channel stopped [confluence] Uploading attachments to Confluence page: http://xxx.xxx.com/display/Space/Page Name ERROR: Publisher com.myyearbook.hudson.plugins.confluence.ConfluencePublisher aborted due to exception java.lang.NullPointerException at com.myyearbook.hudson.plugins.confluence.ConfluencePublisher.findArtifacts(ConfluencePublisher.java:445) at com.myyearbook.hudson.plugins.confluence.ConfluencePublisher.performAttachments(ConfluencePublisher.java:182) at com.myyearbook.hudson.plugins.confluence.ConfluencePublisher.perform(ConfluencePublisher.java:314) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:949) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726) at hudson.model.Run.execute(Run.java:1601) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:241) Finished: FAILURE {code}

    Jenkins JIRA | 4 years ago | Sean Moloney
    java.lang.NullPointerException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.myyearbook.hudson.plugins.confluence.wiki.editors.MarkupEditor.performReplacement()
    2. com.myyearbook.hudson
      ConfluencePublisher.perform
      1. com.myyearbook.hudson.plugins.confluence.wiki.editors.MarkupEditor.performReplacement(MarkupEditor.java:65)
      2. com.myyearbook.hudson.plugins.confluence.ConfluencePublisher.performEdits(ConfluencePublisher.java:426)
      3. com.myyearbook.hudson.plugins.confluence.ConfluencePublisher.performWikiReplacements(ConfluencePublisher.java:385)
      4. com.myyearbook.hudson.plugins.confluence.ConfluencePublisher.perform(ConfluencePublisher.java:341)
      4 frames
    3. Hudson
      AbstractBuild$AbstractBuildExecution.performAllBuildSteps
      1. hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776)
      3 frames
    4. Hudson Maven Embedder
      MavenModuleSetBuild$MavenModuleSetBuildExecution.post2
      1. hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:946)
      1 frame
    5. Hudson
      Run.execute
      1. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:725)
      2. hudson.model.Run.execute(Run.java:1701)
      2 frames
    6. Hudson Maven Embedder
      MavenModuleSetBuild.run
      1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
      1 frame
    7. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:88)
      2. hudson.model.Executor.run(Executor.java:231)
      2 frames