You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "P.N." <pe...@gmx.de> on 2009/12/03 11:12:32 UTC
Axis2 ADB/POJO client and SSL problem
Hello!
I've created a web service client (from WSDL, using ADB). I've set the
following system properties:
javax.net.ssl.keyStore
javax.net.ssl.keyStoreType = JKS
javax.net.ssl.keyStorePassword
javax.net.ssl.trustStore
javax.net.ssl.trustStoreType = JKS
javax.net.ssl.trustStorePassword
When I want to run the client, I'm getting the following message:
org.apache.axis2.AxisFault: Transport error: 501 Error: Not Implemented
at
org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:295)
at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:190)
at
org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:389)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:222)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:402)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at
com.semiramis.webservices._2006_01.export.extended.mde_0901.ExportSoapBindingStub.export(ExportSoapBindingStub.java:123)
at
com.dvb.app.ws.client.export.ExportClient.<init>(ExportClient.java:66)
at
com.dvb.app.ws.client.export.ExportClient.main(ExportClient.java:41)
Additional information with javax.net.debug=true:
[snip: hexadecimal dump, containing also '</soapenv:Envelope>']
main, WRITE: TLSv1 Application Data, length = 640
[Raw write]: length = 645
[snip: hexadecimal dump]
main, handling exception: java.net.SocketException: Software caused
connection abort: recv failed
%% Invalidated: [Session-1, SSL_RSA_WITH_RC4_128_MD5]
main, SEND TLSv1 ALERT: fatal, description = unexpected_message
Padded plaintext before ENCRYPTION: len = 18
0000: 02 0A B2 3E AB 3E A0 73 ED 12 BC 8C C7 47 9A F5 ...>.>.s.....G..
0010: 99 76 .v
main, WRITE: TLSv1 Alert, length = 18
main, Exception sending alert: java.net.SocketException: Software caused
connection abort: socket write error
IMHO, it looks like the problem occurred probably after transmission of
data. tcldump seems to have a problem with SSL, cannot see the data
transmitted.
Kind regards
Peter
Re: Axis2 ADB/POJO client and SSL problem
Posted by Thilina Mahesh Buddhika <th...@gmail.com>.
Hi Peter,
This error occurs mainly due to invalid trust-store properties. Make sure
the keystore pointed by the property "javax.net.ssl.trustStore" contains the
public cert. of the recipient.
Thanks.
/thilina
Thilina Mahesh Buddhika
http://blog.thilinamb.com
On Thu, Dec 3, 2009 at 3:42 PM, P.N. <pe...@gmx.de> wrote:
>
> Hello!
>
> I've created a web service client (from WSDL, using ADB). I've set the
> following system properties:
> javax.net.ssl.keyStore
> javax.net.ssl.keyStoreType = JKS
> javax.net.ssl.keyStorePassword
> javax.net.ssl.trustStore
> javax.net.ssl.trustStoreType = JKS
> javax.net.ssl.trustStorePassword
>
>
> When I want to run the client, I'm getting the following message:
>
>
> org.apache.axis2.AxisFault: Transport error: 501 Error: Not Implemented
> at
> org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:295)
> at
> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:190)
> at
> org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:389)
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:222)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
> at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:402)
> at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
> at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
> at
> com.semiramis.webservices._2006_01.export.extended.mde_0901.ExportSoapBindingStub.export(ExportSoapBindingStub.java:123)
> at
> com.dvb.app.ws.client.export.ExportClient.<init>(ExportClient.java:66)
> at
> com.dvb.app.ws.client.export.ExportClient.main(ExportClient.java:41)
>
>
> Additional information with javax.net.debug=true:
>
> [snip: hexadecimal dump, containing also '</soapenv:Envelope>']
> main, WRITE: TLSv1 Application Data, length = 640
> [Raw write]: length = 645
> [snip: hexadecimal dump]
> main, handling exception: java.net.SocketException: Software caused
> connection abort: recv failed
> %% Invalidated: [Session-1, SSL_RSA_WITH_RC4_128_MD5]
> main, SEND TLSv1 ALERT: fatal, description = unexpected_message
> Padded plaintext before ENCRYPTION: len = 18
> 0000: 02 0A B2 3E AB 3E A0 73 ED 12 BC 8C C7 47 9A F5 ...>.>.s.....G..
> 0010: 99 76 .v
> main, WRITE: TLSv1 Alert, length = 18
> main, Exception sending alert: java.net.SocketException: Software caused
> connection abort: socket write error
>
>
> IMHO, it looks like the problem occurred probably after transmission of
> data. tcldump seems to have a problem with SSL, cannot see the data
> transmitted.
>
>
> Kind regards
>
> Peter
>
>