java.io.IOException: Remote call on CLI channel from /[ip] failed

Jenkins JIRA | Markus | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I've had a KillStuckPolling.groovy job running for about 6 months without problems, but on January 4th it stopped working with the below stack trace. This matches with the release of Jenkins 1.446, which is currently installed. I have tried to restart the server without any effect. {noformat} Killing all stuck SCM polls using ~/bin/KillStuckPolling.groovy log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.converters.BooleanConverter). log4j:WARN Please initialize the log4j system properly. java.io.IOException: Remote call on CLI channel from /[ip] failed at hudson.remoting.Channel.call(Channel.java:690) at hudson.cli.GroovyCommand.loadScript(GroovyCommand.java:106) at hudson.cli.GroovyCommand.run(GroovyCommand.java:93) at hudson.cli.CLICommand.main(CLICommand.java:205) at hudson.cli.CliManagerImpl.main(CliManagerImpl.java:66) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) 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:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:287) 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$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ExceptionInInitializerError at java.io.ObjectStreamClass.hasStaticInitializer(Native Method) at java.io.ObjectStreamClass.computeDefaultSUID(Unknown Source) at java.io.ObjectStreamClass.access$100(Unknown Source) at java.io.ObjectStreamClass$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.io.ObjectStreamClass.getSerialVersionUID(Unknown Source) at java.io.ObjectStreamClass.initNonProxy(Unknown Source) at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source) at java.io.ObjectInputStream.readClassDesc(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.defaultReadFields(Unknown Source) at java.io.ObjectInputStream.readSerialData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at hudson.remoting.UserRequest.deserialize(UserRequest.java:182) at hudson.remoting.UserRequest.perform(UserRequest.java:98) ... 8 more Caused by: java.lang.NullPointerException at hudson.cli.CLICommand.<clinit>(CLICommand.java:448) ... 26 more Build step 'Execute shell' marked build as failure {noformat} The groovy script is as follows: {code:title=KillStuckPolling.groovy|borderStyle=solid} Thread.getAllStackTraces().keySet().each() { item -> println "Checking item" + item.getName(); if (item.getName().contains("SCM polling") && item.getName().contains("waiting for hudson.remoting")) { println " Interrupting thread " + item.getId(); item.interrupt() } } {code} And the bash script used to start it is as follows {code:title=KillStuckPolling.sh|borderStyle=solid|xml} #!/bin/bash -e echo "## Kills stuck polling jobs on Jenkins" if [ -z "$JENKINS_URL" ]; then echo "ERROR: This script must be run on Jenkins. It cannot be run manually" exit 1 fi echo "Getting latest Jenkins CLI from ${JENKINS_URL}" if [ -w jenkins-cli.jar ]; then rm jenkins-cli.jar fi wget ${JENKINS_URL}jnlpJars/jenkins-cli.jar echo "Killing all stuck SCM polls using ~/bin/KillStuckPolling.groovy" java -jar jenkins-cli.jar -s ${JENKINS_URL}/ groovy ~/bin/KillStuckPolling.groovy {code}

    Jenkins JIRA | 5 years ago | Markus
    java.io.IOException: Remote call on CLI channel from /[ip] failed
  2. 0

    I've had a KillStuckPolling.groovy job running for about 6 months without problems, but on January 4th it stopped working with the below stack trace. This matches with the release of Jenkins 1.446, which is currently installed. I have tried to restart the server without any effect. {noformat} Killing all stuck SCM polls using ~/bin/KillStuckPolling.groovy log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.converters.BooleanConverter). log4j:WARN Please initialize the log4j system properly. java.io.IOException: Remote call on CLI channel from /[ip] failed at hudson.remoting.Channel.call(Channel.java:690) at hudson.cli.GroovyCommand.loadScript(GroovyCommand.java:106) at hudson.cli.GroovyCommand.run(GroovyCommand.java:93) at hudson.cli.CLICommand.main(CLICommand.java:205) at hudson.cli.CliManagerImpl.main(CliManagerImpl.java:66) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) 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:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:287) 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$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ExceptionInInitializerError at java.io.ObjectStreamClass.hasStaticInitializer(Native Method) at java.io.ObjectStreamClass.computeDefaultSUID(Unknown Source) at java.io.ObjectStreamClass.access$100(Unknown Source) at java.io.ObjectStreamClass$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.io.ObjectStreamClass.getSerialVersionUID(Unknown Source) at java.io.ObjectStreamClass.initNonProxy(Unknown Source) at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source) at java.io.ObjectInputStream.readClassDesc(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.defaultReadFields(Unknown Source) at java.io.ObjectInputStream.readSerialData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at hudson.remoting.UserRequest.deserialize(UserRequest.java:182) at hudson.remoting.UserRequest.perform(UserRequest.java:98) ... 8 more Caused by: java.lang.NullPointerException at hudson.cli.CLICommand.<clinit>(CLICommand.java:448) ... 26 more Build step 'Execute shell' marked build as failure {noformat} The groovy script is as follows: {code:title=KillStuckPolling.groovy|borderStyle=solid} Thread.getAllStackTraces().keySet().each() { item -> println "Checking item" + item.getName(); if (item.getName().contains("SCM polling") && item.getName().contains("waiting for hudson.remoting")) { println " Interrupting thread " + item.getId(); item.interrupt() } } {code} And the bash script used to start it is as follows {code:title=KillStuckPolling.sh|borderStyle=solid|xml} #!/bin/bash -e echo "## Kills stuck polling jobs on Jenkins" if [ -z "$JENKINS_URL" ]; then echo "ERROR: This script must be run on Jenkins. It cannot be run manually" exit 1 fi echo "Getting latest Jenkins CLI from ${JENKINS_URL}" if [ -w jenkins-cli.jar ]; then rm jenkins-cli.jar fi wget ${JENKINS_URL}jnlpJars/jenkins-cli.jar echo "Killing all stuck SCM polls using ~/bin/KillStuckPolling.groovy" java -jar jenkins-cli.jar -s ${JENKINS_URL}/ groovy ~/bin/KillStuckPolling.groovy {code}

    Jenkins JIRA | 5 years ago | Markus
    java.io.IOException: Remote call on CLI channel from /[ip] failed
  3. 0

    Getting a nullpointer exception when switching displayables in J2ME

    Stack Overflow | 6 years ago | Pallinder
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    J2ME (Java) - Null Pointer Exception caught in Display Class

    Stack Overflow | 6 years ago | Tom
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179
  6. 0

    Cloud Foundry v2 in Grails

    Stack Overflow | 3 years ago | angelo087
    java.lang.NullPointerException: Cannot invoke method getAt() on null object

    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.cli.CLICommand.<clinit>()
    2. Hudson
      CLICommand.<clinit>
      1. hudson.cli.CLICommand.<clinit>(CLICommand.java:448)
      1 frame
    3. Java RT
      ObjectInputStream.readObject
      1. java.io.ObjectStreamClass.hasStaticInitializer(Native Method)
      2. java.io.ObjectStreamClass.computeDefaultSUID(Unknown Source)
      3. java.io.ObjectStreamClass.access$100(Unknown Source)
      4. java.io.ObjectStreamClass$1.run(Unknown Source)
      5. java.security.AccessController.doPrivileged(Native Method)
      6. java.io.ObjectStreamClass.getSerialVersionUID(Unknown Source)
      7. java.io.ObjectStreamClass.initNonProxy(Unknown Source)
      8. java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
      9. java.io.ObjectInputStream.readClassDesc(Unknown Source)
      10. java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
      11. java.io.ObjectInputStream.readObject0(Unknown Source)
      12. java.io.ObjectInputStream.defaultReadFields(Unknown Source)
      13. java.io.ObjectInputStream.readSerialData(Unknown Source)
      14. java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
      15. java.io.ObjectInputStream.readObject0(Unknown Source)
      16. java.io.ObjectInputStream.readObject(Unknown Source)
      16 frames
    4. Hudson :: Remoting Layer
      Request$2.run
      1. hudson.remoting.UserRequest.deserialize(UserRequest.java:182)
      2. hudson.remoting.UserRequest.perform(UserRequest.java:98)
      3. hudson.remoting.UserRequest.perform(UserRequest.java:48)
      4. hudson.remoting.Request$2.run(Request.java:287)
      4 frames
    5. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      2. java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      3. java.util.concurrent.FutureTask.run(Unknown Source)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      6. java.lang.Thread.run(Unknown Source)
      6 frames