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.

  • generating a checkout command with the snippet generator with disabled "include in polling" and "include in changelog" options, leads to this: {code} checkout changelog: false, poll: false, scm: [$class: 'IntegritySCM', checkpointBeforeBuild: false, cleanCopy: true, configPath: '#myproject', configurationName: '56a316f1-7b69-4fc0-abad-dfee5a928552', deleteNonMembers: false, fetchChangedWorkspaceFiles: false, restoreTimestamp: false, serverConfig: '8b451f48-dd2e-4630-a4d4-bf19fb51f117', skipAuthorInfo: false] {code} This will lead to a null pointer exception {code:none} java.lang.NullPointerException at java.io.FileOutputStream.<init>(Unknown Source) at java.io.FileOutputStream.<init>(Unknown Source) at hudson.scm.IntegritySCM.checkout(IntegritySCM.java:788) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:109) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:83) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:73) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:49) at hudson.security.ACL.impersonate(ACL.java:213) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:47) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) {code} If I change the command to {code} checkout ([$class: 'IntegritySCM', changelog: false, poll: false, checkpointBeforeBuild: false, cleanCopy: true, configPath: '#myproject', configurationName: '56a316f1-7b69-4fc0-abad-dfee5a928552', deleteNonMembers: false, fetchChangedWorkspaceFiles: false, restoreTimestamp: false, serverConfig: '8b451f48-dd2e-4630-a4d4-bf19fb51f117', skipAuthorInfo: false]) {code} it is executed, but the options seem to be ignored.
    via by Matthias Rump,
  • generating a checkout command with the snippet generator with disabled "include in polling" and "include in changelog" options, leads to this: {code} checkout changelog: false, poll: false, scm: [$class: 'IntegritySCM', checkpointBeforeBuild: false, cleanCopy: true, configPath: '#myproject', configurationName: '56a316f1-7b69-4fc0-abad-dfee5a928552', deleteNonMembers: false, fetchChangedWorkspaceFiles: false, restoreTimestamp: false, serverConfig: '8b451f48-dd2e-4630-a4d4-bf19fb51f117', skipAuthorInfo: false] {code} This will lead to a null pointer exception {code:none} java.lang.NullPointerException at java.io.FileOutputStream.<init>(Unknown Source) at java.io.FileOutputStream.<init>(Unknown Source) at hudson.scm.IntegritySCM.checkout(IntegritySCM.java:788) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:109) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:83) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:73) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:49) at hudson.security.ACL.impersonate(ACL.java:213) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:47) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) {code} If I change the command to {code} checkout ([$class: 'IntegritySCM', changelog: false, poll: false, checkpointBeforeBuild: false, cleanCopy: true, configPath: '#myproject', configurationName: '56a316f1-7b69-4fc0-abad-dfee5a928552', deleteNonMembers: false, fetchChangedWorkspaceFiles: false, restoreTimestamp: false, serverConfig: '8b451f48-dd2e-4630-a4d4-bf19fb51f117', skipAuthorInfo: false]) {code} it is executed, but the options seem to be ignored.
    via by Matthias Rump,
  • IBM JSSE error on solaris
    via by ningjun wang,
  • Servlet Compile Error (NullPointerException)
    via by lazlo fruvous,
  • Master is not working
    via by Felix Mayerhuber,
  • java.lang.NullPointerException
    via by Unknown author,
  • java.lang.NullPointerException
    via by Unknown author,
    • java.lang.NullPointerException at java.io.FileOutputStream.<init>(Unknown Source) at java.io.FileOutputStream.<init>(Unknown Source) at flex.services.logging.FileLogEventHandler.openFile(FileLogEventHandler.java:333) at flex.services.logging.FileLogEventHandler.checkForRotation(FileLogEventHandler.java:300) at flex.services.logging.FileLogEventHandler.logEvent(FileLogEventHandler.java:178) at flex.services.logging.LogEventHandler.log(LogEventHandler.java:27) at flex.services.logging.ThreadedLogEventHandler.processNextInQueue(ThreadedLogEventHandler.java:153) at flex.services.logging.ThreadedLogEventHandler$ProcessQueueTask.run(ThreadedLogEventHandler.java:125) at java.util.TimerThread.mainLoop(Unknown Source) at java.util.TimerThread.run(Unknown Source)

    Users with the same issue

    rprp
    1 times, last one,
    Vladimir DmieVladimir Dmie
    1 times, last one,
    Unknown visitor
    Unknown visitor2 times, last one,