This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Use javax.net.ssl.SSLEngine for NIO


Just trying to create a plain socket connection using SSL and getting the exception telling me to use NIO. 
I google it and found that a bug was created --- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34313

Is there anybody? who has successfully implemented SSL using SSLSocket or SSLEngine with GCJ 4.3 (Jessie)?

It look like that new api is completely unusable - I tried using SSL Engine got the null pointer exception, tried with SSL Socket - was told by the exception to use SSL Engine -- 

By the way the code I am testing with works with Java5  -- both with SSLSocket and SSLEngine. 

Exceptions: 
1)
java.lang.UnsupportedOperationException: use javax.net.ssl.SSLEngine for NIO 
caused by java.lang.UnsupportedOperationException: use javax.net.ssl.SSLEngine 
for NIO 

2)
java.lang.CloneNotSupportedException 
at java.lang.Object.clone 
at gnu.javax.net.ssl.provider.SSLEngineImpl.setEnabledProtocols


      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]