Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-16723

NPE when performing integration.

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I got the following error after it was working, without changes, on the previous job. I believe I re-ran the job and this time there were no changes on the branch. Not sure if this has something to do with it.

      ERROR: Publisher jenkins.plugins.svnmerge.IntegrationPublisher aborted due to exception
      java.lang.NullPointerException
      at org.tmatesoft.svn.core.SVNException.<init>(SVNException.java:50)
      at org.tmatesoft.svn.core.SVNException.<init>(SVNException.java:37)
      at jenkins.plugins.svnmerge.FeatureBranchProperty$2.invoke(FeatureBranchProperty.java:273)
      at jenkins.plugins.svnmerge.FeatureBranchProperty$2.invoke(FeatureBranchProperty.java:247)
      at hudson.FilePath.act(FilePath.java:865)
      at hudson.FilePath.act(FilePath.java:838)
      at jenkins.plugins.svnmerge.FeatureBranchProperty.integrate(FeatureBranchProperty.java:247)
      at jenkins.plugins.svnmerge.IntegrateAction.perform(IntegrateAction.java:141)
      at jenkins.plugins.svnmerge.IntegrateAction.perform(IntegrateAction.java:130)
      at jenkins.plugins.svnmerge.IntegrationPublisher.perform(IntegrationPublisher.java:47)
      at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:810)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:785)
      at hudson.model.Build$BuildExecution.post2(Build.java:183)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:732)
      at hudson.model.Run.execute(Run.java:1582)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:236)

        Attachments

          Activity

          Hide
          joanardiaca Joan Ardiaca added a comment -

          I'm getting the same error with version 1.480.2. It doesn't matter if there were any changes or not in the repo, the same error comes always, almost: strangely the build succeeded once without this error.

          Show
          joanardiaca Joan Ardiaca added a comment - I'm getting the same error with version 1.480.2. It doesn't matter if there were any changes or not in the repo, the same error comes always, almost: strangely the build succeeded once without this error.
          Hide
          javydreamercsw javydreamercsw added a comment -

          I'm getting the same thing. I made it work but you need to go in and manually remove the Merge info on the branch for it to work.

          Show
          javydreamercsw javydreamercsw added a comment - I'm getting the same thing. I made it work but you need to go in and manually remove the Merge info on the branch for it to work.
          Hide
          cbhagat chirag Patel added a comment -

          I try to remove merge info manually still it is not working i am getting same error
          ERROR: Publisher jenkins.plugins.svnmerge.IntegrationPublisher aborted due to exception
          java.lang.NullPointerException
          at org.tmatesoft.svn.core.SVNException.<init>(SVNException.java:50)
          at org.tmatesoft.svn.core.SVNException.<init>(SVNException.java:37)
          at jenkins.plugins.svnmerge.FeatureBranchProperty$2.invoke(FeatureBranchProperty.java:273)
          at jenkins.plugins.svnmerge.FeatureBranchProperty$2.invoke(FeatureBranchProperty.java:247)
          at hudson.FilePath.act(FilePath.java:904)
          at hudson.FilePath.act(FilePath.java:877)
          at jenkins.plugins.svnmerge.FeatureBranchProperty.integrate(FeatureBranchProperty.java:247)
          at jenkins.plugins.svnmerge.IntegrateAction.perform(IntegrateAction.java:141)
          at jenkins.plugins.svnmerge.IntegrateAction.perform(IntegrateAction.java:130)
          at jenkins.plugins.svnmerge.IntegrationPublisher.perform(IntegrationPublisher.java:47)
          at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:802)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:774)
          at hudson.model.Build$BuildExecution.post2(Build.java:183)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:724)
          at hudson.model.Run.execute(Run.java:1600)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:237)

          Show
          cbhagat chirag Patel added a comment - I try to remove merge info manually still it is not working i am getting same error ERROR: Publisher jenkins.plugins.svnmerge.IntegrationPublisher aborted due to exception java.lang.NullPointerException at org.tmatesoft.svn.core.SVNException.<init>(SVNException.java:50) at org.tmatesoft.svn.core.SVNException.<init>(SVNException.java:37) at jenkins.plugins.svnmerge.FeatureBranchProperty$2.invoke(FeatureBranchProperty.java:273) at jenkins.plugins.svnmerge.FeatureBranchProperty$2.invoke(FeatureBranchProperty.java:247) at hudson.FilePath.act(FilePath.java:904) at hudson.FilePath.act(FilePath.java:877) at jenkins.plugins.svnmerge.FeatureBranchProperty.integrate(FeatureBranchProperty.java:247) at jenkins.plugins.svnmerge.IntegrateAction.perform(IntegrateAction.java:141) at jenkins.plugins.svnmerge.IntegrateAction.perform(IntegrateAction.java:130) at jenkins.plugins.svnmerge.IntegrationPublisher.perform(IntegrationPublisher.java:47) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:802) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:774) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:724) at hudson.model.Run.execute(Run.java:1600) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237)
          Hide
          frznlogic Oscar Andreasson added a comment -

          I've had the same issue and investigated a little bit. Seems that ubuntu 12.04 and 11.10 uses svnkit 1.3.5 while 12.10 and 13.04 uses svnkit 1.7.5. Looking at the SVNException code in old svnkit, it does not check for null errorMessages, so it will throw an NPE exception. In newer svnkit, they actually check for null and handle it.

          Adding handling for null in this plugin is one way to go, or update your server software as a workaround

          Show
          frznlogic Oscar Andreasson added a comment - I've had the same issue and investigated a little bit. Seems that ubuntu 12.04 and 11.10 uses svnkit 1.3.5 while 12.10 and 13.04 uses svnkit 1.7.5. Looking at the SVNException code in old svnkit, it does not check for null errorMessages, so it will throw an NPE exception. In newer svnkit, they actually check for null and handle it. Adding handling for null in this plugin is one way to go, or update your server software as a workaround
          Hide
          cbhagat chirag Patel added a comment -

          Hi
          Oscar

          I am using windows and try to use these plug in can you please let me know what software i need updatd. does these need to be updated on build server or subversion server.
          Thank you so much for your help

          Thx
          C

          Show
          cbhagat chirag Patel added a comment - Hi Oscar I am using windows and try to use these plug in can you please let me know what software i need updatd. does these need to be updated on build server or subversion server. Thank you so much for your help Thx C
          Hide
          frznlogic Oscar Andreasson added a comment -

          I should add, I have not been able to get svnkit updated yet as this is a production server. Looking at the code however, it indicates that null references are at least handled in svnkit 1.7.5 etc.

          Chirag, I'm not sure how jenkins is managed on a windows machine, but I assume you have svnkit installed somewhere on the server (http://svnkit.com/). It might come with the jenkins package, or subversion plugin, or some other plugin possibly.

          Show
          frznlogic Oscar Andreasson added a comment - I should add, I have not been able to get svnkit updated yet as this is a production server. Looking at the code however, it indicates that null references are at least handled in svnkit 1.7.5 etc. Chirag, I'm not sure how jenkins is managed on a windows machine, but I assume you have svnkit installed somewhere on the server ( http://svnkit.com/ ). It might come with the jenkins package, or subversion plugin, or some other plugin possibly.
          Hide
          gregooz Gregory J. added a comment -

          Hello,

          I resolved the problem thanks to this blog : http://adam-payne.blogspot.fr/2013/07/jenkins-svnmerge-plugin.html

          The guy fixed the bug into the code, and he left available in github, but not compiled

          So I attach the plugin compiled, you just have to delete the old plugin (directly in jenkins), and add the hpi file as plugin in jenkins (Managment -> Plugin -> Advanced)

          And enjoy it

          Show
          gregooz Gregory J. added a comment - Hello, I resolved the problem thanks to this blog : http://adam-payne.blogspot.fr/2013/07/jenkins-svnmerge-plugin.html The guy fixed the bug into the code, and he left available in github, but not compiled So I attach the plugin compiled, you just have to delete the old plugin (directly in jenkins), and add the hpi file as plugin in jenkins (Managment -> Plugin -> Advanced) And enjoy it
          Hide
          hugueschabot Hugues Chabot added a comment -

          The issue has been resolved while fixing JENKINS-12495.

          Show
          hugueschabot Hugues Chabot added a comment - The issue has been resolved while fixing JENKINS-12495 .

            People

            Assignee:
            kohsuke Kohsuke Kawaguchi
            Reporter:
            javydreamercsw javydreamercsw
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: