java.sql.SQLException: The Network Adapter could not establish the connection

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Artur Nowak's headdump
    via by Unknown author,
  • Some tests in the testsuite are failing due to IBM JDK not supporting the SSLv2Hello protocol: 15:10:46,727 ERROR [AbstractKernelController] Error installing to Start: name=jboss:service=invoker,socketType=SSLSocketFactory,type=jrmp,wantsClientAuth=true state=Create mode=Manual requiredState=Installed java.lang.IllegalArgumentException: SSLv2Hello at com.ibm.jsse2.mb.a(mb.java:24) at com.ibm.jsse2.lb.<init>(lb.java:41) at com.ibm.jsse2.hc.setEnabledProtocols(hc.java:57) at org.jboss.security.ssl.DomainServerSocketFactory.createServerSocket(DomainServerSocketFactory.java:267) at org.jboss.security.ssl.DomainServerSocketFactory.createServerSocket(DomainServerSocketFactory.java:226) at org.jboss.security.ssl.RMISSLServerSocketFactory.createServerSocket(RMISSLServerSocketFactory.java:120) at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:638) at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:272) at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:219) at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:398) ... This problem was previously reported as JBPAPP-626 but never fixed. I'm creating a new JIRA since it now affects more testcases. These testcases fail: org.jboss.test.jrmp.test.CustomSocketsUnitTestCase org.jboss.test.jrmp.test.SSLFailuresSocketsUnitTestCase org.jboss.test.jrmp.test.SSLSocketsUnitTestCase org.jboss.test.pooled.test.SSLSocketsUnitTestCase We can still leave it as it is - meaning documenting these failures as known issues with IBM JDK. I just wanted to make sure we know about it.
    via by Martin Malina,
    • java.sql.SQLException: The Network Adapter could not establish the connection at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:412) at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:531) at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:221) at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:503) at java.sql.DriverManager.getConnection(DriverManager.java:562) at java.sql.DriverManager.getConnection(DriverManager.java:155) at OracleSSLTest.main(Test.java:15) Caused by: oracle.net.ns.NetException: The Network Adapter could not establish the connection at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:359) at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:422) at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:672) at oracle.net.ns.NSProtocol.connect(NSProtocol.java:237) at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1042) at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:301) ... 7 more Caused by: oracle.net.ns.NetException: The ssl protocol specified is not supported. at oracle.net.nt.TcpsConfigure.configureVersion(TcpsConfigure.java:181) at oracle.net.nt.TcpsNTAdapter.setSSLSocketOptions(TcpsNTAdapter.java:146) at oracle.net.nt.TcpsNTAdapter.connect(TcpsNTAdapter.java:121) at oracle.net.nt.ConnOption.connect(ConnOption.java:123) at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:337) ... 12 more Caused by: java.lang.IllegalArgumentException: SSLv2Hello at com.ibm.jsse2.mb.a(mb.java:6) at com.ibm.jsse2.lb.<init>(lb.java:16) at com.ibm.jsse2.jc.setEnabledProtocols(jc.java:245) at oracle.net.nt.TcpsConfigure.configureVersion(TcpsConfigure.java:177) ... 16 more
    No Bugmate found.