posted 14 years ago
I am trying to implement ssl on jacorb. I have made a HelloServer program.
It is giving me the following exception:
ERROR: org.omg.CORBA.COMM_FAILURE: IOException: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? vmcid: 0x0 minor code: 0 completed: No
0000: 47 49 4F 50 01 GIOP.
Thread-3, handling exception: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
Thread-3, SEND TLSv1 ALERT: fatal, description = unexpected_message
Thread-3, WRITE: TLSv1 Alert, length = 2
Thread-3, Exception sending alert: java.net.SocketException: Software caused connection abort: socket write error
Thread-3, called closeSocket()
main, handling exception: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
Thread-3, called close()
Thread-3, called closeInternal(true)
Thread-3, called close()
Thread-3, called closeInternal(true)
Thread-3, called close()
Thread-3, called closeInternal(true)
org.omg.CORBA.COMM_FAILURE: IOException: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? vmcid: 0x0 minor code: 0 completed: No
at org.jacorb.orb.etf.ConnectionBase.to_COMM_FAILURE(ConnectionBase.java:129)
at org.jacorb.orb.etf.StreamConnectionBase.flush(StreamConnectionBase.java:166)
at org.jacorb.orb.giop.GIOPConnection.sendMessage(GIOPConnection.java:853)
at org.jacorb.orb.giop.GIOPConnection.sendRequest(GIOPConnection.java:805)
at org.jacorb.orb.giop.ClientConnection.sendRequest(ClientConnection.java:302)
at org.jacorb.orb.giop.ClientConnection.sendRequest(ClientConnection.java:282)
at org.jacorb.orb.Delegate.invoke_internal(Delegate.java:912)
at org.jacorb.orb.Delegate.invoke(Delegate.java:857)
at org.jacorb.orb.Delegate.is_a(Delegate.java:1268)
at org.omg.CORBA.portable.ObjectImpl._is_a(Unknown Source)
at org.omg.CosNaming.NamingContextExtHelper.narrow(Unknown Source)
at HelloServer.main(HelloServer.java:99)
HelloServer Exiting ...
It gives error when I trying to:
NamingContextExt ncRef = NamingContextExtHelper.narrow(objRef);
Any pointers as to what is the root cause for this?
Regards,
Nidhi Garg