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

Geting Nullpointer exception because of audittodb while building project

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: audit2db-plugin
    • Labels:
    • Environment:
      OS-Windows, JAVA - 1.8.0_101,Jenkin verson- 2.124, Browser chrome, AuditToDB plugin version- 0.5
    • Similar Issues:

      Description

      java.lang.NullPointerException{{ at org.jenkins.plugins.audit2db.internal.DbAuditPublisherImpl.perform(DbAuditPublisherImpl.java:110)}}{{ at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)}}{{ at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)}}{{ at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)}}{{ at hudson.model.Build$BuildExecution.cleanUp(Build.java:195)}}{{ at hudson.model.Run.execute(Run.java:1788)}}{{ at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)}}{{ at hudson.model.ResourceController.execute(ResourceController.java:98)}}{{ at hudson.model.Executor.run(Executor.java:410)}}

        Attachments

          Activity

          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          It is "just" a missing check in the plugin: https://github.com/jenkinsci/audit2db-plugin/blob/master/src/main/java/org/jenkins/plugins/audit2db/internal/DbAuditPublisherImpl.java#L108-L110. getBuildDetailsForBuild(build) may return null according to Javadoc. And it's not checked

          Show
          oleg_nenashev Oleg Nenashev added a comment - It is "just" a missing check in the plugin: https://github.com/jenkinsci/audit2db-plugin/blob/master/src/main/java/org/jenkins/plugins/audit2db/internal/DbAuditPublisherImpl.java#L108-L110 . getBuildDetailsForBuild(build) may return null according to Javadoc. And it's not checked
          Hide
          narsingi Narsing Ingle added a comment -

          Thanks for quick response but my issue Issue was occurred because of ORA-01400: cannot insert NULL into ("XXXX"."JENKINS_BUILD_NODE"."NAME")

          Show
          narsingi Narsing Ingle added a comment - Thanks for quick response but my issue Issue was occurred because of ORA-01400: cannot insert NULL into ("XXXX"."JENKINS_BUILD_NODE"."NAME")

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            narsingi Narsing Ingle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: