Getting the following exception with the gcj4.3.0 The code is not using any nio - but Jessie is and due to which I am getting this exception. The same code does work with openjdk. error pre-initialising SSL for JNDI connection: javax.naming.NamingException: error pre-initialising SSL for JNDI connection: java.lang.UnsupportedOperationException: use javax.net.ssl.SSLEngine for NIO caused by java.lang.UnsupportedOperationException: use javax.net.ssl.SSLEngine for NIO javax.naming.NamingException: error pre-initialising SSL for JNDI connection: javax.naming.NamingException: error pre-initialising SSL for JNDI connection: java.lang.UnsupportedOperationException: use javax.net.ssl.SSLEngine for NIO caused by java.lang.UnsupportedOperationException: use javax.net.ssl.SSLEngine for NIO caused by javax.naming.NamingException: error pre-initialising SSL for JNDI connection: java.lang.UnsupportedOperationException: use javax.net.ssl.SSLEngine for NIO caused by java.lang.UnsupportedOperationException: use javax.net.ssl.SSLEngine for NIO
Jessie is not using NIO. At least, it shouldn't be. Something is calling 'getChannel' on an SSLSocket, which doesn't make sense (you cannot use SSL that way). The JDK returns 'null' if you call getChannel on an SSLSocket, but Jessie throws that exception. The fix is to change the method gnu.javax.net.ssl.provider.SSLSocketImpl.getChannel to return 'null' instead of throwing that exception.
Closing as won't fix as libgcj (and the java front-end) has been removed from the trunk.
No reproducer.