java.lang.InternalError

Stack Overflow | Sujit Rai | 4 months ago
  1. 0

    Trying to add dumb Fedora slaves (F22) to Jenkins master. Keep getting exceptions. SSH auth works fine, but after slave.jar is executed channel between master and slave is terminated. Error: [05/16/16 21:14:53] [SSH] Opening SSH connection to <myserver>:22. [05/16/16 21:14:53] [SSH] Authentication successful. [05/16/16 21:14:53] [SSH] The remote users environment is: BASH=/usr/bin/bash BASHOPTS=cmdhist:complete_fullquote:extquote:force_fignore:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath BASH_ALIASES=() BASH_ARGC=() BASH_ARGV=() BASH_CMDS=() BASH_EXECUTION_STRING=set BASH_LINENO=() BASH_SOURCE=() BASH_VERSINFO=([0]="4" [1]="3" [2]="33" [3]="1" [4]="release" [5]="x86_64-redhat-linux-gnu") BASH_VERSION='4.3.33(1)-release' DIRSTACK=() EUID=5495 GROUPS=() HOME=/var/lib/jenkins HOSTNAME=<myserver>.domain.com HOSTTYPE=x86_64 IFS=$' \t\n' LOGNAME=jenkins MACHTYPE=x86_64-redhat-linux-gnu MAIL=/var/mail/jenkins OPTERR=1 OPTIND=1 OSTYPE=linux-gnu PATH=/usr/local/bin:/usr/bin PPID=5621 PS4='+ ' PWD=/var/lib/jenkins SHELL=/bin/bash SHELLOPTS=braceexpand:hashall:interactive-comments SHLVL=1 SSH_CLIENT='10.114.5.95 57534 22' SSH_CONNECTION='10.114.5.95 57534 10.114.5.88 22' TERM=dumb UID=5495 USER=jenkins XDG_RUNTIME_DIR=/run/user/5495 XDG_SESSION_ID=75 _=bash [05/16/16 21:14:53] [SSH] Checking java version of java [05/16/16 21:14:53] [SSH] java -version returned 1.8.0_91. [05/16/16 21:14:53] [SSH] Starting sftp client. [05/16/16 21:14:53] [SSH] Copying latest slave.jar... [05/16/16 21:14:53] [SSH] Copied 506,667 bytes. Expanded the channel window size to 4MB [05/16/16 21:14:53] [SSH] Starting slave process: cd "/var/lib/jenkins" && java -jar slave.jar -slaveLog log.txt <===[JENKINS REMOTING CAPACITY]===>channel started Slave.jar version: 2.53.3 This is a Unix slave hudson.util.IOException2: Slave JVM has not reported exit code. Is it still running? at hudson.plugins.sshslaves.SSHLauncher.startSlave(SSHLauncher.java:984) at hudson.plugins.sshslaves.SSHLauncher.access$400(SSHLauncher.java:137) at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:725) at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:706) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.io.IOException: Remote call on sbu-jslave01 failed at hudson.remoting.Channel.call(Channel.java:789) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:536) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:381) at hudson.plugins.sshslaves.SSHLauncher.startSlave(SSHLauncher.java:976) ... 7 more Caused by: java.lang.InternalError at sun.security.ec.SunEC.initialize(Native Method) at sun.security.ec.SunEC.access$000(SunEC.java:49) at sun.security.ec.SunEC$1.run(SunEC.java:61) at sun.security.ec.SunEC$1.run(SunEC.java:58) at java.security.AccessController.doPrivileged(Native Method) at sun.security.ec.SunEC.<clinit>(SunEC.java:58) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at java.lang.Class.newInstance(Class.java:442) at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:221) at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:206) at java.security.AccessController.doPrivileged(Native Method) at sun.security.jca.ProviderConfig.doLoadProvider(ProviderConfig.java:206) at sun.security.jca.ProviderConfig.getProvider(ProviderConfig.java:187) at sun.security.jca.ProviderList.loadAll(ProviderList.java:282) at sun.security.jca.ProviderList.removeInvalid(ProviderList.java:299) at sun.security.jca.Providers.getFullProviderList(Providers.java:173) at java.security.Security.removeProvider(Security.java:440) at hudson.slaves.SlaveComputer$SlaveInitializer.call(SlaveComputer.java:815) at hudson.slaves.SlaveComputer$SlaveInitializer.call(SlaveComputer.java:802) at hudson.remoting.UserRequest.perform(UserRequest.java:120) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) at ......remote call to sbu-jslave01(Native Method) at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416) at hudson.remoting.UserResponse.retrieve(UserRequest.java:220) at hudson.remoting.Channel.call(Channel.java:781) ... 10 more [05/16/16 21:14:57] Launch failed - cleaning up connection [05/16/16 21:14:57] [SSH] Connection closed. ERROR: Connection terminated java.io.IOException: Unexpected termination of the channel at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50) Caused by: java.io.EOFException at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2353) at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2822) at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:804) at java.io.ObjectInputStream.<init>(ObjectInputStream.java:301) at hudson.remoting.ObjectInputStreamEx.<init>(ObjectInputStreamEx.java:48) at hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)

    Jenkins JIRA | 7 months ago | Sergey Leonovich
    hudson.util.IOException2: Slave JVM has not reported exit code. Is it still running?
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    FULL PRODUCT VERSION : openjdk version "1.8.0_91" OpenJDK Runtime Environment (build 1.8.0_91-b14) OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode) ADDITIONAL OS VERSION INFORMATION : Linux bd4af4f88e77 4.4.6-201.fc22.x86_64 #1 SMP Wed Mar 30 18:30:16 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux EXTRA RELEVANT SYSTEM CONFIGURATION : Running inside a docker container. Put the following in Dockerfile FROM fedora:23 # install base tools RUN dnf install -y wget curl tar zip unzip bc which net-tools findutils # Refresh package cache, followed by install openjdk jre and jdk RUN dnf makecache && dnf install -yv java-1.8.0-openjdk-headless-debug java-1.8.0-openjdk-devel-debug A DESCRIPTION OF THE PROBLEM : This problem only happens inside a Docker container. I do not see any difference in setup or environment between the host and the container though. I'd be happy to provide additional information if needed. The error message is not helpful. Is there any debug setting? STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : Calling any crypto code ends up initializing the crypto providers and causes the fatal error. ERROR MESSAGES/STACK TRACES THAT OCCUR : Exception in thread "main" java.lang.InternalError at sun.security.ec.SunEC.initialize(Native Method) at sun.security.ec.SunEC.access$000(SunEC.java:49) at sun.security.ec.SunEC$1.run(SunEC.java:61) at sun.security.ec.SunEC$1.run(SunEC.java:58) at java.security.AccessController.doPrivileged(Native Method) at sun.security.ec.SunEC.<clinit>(SunEC.java:58) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at java.lang.Class.newInstance(Class.java:442) at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:221) at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:206) at java.security.AccessController.doPrivileged(Native Method) at sun.security.jca.ProviderConfig.doLoadProvider(ProviderConfig.java:206) at sun.security.jca.ProviderConfig.getProvider(ProviderConfig.java:187) at sun.security.jca.ProviderList.getProvider(ProviderList.java:233) at sun.security.jca.ProviderList.getService(ProviderList.java:331) at sun.security.jca.GetInstance.getInstance(GetInstance.java:157) at javax.net.ssl.SSLContext.getInstance(SSLContext.java:156) at javax.net.ssl.SSLContext.getDefault(SSLContext.java:96) at Test.main(Test.java:13) REPRODUCIBILITY : This bug can be reproduced always. ---------- BEGIN SOURCE ---------- import java.io.IOException; import java.io.InputStream; import java.net.Socket; import java.security.NoSuchAlgorithmException; import javax.net.ssl.SSLContext; import javax.net.ssl.SSLEngine; public class Test { public static void main(String[] args) throws NoSuchAlgorithmException, Exception { Socket s = SSLContext.getDefault().getSocketFactory().createSocket("google.com", 443); s.getOutputStream().write("GET / HTTP/1.0\r\n\r\n".getBytes()); InputStream inputStream = s.getInputStream(); int c; while ((c = inputStream.read()) > -1) System.out.print((char)c); } } ---------- END SOURCE ----------

    JDK Bug System | 7 months ago | Webbug Group
    java.lang.InternalError
  4. 0

    Namenode fails to start.

    GitHub | 4 months ago | wadujj
    java.lang.InternalError

    5 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.InternalError

      No message provided

      at sun.security.ec.SunEC.initialize()
    2. sun.security.ec
      SunEC$1.run
      1. sun.security.ec.SunEC.initialize(Native Method)
      2. sun.security.ec.SunEC.access$000(SunEC.java:49)
      3. sun.security.ec.SunEC$1.run(SunEC.java:61)
      4. sun.security.ec.SunEC$1.run(SunEC.java:58)
      4 frames
    3. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    4. sun.security.ec
      SunEC.<clinit>
      1. sun.security.ec.SunEC.<clinit>(SunEC.java:58)
      1 frame
    5. Java RT
      ProviderList$ServiceList$1.hasNext
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      5. java.lang.Class.newInstance(Class.java:383)
      6. sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:221)
      7. sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:206)
      8. java.security.AccessController.doPrivileged(Native Method)
      9. sun.security.jca.ProviderConfig.doLoadProvider(ProviderConfig.java:206)
      10. sun.security.jca.ProviderConfig.getProvider(ProviderConfig.java:187)
      11. sun.security.jca.ProviderList.getProvider(ProviderList.java:233)
      12. sun.security.jca.ProviderList$ServiceList.tryGet(ProviderList.java:434)
      13. sun.security.jca.ProviderList$ServiceList.access$200(ProviderList.java:376)
      14. sun.security.jca.ProviderList$ServiceList$1.hasNext(ProviderList.java:486)
      14 frames
    6. Android Platform
      KeyGenerator.getInstance
      1. javax.crypto.KeyGenerator.nextSpi(KeyGenerator.java:339)
      2. javax.crypto.KeyGenerator.<init>(KeyGenerator.java:169)
      3. javax.crypto.KeyGenerator.getInstance(KeyGenerator.java:224)
      3 frames
    7. Hadoop
      SecretManager.<init>
      1. org.apache.hadoop.security.token.SecretManager.<init>(SecretManager.java:143)
      1 frame
    8. Apache Hadoop HDFS
      DataNode.main
      1. org.apache.hadoop.hdfs.security.token.block.BlockPoolTokenSecretManager.<init>(BlockPoolTokenSecretManager.java:36)
      2. org.apache.hadoop.hdfs.server.datanode.DataNode.startDataNode(DataNode.java:1076)
      3. org.apache.hadoop.hdfs.server.datanode.DataNode.<init>(DataNode.java:411)
      4. org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:2301)
      5. org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:2188)
      6. org.apache.hadoop.hdfs.server.datanode.DataNode.createDataNode(DataNode.java:2235)
      7. org.apache.hadoop.hdfs.server.datanode.DataNode.secureMain(DataNode.java:2411)
      8. org.apache.hadoop.hdfs.server.datanode.DataNode.main(DataNode.java:2435)
      8 frames