java.lang.Error: Error during hash calculation at sun.security.ssl.HandshakeHash.getFinishedHash(java.base@9-ea/HandshakeHash.java:358) at sun.security.ssl.HandshakeMessage$Finished.getFinished(java.base@9-ea/HandshakeMessage.java:2331) at sun.security.ssl.HandshakeMessage$Finished.<init>(java.base@9-ea/HandshakeMessage.java:2278) at sun.security.ssl.ClientHandshaker.sendChangeCipherAndFinish(java.base@9-ea/ClientHandshaker.java:1328) at sun.security.ssl.ClientHandshaker.serverHelloDone(java.base@9-ea/ClientHandshaker.java:1240) at sun.security.ssl.ClientHandshaker.processMessage(java.base@9-ea/ClientHandshaker.java:414) at sun.security.ssl.Handshaker.processLoop(java.base@9-ea/Handshaker.java:1061) at sun.security.ssl.Handshaker.processRecord(java.base@9-ea/Handshaker.java:995) at sun.security.ssl.SSLSocketImpl.processInputRecord(java.base@9-ea/SSLSocketImpl.java:1132) at sun.security.ssl.SSLSocketImpl.readRecord(java.base@9-ea/SSLSocketImpl.java:1069) at sun.security.ssl.SSLSocketImpl.readRecord(java.base@9-ea/SSLSocketImpl.java:968) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(java.base@9-ea/SSLSocketImpl.java:1395) at sun.security.ssl.SSLSocketImpl.startHandshake(java.base@9-ea/SSLSocketImpl.java:1422) at sun.security.ssl.SSLSocketImpl.startHandshake(java.base@9-ea/SSLSocketImpl.java:1406) at sun.net.www.protocol.https.HttpsClient.afterConnect(java.base@9-ea/HttpsClient.java:558) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(java.base@9-ea/AbstractDelegateHttpsURLConnection.java:185) at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(java.base@9-ea/HttpURLConnection.java:1505) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(java.base@9-ea/HttpURLConnection.java:1433) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(java.base@9-ea/HttpsURLConnectionImpl.java:235)

JDK Bug System | Roger Calnan | 4 months ago
  1. 0

    The attached application works with JDK 8, with JDK 9 latest build the following exception is seen: Exception in thread "main" java.lang.Error: Error during hash calculation at sun.security.ssl.HandshakeHash.getFinishedHash(java.base@9-ea/HandshakeHash.java:358) at sun.security.ssl.HandshakeMessage$Finished.getFinished(java.base@9-ea/HandshakeMessage.java:2331) at sun.security.ssl.HandshakeMessage$Finished.<init>(java.base@9-ea/HandshakeMessage.java:2278) at sun.security.ssl.ClientHandshaker.sendChangeCipherAndFinish(java.base@9-ea/ClientHandshaker.java:1328) at sun.security.ssl.ClientHandshaker.serverHelloDone(java.base@9-ea/ClientHandshaker.java:1240) at sun.security.ssl.ClientHandshaker.processMessage(java.base@9-ea/ClientHandshaker.java:414) at sun.security.ssl.Handshaker.processLoop(java.base@9-ea/Handshaker.java:1061) at sun.security.ssl.Handshaker.processRecord(java.base@9-ea/Handshaker.java:995) at sun.security.ssl.SSLSocketImpl.processInputRecord(java.base@9-ea/SSLSocketImpl.java:1132) at sun.security.ssl.SSLSocketImpl.readRecord(java.base@9-ea/SSLSocketImpl.java:1069) at sun.security.ssl.SSLSocketImpl.readRecord(java.base@9-ea/SSLSocketImpl.java:968) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(java.base@9-ea/SSLSocketImpl.java:1395) at sun.security.ssl.SSLSocketImpl.startHandshake(java.base@9-ea/SSLSocketImpl.java:1422) at sun.security.ssl.SSLSocketImpl.startHandshake(java.base@9-ea/SSLSocketImpl.java:1406) at sun.net.www.protocol.https.HttpsClient.afterConnect(java.base@9-ea/HttpsClient.java:558) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(java.base@9-ea/AbstractDelegateHttpsURLConnection.java:185) at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(java.base@9-ea/HttpURLConnection.java:1505) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(java.base@9-ea/HttpURLConnection.java:1433) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(java.base@9-ea/HttpsURLConnectionImpl.java:235) at jdk9httpconnection.JDK9httpConnection.main(JDK9httpConnection.java:36) Caused by: java.lang.RuntimeException: Could not clone digest at sun.security.ssl.HandshakeHash.cloneDigest(java.base@9-ea/HandshakeHash.java:303) at sun.security.ssl.HandshakeHash.getFinishedHash(java.base@9-ea/HandshakeHash.java:356) ... 19 more Caused by: java.lang.CloneNotSupportedException: SHA-256 at sun.security.pkcs11.P11Digest.clone(jdk.crypto.pkcs11@9-ea/P11Digest.java:316) at java.security.MessageDigest$Delegate.clone(java.base@9-ea/MessageDigest.java:573) at sun.security.ssl.HandshakeHash.cloneDigest(java.base@9-ea/HandshakeHash.java:300) ... 20 more Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_STATE_UNSAVEABLE at sun.security.pkcs11.wrapper.PKCS11.C_GetOperationState(jdk.crypto.pkcs11@9-ea/Native Method) at sun.security.pkcs11.P11Digest.clone(jdk.crypto.pkcs11@9-ea/P11Digest.java:311) ... 22 more

    JDK Bug System | 4 months ago | Roger Calnan
    java.lang.Error: Error during hash calculation at sun.security.ssl.HandshakeHash.getFinishedHash(java.base@9-ea/HandshakeHash.java:358) at sun.security.ssl.HandshakeMessage$Finished.getFinished(java.base@9-ea/HandshakeMessage.java:2331) at sun.security.ssl.HandshakeMessage$Finished.<init>(java.base@9-ea/HandshakeMessage.java:2278) at sun.security.ssl.ClientHandshaker.sendChangeCipherAndFinish(java.base@9-ea/ClientHandshaker.java:1328) at sun.security.ssl.ClientHandshaker.serverHelloDone(java.base@9-ea/ClientHandshaker.java:1240) at sun.security.ssl.ClientHandshaker.processMessage(java.base@9-ea/ClientHandshaker.java:414) at sun.security.ssl.Handshaker.processLoop(java.base@9-ea/Handshaker.java:1061) at sun.security.ssl.Handshaker.processRecord(java.base@9-ea/Handshaker.java:995) at sun.security.ssl.SSLSocketImpl.processInputRecord(java.base@9-ea/SSLSocketImpl.java:1132) at sun.security.ssl.SSLSocketImpl.readRecord(java.base@9-ea/SSLSocketImpl.java:1069) at sun.security.ssl.SSLSocketImpl.readRecord(java.base@9-ea/SSLSocketImpl.java:968) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(java.base@9-ea/SSLSocketImpl.java:1395) at sun.security.ssl.SSLSocketImpl.startHandshake(java.base@9-ea/SSLSocketImpl.java:1422) at sun.security.ssl.SSLSocketImpl.startHandshake(java.base@9-ea/SSLSocketImpl.java:1406) at sun.net.www.protocol.https.HttpsClient.afterConnect(java.base@9-ea/HttpsClient.java:558) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(java.base@9-ea/AbstractDelegateHttpsURLConnection.java:185) at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(java.base@9-ea/HttpURLConnection.java:1505) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(java.base@9-ea/HttpURLConnection.java:1433) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(java.base@9-ea/HttpsURLConnectionImpl.java:235)
  2. 0

    tools/jdeps/modules/GenModuleInfo.java (from langtools/test) Recently observed this test failed one time on linux (openonly build): ----------System.out:(72/5460)---------- [TestNG] Running: tools/jdeps/modules/GenModuleInfo.java config GenModuleInfo.compileAll(): success test GenModuleInfo.jdeps(): success test GenModuleInfo.test(): failure java.lang.Error: java.util.concurrent.ExecutionException: java.lang.ClassCastException: java.util.HashMap$Node (in module: java.base) cannot be cast to java.util.HashMap$TreeNode (in module: java.base) at com.sun.tools.jdeps.DependencyFinder$TaskExecutor.waitForTasksCompleted(jdk.jdeps@9-internal/DependencyFinder.java:361) at com.sun.tools.jdeps.DependencyFinder.findDependencies(jdk.jdeps@9-internal/DependencyFinder.java:182) at com.sun.tools.jdeps.ModuleInfoBuilder.run(jdk.jdeps@9-internal/ModuleInfoBuilder.java:85) at com.sun.tools.jdeps.JdepsTask.genModuleInfo(jdk.jdeps@9-internal/JdepsTask.java:623) at com.sun.tools.jdeps.JdepsTask.run(jdk.jdeps@9-internal/JdepsTask.java:445) at com.sun.tools.jdeps.JdepsTask.run(jdk.jdeps@9-internal/JdepsTask.java:409) at com.sun.tools.jdeps.Main.run(jdk.jdeps@9-internal/Main.java:63) at GenModuleInfo.jdeps(GenModuleInfo.java:199) at GenModuleInfo.test(GenModuleInfo.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:531) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84) at org.testng.internal.Invoker.invokeMethod(Invoker.java:714) at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111) at org.testng.TestRunner.privateRun(TestRunner.java:767) at org.testng.TestRunner.run(TestRunner.java:617) at org.testng.SuiteRunner.runTest(SuiteRunner.java:334) at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291) at org.testng.SuiteRunner.run(SuiteRunner.java:240) at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86) at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224) at org.testng.TestNG.runSuitesLocally(TestNG.java:1149) at org.testng.TestNG.run(TestNG.java:1057) at com.sun.javatest.regtest.TestNGAction$TestNGRunner.main(TestNGAction.java:220) at sun.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:531) at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:226) at java.lang.Thread.run(java.base@9-internal/Thread.java:804) Caused by: java.util.concurrent.ExecutionException: java.lang.ClassCastException: java.util.HashMap$Node (in module: java.base) cannot be cast to java.util.HashMap$TreeNode (in module: java.base) at java.util.concurrent.FutureTask.report(java.base@9-internal/FutureTask.java:123) at java.util.concurrent.FutureTask.get(java.base@9-internal/FutureTask.java:193) at com.sun.tools.jdeps.DependencyFinder$TaskExecutor.waitForTasksCompleted(jdk.jdeps@9-internal/DependencyFinder.java:358) ... 36 more Caused by: java.lang.ClassCastException: java.util.HashMap$Node (in module: java.base) cannot be cast to java.util.HashMap$TreeNode (in module: java.base) at java.util.HashMap$TreeNode.moveRootToFront(java.base@9-internal/HashMap.java:1879) at java.util.HashMap$TreeNode.treeify(java.base@9-internal/HashMap.java:1996) at java.util.HashMap.treeifyBin(java.base@9-internal/HashMap.java:771) at java.util.HashMap.putVal(java.base@9-internal/HashMap.java:643) at java.util.HashMap.put(java.base@9-internal/HashMap.java:611) at com.sun.tools.classfile.Dependencies$BasicDependencyFinder.getLocation(jdk.jdeps@9-internal/Dependencies.java:569) at com.sun.tools.classfile.Dependencies$BasicDependencyFinder$Visitor.<init>(jdk.jdeps@9-internal/Dependencies.java:581) at com.sun.tools.classfile.Dependencies$ClassDependencyFinder.findDependencies(jdk.jdeps@9-internal/Dependencies.java:471) at com.sun.tools.jdeps.DependencyFinder$TaskExecutor$1.call(jdk.jdeps@9-internal/DependencyFinder.java:310) at com.sun.tools.jdeps.DependencyFinder$TaskExecutor$1.call(jdk.jdeps@9-internal/DependencyFinder.java:287) at java.util.concurrent.FutureTask.run(java.base@9-internal/FutureTask.java:266) at java.util.concurrent.Executors$RunnableAdapter.call(java.base@9-internal/Executors.java:514) at java.util.concurrent.FutureTask.run(java.base@9-internal/FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@9-internal/ThreadPoolExecutor.java:1158) at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@9-internal/ThreadPoolExecutor.java:632) ... 1 more =============================================== tools/jdeps/modules/GenModuleInfo.java Total tests run: 2, Failures: 1, Skips: 0 =============================================== ----------System.err:(39/1960)---------- jdeps [-cp, libs/m1.jar, libs/m2.jar, libs/m3.jar, libs/unsupported.jar] m2.jar -> java.base m2.jar -> libs/m1.jar p2 (m2.jar) -> java.lang -> p1 m1.jar p2.internal (m2.jar) -> java.io -> java.lang m3.jar -> java.base m3.jar -> java.logging m3.jar -> java.sql m3.jar -> libs/m1.jar m3.jar -> libs/m2.jar p3 (m3.jar) -> java.lang -> java.sql -> java.util.logging -> p1 m1.jar -> p2 m2.jar -> p2.internal m2.jar unsupported.jar -> java.base q (unsupported.jar) -> java.lang -> jdk.internal.perf JDK internal API (java.base) jdeps [-genmoduleinfo, moduleinfosrc, libs/m1.jar, libs/m2.jar, libs/m3.jar, libs/unsupported.jar] java.lang.Exception: failures: 1 at com.sun.javatest.regtest.TestNGAction$TestNGRunner.main(TestNGAction.java:223) at sun.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:531) at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:226) at java.lang.Thread.run(java.base@9-internal/Thread.java:804)

    JDK Bug System | 8 months ago | Amy Lu
    java.lang.Error: java.util.concurrent.ExecutionException: java.lang.ClassCastException: java.util.HashMap$Node (in module: java.base) cannot be cast to java.util.HashMap$TreeNode (in module: java.base) at com.sun.tools.jdeps.DependencyFinder$TaskExecutor.waitForTasksCompleted(jdk.jdeps@9-internal/DependencyFinder.java:361) at com.sun.tools.jdeps.DependencyFinder.findDependencies(jdk.jdeps@9-internal/DependencyFinder.java:182) at com.sun.tools.jdeps.ModuleInfoBuilder.run(jdk.jdeps@9-internal/ModuleInfoBuilder.java:85) at com.sun.tools.jdeps.JdepsTask.genModuleInfo(jdk.jdeps@9-internal/JdepsTask.java:623) at com.sun.tools.jdeps.JdepsTask.run(jdk.jdeps@9-internal/JdepsTask.java:445) at com.sun.tools.jdeps.JdepsTask.run(jdk.jdeps@9-internal/JdepsTask.java:409) at com.sun.tools.jdeps.Main.run(jdk.jdeps@9-internal/Main.java:63)
  3. 0

    How to get sample from twitter stream and print to screen

    Stack Overflow | 4 years ago | screechOwl
    java.lang.Error: Unresolved compilation problems: Syntax error on token(s), misplaced construct(s) Syntax error on token "setDebugEnabled", = expected after this token at tweet1.ConfigurationBuilder.&lt;init&gt;(ConfigurationBuilder.java:9)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    log file deletion issue in emebedded mode

    Google Groups | 9 years ago | Dhruv Patel
    org.h2.jdbc.JdbcSQLException: General error: java.lang.Error: rowCount expected 10 got 9 [50000-66]
  6. 0

    Error when calling getLocalSocketAddress() on for a newly created socket

    Oracle Community | 4 years ago | user6394230
    java.lang.Error: java.net.SocketException: Bad file number (errno:9)

    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.Error

      Error during hash calculation at sun.security.ssl.HandshakeHash.getFinishedHash(java.base@9-ea/HandshakeHash.java:358) at sun.security.ssl.HandshakeMessage$Finished.getFinished(java.base@9-ea/HandshakeMessage.java:2331) at sun.security.ssl.HandshakeMessage$Finished.<init>(java.base@9-ea/HandshakeMessage.java:2278) at sun.security.ssl.ClientHandshaker.sendChangeCipherAndFinish(java.base@9-ea/ClientHandshaker.java:1328) at sun.security.ssl.ClientHandshaker.serverHelloDone(java.base@9-ea/ClientHandshaker.java:1240) at sun.security.ssl.ClientHandshaker.processMessage(java.base@9-ea/ClientHandshaker.java:414) at sun.security.ssl.Handshaker.processLoop(java.base@9-ea/Handshaker.java:1061) at sun.security.ssl.Handshaker.processRecord(java.base@9-ea/Handshaker.java:995) at sun.security.ssl.SSLSocketImpl.processInputRecord(java.base@9-ea/SSLSocketImpl.java:1132) at sun.security.ssl.SSLSocketImpl.readRecord(java.base@9-ea/SSLSocketImpl.java:1069) at sun.security.ssl.SSLSocketImpl.readRecord(java.base@9-ea/SSLSocketImpl.java:968) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(java.base@9-ea/SSLSocketImpl.java:1395) at sun.security.ssl.SSLSocketImpl.startHandshake(java.base@9-ea/SSLSocketImpl.java:1422) at sun.security.ssl.SSLSocketImpl.startHandshake(java.base@9-ea/SSLSocketImpl.java:1406) at sun.net.www.protocol.https.HttpsClient.afterConnect(java.base@9-ea/HttpsClient.java:558) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(java.base@9-ea/AbstractDelegateHttpsURLConnection.java:185) at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(java.base@9-ea/HttpURLConnection.java:1505) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(java.base@9-ea/HttpURLConnection.java:1433) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(java.base@9-ea/HttpsURLConnectionImpl.java:235)

      at jdk9httpconnection.JDK9httpConnection.main()
    2. jdk9httpconnection
      JDK9httpConnection.main
      1. jdk9httpconnection.JDK9httpConnection.main(JDK9httpConnection.java:36)
      1 frame