java.lang.NullPointerException

JDK Bug System | Igor Veresov | 4 months ago
  1. 0

    GitHub comment 2845#181125216

    GitHub | 10 months ago | liscju
    java.lang.NullPointerException
  2. 0

    Jenkins - NullPointerException when building

    Stack Overflow | 6 months ago | Dr. Jones
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    I'm getting the following error: {code:java} Building in workspace /var/lib/jenkins/jobs/delegate/workspace > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url ssh://Jenkins@localhost:29418/delegate # timeout=10 Fetching upstream changes from ssh://Jenkins@localhost:29418/delegate > git --version # timeout=10 using GIT_SSH to set credentials > git -c core.askpass=true fetch --tags --progress ssh://Jenkins@localhost:29418/delegate refs/changes/*:refs/changes/* > git rev-parse FETCH_HEAD^{commit} # timeout=10 Checking out Revision e31eedc809f88c69ea6b5193e8a90e052421ec2d () > git config core.sparsecheckout # timeout=10 > git checkout -f e31eedc809f88c69ea6b5193e8a90e052421ec2d FATAL: null java.lang.NullPointerException at java.util.TreeMap.compare(TreeMap.java:1290) at java.util.TreeMap.put(TreeMap.java:538) at hudson.util.CopyOnWriteMap.put(CopyOnWriteMap.java:104) at hudson.plugins.git.GitTagAction.<init>(GitTagAction.java:44) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1143) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1275) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) Finished: FAILURE {code} If i look inside the jenkins workspace everything looks good. If i run all the git commands manually it also checkouts the correct commit but everything crashes after that. *Config:* Source code management: Git Repositories: ssh://Jenkins@localhost:29418/delegate Credentials: Jenkins Name: *empty* Refspec: refs/changes/*:refs/changes/* Branches to build: ** Strategy for choosing what to build: Gerrit Trigger Build triggers: Gerrit event Choose a Server: gerrit Gerrit project: type = plain, Pattern = delegate branches type = Path, Pattern = ** *Interesting:* If i change the refspec to something else or leave it bland the build will success but the latest changes won't be checked out from gerrit. So is there a solution to this problem or am I doing something wrong?

    Jenkins JIRA | 6 months ago | nilo swe
    java.lang.NullPointerException
  5. 0

    I'm getting the following error: {code:java} Building in workspace /var/lib/jenkins/jobs/delegate/workspace > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url ssh://Jenkins@localhost:29418/delegate # timeout=10 Fetching upstream changes from ssh://Jenkins@localhost:29418/delegate > git --version # timeout=10 using GIT_SSH to set credentials > git -c core.askpass=true fetch --tags --progress ssh://Jenkins@localhost:29418/delegate refs/changes/*:refs/changes/* > git rev-parse FETCH_HEAD^{commit} # timeout=10 Checking out Revision e31eedc809f88c69ea6b5193e8a90e052421ec2d () > git config core.sparsecheckout # timeout=10 > git checkout -f e31eedc809f88c69ea6b5193e8a90e052421ec2d FATAL: null java.lang.NullPointerException at java.util.TreeMap.compare(TreeMap.java:1290) at java.util.TreeMap.put(TreeMap.java:538) at hudson.util.CopyOnWriteMap.put(CopyOnWriteMap.java:104) at hudson.plugins.git.GitTagAction.<init>(GitTagAction.java:44) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1143) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1275) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) Finished: FAILURE {code} If i look inside the jenkins workspace everything looks good. If i run all the git commands manually it also checkouts the correct commit but everything crashes after that. *Config:* Source code management: Git Repositories: ssh://Jenkins@localhost:29418/delegate Credentials: Jenkins Name: *empty* Refspec: refs/changes/*:refs/changes/* Branches to build: ** Strategy for choosing what to build: Gerrit Trigger Build triggers: Gerrit event Choose a Server: gerrit Gerrit project: type = plain, Pattern = delegate branches type = Path, Pattern = ** *Interesting:* If i change the refspec to something else or leave it bland the build will success but the latest changes won't be checked out from gerrit. So is there a solution to this problem or am I doing something wrong?

    Jenkins JIRA | 6 months ago | nilo swe
    java.lang.NullPointerException

  1. aldrinleal 2 times, last 3 months ago
1 unregistered visitors
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 java.util.TreeMap.compare()
  2. Java RT
    TreeMap.put
    1. java.util.TreeMap.compare(TreeMap.java:1290)
    2. java.util.TreeMap.put(TreeMap.java:538)
    2 frames
  3. com.sun.javatest
    DefaultTestRunner$1.run
    1. com.sun.javatest.regtest.ModuleConfig.setPatchPath(ModuleConfig.java:165)
    2. com.sun.javatest.regtest.ModuleConfig$1.handleOption(ModuleConfig.java:99)
    3. com.sun.javatest.regtest.JDKOpts$OptionHandler.handleOption(JDKOpts.java:393)
    4. com.sun.javatest.regtest.JDKOpts$OptionHandler.handleOptions(JDKOpts.java:367)
    5. com.sun.javatest.regtest.ModuleConfig.setFromOpts(ModuleConfig.java:110)
    6. com.sun.javatest.regtest.ModuleConfig.setFromOpts(ModuleConfig.java:65)
    7. com.sun.javatest.regtest.MainAction.runOtherJVM(MainAction.java:490)
    8. com.sun.javatest.regtest.MainAction.run(MainAction.java:337)
    9. com.sun.javatest.regtest.RegressionScript.run(RegressionScript.java:231)
    10. com.sun.javatest.Script.run(Script.java:241)
    11. com.sun.javatest.DefaultTestRunner.runTest(DefaultTestRunner.java:174)
    12. com.sun.javatest.DefaultTestRunner.access$100(DefaultTestRunner.java:43)
    13. com.sun.javatest.DefaultTestRunner$1.run(DefaultTestRunner.java:66)
    13 frames