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

Trap exception for invalid credential

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      java.lang.NullPointerException
      at org.jenkinsci.plugins.p4.client.ConnectionConfig.<init>(ConnectionConfig.java:19)
      at org.jenkinsci.plugins.p4.client.ConnectionHelper.<init>(ConnectionHelper.java:105)
      at org.jenkinsci.plugins.p4.client.ClientHelper.<init>(ClientHelper.java:107)
      at org.jenkinsci.plugins.p4.tasks.AbstractTask.getConnection(AbstractTask.java:161)
      at org.jenkinsci.plugins.p4.tasks.AbstractTask.setWorkspace(AbstractTask.java:78)
      at org.jenkinsci.plugins.p4.PerforceScm.checkout(PerforceScm.java:442)
      at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:113)
      at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:85)
      at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:75)
      at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47)
      at hudson.security.ACL.impersonate(ACL.java:290)
      at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
      Finished: FAILURE

        Attachments

          Activity

          Hide
          cbopardikar Charusheela Bopardikar added a comment -

          Handle the scenario when the credentials are null and threw a custom exception with a message "Invalid credentials"

          Show
          cbopardikar Charusheela Bopardikar added a comment - Handle the scenario when the credentials are null and threw a custom exception with a message "Invalid credentials"
          Hide
          p4paul Paul Allen added a comment -

          Released in 1.9.5

          Show
          p4paul Paul Allen added a comment - Released in 1.9.5

            People

            Assignee:
            cbopardikar Charusheela Bopardikar
            Reporter:
            p4paul Paul Allen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: