-
Bug
-
Resolution: Fixed
-
P2
-
OpenJDK6, 7
-
b126
-
b138
-
generic, x86, sparc
-
generic, solaris
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2208422 | OpenJDK6 | Unassigned | P3 | Closed | Won't Fix |
Tests
sun/management/jmxremote/bootstrap/RmiRegistrySslTest.sh
sun/management/jmxremote/bootstrap/RmiSslBootstrapTest.sh
fail on specific Solaris machine starting JDK 7 b126 with
...
-------------------------------------------------------------
RmiRegistrySslTest : SSL RMIRegistry - SSL Lookup
-------------------------------------------------------------
RmiRegistry lookup...
KO: Got unexpected exception!
java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
javax.net.ssl.SSLException: Received fatal alert: internal_error
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:304)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:340)
at sun.rmi.registry.RegistryImpl_Stub.list(Unknown Source)
at RmiRegistrySslTest.main(RmiRegistrySslTest.java:75)
Caused by: javax.net.ssl.SSLException: Received fatal alert: internal_error
at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1854)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1024)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1259)
at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:677)
at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:85)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
at java.io.DataOutputStream.flush(DataOutputStream.java:123)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:229)
... 4 more
----------System.err:(20/1366)----------
Exception in thread "main" java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
javax.net.ssl.SSLException: Received fatal alert: internal_error
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:304)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:340)
at sun.rmi.registry.RegistryImpl_Stub.list(Unknown Source)
at RmiRegistrySslTest.main(RmiRegistrySslTest.java:75)
Caused by: javax.net.ssl.SSLException: Received fatal alert: internal_error
at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1854)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1024)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1259)
at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:677)
at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:85)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
at java.io.DataOutputStream.flush(DataOutputStream.java:123)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:229)
... 4 more
result: Failed. Execution failed: exit code 1
These tests are part of JDK workspace (look under jdk/test/sun/management/jmxremote/bootstrap/). The test verifies that RMI registry over SSL works. There is no separate peer - everything is done in one Java VM, the code for server part is in in JDK. jdk/src/share/classes/javax/rmi/ssl/SslRMIClientSocketFactory.java creates SSLSocketFactory, RMI writes few bytes to socket output stream and flushes it (sun/rmi/transport/tcp/TCPChannel.java:229).
Adding -Dcom.sun.net.ssl.enableECC=false makes the test pass.
sun/management/jmxremote/bootstrap/RmiRegistrySslTest.sh
sun/management/jmxremote/bootstrap/RmiSslBootstrapTest.sh
fail on specific Solaris machine starting JDK 7 b126 with
...
-------------------------------------------------------------
RmiRegistrySslTest : SSL RMIRegistry - SSL Lookup
-------------------------------------------------------------
RmiRegistry lookup...
KO: Got unexpected exception!
java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
javax.net.ssl.SSLException: Received fatal alert: internal_error
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:304)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:340)
at sun.rmi.registry.RegistryImpl_Stub.list(Unknown Source)
at RmiRegistrySslTest.main(RmiRegistrySslTest.java:75)
Caused by: javax.net.ssl.SSLException: Received fatal alert: internal_error
at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1854)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1024)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1259)
at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:677)
at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:85)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
at java.io.DataOutputStream.flush(DataOutputStream.java:123)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:229)
... 4 more
----------System.err:(20/1366)----------
Exception in thread "main" java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
javax.net.ssl.SSLException: Received fatal alert: internal_error
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:304)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:340)
at sun.rmi.registry.RegistryImpl_Stub.list(Unknown Source)
at RmiRegistrySslTest.main(RmiRegistrySslTest.java:75)
Caused by: javax.net.ssl.SSLException: Received fatal alert: internal_error
at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1854)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1024)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1259)
at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:677)
at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:85)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
at java.io.DataOutputStream.flush(DataOutputStream.java:123)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:229)
... 4 more
result: Failed. Execution failed: exit code 1
These tests are part of JDK workspace (look under jdk/test/sun/management/jmxremote/bootstrap/). The test verifies that RMI registry over SSL works. There is no separate peer - everything is done in one Java VM, the code for server part is in in JDK. jdk/src/share/classes/javax/rmi/ssl/SslRMIClientSocketFactory.java creates SSLSocketFactory, RMI writes few bytes to socket output stream and flushes it (sun/rmi/transport/tcp/TCPChannel.java:229).
Adding -Dcom.sun.net.ssl.enableECC=false makes the test pass.
- backported by
-
JDK-2208422 javax.net.ssl.SSLException: Received fatal alert: internal_error starting JDK 7 b126
-
- Closed
-
- duplicates
-
JDK-7011238 pit jdk7 b126 sqe test src/jhttp/http/JhttpClient4001 fails on solaris platform.
-
- Closed
-
-
JDK-7016003 OpenDS fails to start up on Solaris starting JDK 7 b126
-
- Closed
-
-
JDK-7017521 jdk7 b128 many reg tests fail ex. jdk/test/com/sun/net/httpserver Test6a.java fails on solaris-amd64
-
- Closed
-
-
JDK-7032257 Testcase failures: sun/security/pkcs11/ec/ReadCertificates.java
-
- Closed
-