java.lang.NullPointerException

Jenkins JIRA | andreyevbr | 6 years ago
  1. 0

    While trying to start a build remotely with CLI and authenticate with MS-AD credentials we receive this error on client: {code} $ java -jar ./hudson-cli.jar -s http://hudsonserver build -s teste --username myuser --password 'mypass' java.lang.NullPointerException at hudson.util.CaseInsensitiveComparator.compare(CaseInsensitiveComparator.java:40) at hudson.util.CaseInsensitiveComparator.compare(CaseInsensitiveComparator.java:34) at java.util.TreeMap.getEntryUsingComparator(TreeMap.java:351) at java.util.TreeMap.getEntry(TreeMap.java:322) at java.util.TreeMap.get(TreeMap.java:255) at hudson.util.CopyOnWriteMap.get(CopyOnWriteMap.java:89) at hudson.model.Hudson.getItem(Hudson.java:1945) at hudson.model.AbstractProject.findNearest(AbstractProject.java:1722) at hudson.cli.handlers.AbstractProjectOptionHandler.parseArguments(AbstractProjectOptionHandler.java:54) at org.kohsuke.args4j.CmdLineParser.parseArgument(CmdLineParser.java:435) at hudson.cli.CLICommand.main(CLICommand.java:177) at hudson.cli.CliManagerImpl.main(CliManagerImpl.java:68) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) {code} And this on server (with --debug=9): {code} [Winstone 2010/09/08 17:43:42] - RHPool: Releasing handler thread - used: 2 unused: 3 [Winstone 2010/09/08 17:43:42] - Thread entering wait state Sep 8, 2010 5:43:42 PM hudson.remoting.Channel$ReaderThread run SEVERE: I/O error in channel HTTP full-duplex channel e0008b4b-c601-4543-a830-7de8a0afc83a java.io.IOException: chunked stream ended unexpectedly at hudson.util.ChunkedInputStream.getChunkSizeFromInputStream(ChunkedInputStream.java:225) at hudson.util.ChunkedInputStream.nextChunk(ChunkedInputStream.java:197) at hudson.util.ChunkedInputStream.read(ChunkedInputStream.java:120) at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2249) at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2542) at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2552) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at hudson.remoting.Channel$ReaderThread.run(Channel.java:875) {code} We use authorization mode is "Matrix-based security".

    Jenkins JIRA | 6 years ago | andreyevbr
    java.lang.NullPointerException
  2. 0

    While trying to start a build remotely with CLI and authenticate with MS-AD credentials we receive this error on client: {code} $ java -jar ./hudson-cli.jar -s http://hudsonserver build -s teste --username myuser --password 'mypass' java.lang.NullPointerException at hudson.util.CaseInsensitiveComparator.compare(CaseInsensitiveComparator.java:40) at hudson.util.CaseInsensitiveComparator.compare(CaseInsensitiveComparator.java:34) at java.util.TreeMap.getEntryUsingComparator(TreeMap.java:351) at java.util.TreeMap.getEntry(TreeMap.java:322) at java.util.TreeMap.get(TreeMap.java:255) at hudson.util.CopyOnWriteMap.get(CopyOnWriteMap.java:89) at hudson.model.Hudson.getItem(Hudson.java:1945) at hudson.model.AbstractProject.findNearest(AbstractProject.java:1722) at hudson.cli.handlers.AbstractProjectOptionHandler.parseArguments(AbstractProjectOptionHandler.java:54) at org.kohsuke.args4j.CmdLineParser.parseArgument(CmdLineParser.java:435) at hudson.cli.CLICommand.main(CLICommand.java:177) at hudson.cli.CliManagerImpl.main(CliManagerImpl.java:68) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) {code} And this on server (with --debug=9): {code} [Winstone 2010/09/08 17:43:42] - RHPool: Releasing handler thread - used: 2 unused: 3 [Winstone 2010/09/08 17:43:42] - Thread entering wait state Sep 8, 2010 5:43:42 PM hudson.remoting.Channel$ReaderThread run SEVERE: I/O error in channel HTTP full-duplex channel e0008b4b-c601-4543-a830-7de8a0afc83a java.io.IOException: chunked stream ended unexpectedly at hudson.util.ChunkedInputStream.getChunkSizeFromInputStream(ChunkedInputStream.java:225) at hudson.util.ChunkedInputStream.nextChunk(ChunkedInputStream.java:197) at hudson.util.ChunkedInputStream.read(ChunkedInputStream.java:120) at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2249) at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2542) at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2552) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at hudson.remoting.Channel$ReaderThread.run(Channel.java:875) {code} We use authorization mode is "Matrix-based security".

    Jenkins JIRA | 6 years ago | andreyevbr
    java.lang.NullPointerException
  3. 0

    kicking off a job on a remote Jenkins - quick question

    Google Groups | 4 years ago | mpc8250
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Jenkins CLI list-changes command throws NullPointerException

    Google Groups | 6 years ago | dave morris
    java.lang.NullPointerException
  6. 0

    I use LDAP Auth, and Matrix-based security. Anonymous users have no access. When i try do "java -jar hudson-cli.jar -s http://localhost:8080 build my_project --username builder --password ********", I get error message: java.lang.NullPointerException at hudson.util.CaseInsensitiveComparator.compare(CaseInsensitiveComparator.java:40) at hudson.util.CaseInsensitiveComparator.compare(CaseInsensitiveComparator.java:34) at java.util.TreeMap.getEntryUsingComparator(TreeMap.java:368) at java.util.TreeMap.getEntry(TreeMap.java:339) at java.util.TreeMap.get(TreeMap.java:272) at hudson.util.CopyOnWriteMap.get(CopyOnWriteMap.java:89) at hudson.model.Hudson.getItem(Hudson.java:1949) at hudson.model.AbstractProject.findNearest(AbstractProject.java:1743) at hudson.cli.handlers.AbstractProjectOptionHandler.parseArguments(AbstractProjectOptionHandler.java:54) at org.kohsuke.args4j.CmdLineParser.parseArgument(CmdLineParser.java:435) at hudson.cli.CLICommand.main(CLICommand.java:177) at hudson.cli.CliManagerImpl.main(CliManagerImpl.java:68) at sun.reflect.GeneratedMethodAccessor244.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) But! If I grand "Job Read" access to Anonymous, all works fine. Is it a bug?

    Jenkins JIRA | 6 years ago | herclogon
    java.lang.NullPointerException

    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 hudson.util.CaseInsensitiveComparator.compare()
    2. Hudson
      CaseInsensitiveComparator.compare
      1. hudson.util.CaseInsensitiveComparator.compare(CaseInsensitiveComparator.java:40)
      2. hudson.util.CaseInsensitiveComparator.compare(CaseInsensitiveComparator.java:34)
      2 frames
    3. Java RT
      TreeMap.get
      1. java.util.TreeMap.getEntryUsingComparator(TreeMap.java:351)
      2. java.util.TreeMap.getEntry(TreeMap.java:322)
      3. java.util.TreeMap.get(TreeMap.java:255)
      3 frames
    4. Hudson
      AbstractProjectOptionHandler.parseArguments
      1. hudson.util.CopyOnWriteMap.get(CopyOnWriteMap.java:89)
      2. hudson.model.Hudson.getItem(Hudson.java:1945)
      3. hudson.model.AbstractProject.findNearest(AbstractProject.java:1722)
      4. hudson.cli.handlers.AbstractProjectOptionHandler.parseArguments(AbstractProjectOptionHandler.java:54)
      4 frames
    5. args4j
      CmdLineParser.parseArgument
      1. org.kohsuke.args4j.CmdLineParser.parseArgument(CmdLineParser.java:435)
      1 frame
    6. Hudson
      CliManagerImpl.main
      1. hudson.cli.CLICommand.main(CLICommand.java:177)
      2. hudson.cli.CliManagerImpl.main(CliManagerImpl.java:68)
      2 frames
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    8. Hudson :: Remoting Layer
      Request$2.run
      1. hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274)
      2. hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255)
      3. hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215)
      4. hudson.remoting.UserRequest.perform(UserRequest.java:114)
      5. hudson.remoting.UserRequest.perform(UserRequest.java:48)
      6. hudson.remoting.Request$2.run(Request.java:270)
      6 frames
    9. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      3. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      6. java.lang.Thread.run(Thread.java:619)
      6 frames