Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Write Channel Closed, possible SSL handshaking or trust failure

16 views
Skip to first unread message

lvrao

unread,
Sep 28, 2006, 2:55:06 PM9/28/06
to
I'm trying to call a webservice over SSL from an ejb on Weblogic 7.0
sp1. As the default weblogic issued certificate had expired, created a
new one and added into keystore [ cacerts ].

WL start up command line options,

set
JAVA_OPTIONS=-Dcommerce.properties="%WLP_HOME%\weblogiccommerce.properties"
-Dweblogic.management.pkpassword=abc -Dweblogic.StdoutDebugEnabled=true
-Dssl.debugEaten=true
-Djavax.net.ssl.trustStore=C:\bea700\weblogic700\server\lib\cacerts
-Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol
-Djavax.net.ssl.trustStorePassword=changeit -Djavax.net.debug=true
-Dweblogic.security.SSL.ignoreHostnameVerify=true
-Dhttps.sharedsocket=true
-Dweblogic.webservice.client.ssl.strictcertchecking=false

The error which I see ..

AxisFault
faultCode: {http://xml.apache.org/axis/}Server.userException
faultString: java.io.IOException: Write Channel Closed, possible SSL
handshaking or trust failure
faultActor: null
faultDetail:
stackTrace: java.io.IOException: Write Channel Closed, possible SSL
handshaking or trust failure
at com.certicom.tls.record.WriteHandler.write(Unknown Source)
at
com.certicom.tls.interfaceimpl.TLSConnectionImpl.fireAlertSent(Unknown
Source)
at
com.certicom.tls.record.handshake.HandshakeHandler.fireAlert(Unknown
Source)
at
com.certicom.tls.record.handshake.HandshakeHandler.fireAlert(Unknown
Source)
at
com.certicom.tls.record.handshake.HandshakeHandler.handleHandshakeMessage(Unknown
Source)
at
com.certicom.tls.record.handshake.HandshakeHandler.handleHandshakeMessages(Unknown
Source)
at com.certicom.tls.record.ReadHandler.interpretContent(Unknown
Source)
at com.certicom.tls.record.ReadHandler.readRecord(Unknown Source)
at
com.certicom.tls.record.ReadHandler.readUntilHandshakeComplete(Unknown
Source)
at
com.certicom.tls.interfaceimpl.TLSConnectionImpl.completeHandshake(Unknown
Source)
at javax.net.ssl.impl.SSLSocketImpl.startHandshake(Unknown Source)
at
org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:244)
at
org.apache.axis.transport.http.HTTPSender.getSecureSocket(HTTPSender.java:156)
at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:116)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:182)
at org.apache.axis.client.Call.invokeEngine(Call.java:2113)
at org.apache.axis.client.Call.invoke(Call.java:2102)
at org.apache.axis.client.Call.invoke(Call.java:1373)
at
net.verio.powerportal.util.GMPSoapClient.invokeCall(GMPSoapClient.java:109)
at
net.verio.powerportal.util.GMPSoapClient.execute(GMPSoapClient.java:73)
at
net.verio.powerportal.ejb.ars.ARSResourceBean.getSevenSpaceFlag(ARSResourceBean.java:3420)
at
net.verio.powerportal.ejb.ars.ARSResourceBean_vdkfgg_EOImpl.getSevenSpaceFlag(ARSResourceBean_vdkfgg_EOImpl.java:802)
at
net.verio.ehip.processor.CustomerDashboardThreadProcessor.hasManagedServices(CustomerDashboardThreadProcessor.java:892)
at java.lang.reflect.Method.invoke(Native Method)
at net.verio.ehip.thread.GenericRunnable.run(GenericRunnable.java:108)
at java.lang.Thread.run(Thread.java:479)


java.io.IOException: Write Channel Closed, possible SSL handshaking or
trust failure
java.io.IOException: Write Channel Closed, possible SSL handshaking or
trust failurE

Using the same key store, the webservice can be accessed by without any
errors [ As a standalone program invoking w/s ]

Any suggestions

sti...@gmail.com

unread,
Sep 30, 2006, 2:15:41 PM9/30/06
to

lvrao skrev:

> I'm trying to call a webservice over SSL from an ejb on Weblogic 7.0
> sp1. As the default weblogic issued certificate had expired, created a
> new one and added into keystore [ cacerts ].
>
> WL start up command line options,
>
> set
> JAVA_OPTIONS=-Dcommerce.properties="%WLP_HOME%\weblogiccommerce.properties"
> -Dweblogic.management.pkpassword=abc -Dweblogic.StdoutDebugEnabled=true
> -Dssl.debugEaten=true
> -Djavax.net.ssl.trustStore=C:\bea700\weblogic700\server\lib\cacerts
> -Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol
> -Djavax.net.ssl.trustStorePassword=changeit -Djavax.net.debug=true
> -Dweblogic.security.SSL.ignoreHostnameVerify=true
> -Dhttps.sharedsocket=true
> -Dweblogic.webservice.client.ssl.strictcertchecking=false
>
> The error which I see ..
>
> AxisFault
> faultCode: {http://xml.apache.org/axis/}Server.userException
> faultString: java.io.IOException: Write Channel Closed, possible SSL
> handshaking or trust failure
>...

Dear Sir,

I've been into that a couple of times... Looks like something could be
wrong with the SSL setup. I'd recommend you to check the server initial
startup trace (enable it is not already the case), where the server
usually complains about certificate problems - or confirms that the
certificate is in place.

Best of luck!

/www.seniorconsultant.co.uk

0 new messages