You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Abhishek Kumar <ab...@gmail.com> on 2005/07/21 07:33:47 UTC

Problem in 2nd call to a web service

Hi,

I have created an axis client for a web service(c++). 
I have created the client stub classes by using wsdl2java.
When i am calling the  web service method for the first time its
working fine. But using the same instance for the stub fro calling the
method for second time its giving following error:


%% Client cached [Session-1, SSL_RSA_WITH_RC4_128_MD5]
%% Try resuming [Session-1, SSL_RSA_WITH_RC4_128_MD5] from port 1644
*** ClientHello, TLSv1
RandomCookie:  GMT: 1105074006 bytes = { 231, 193, 177, 81, 114, 14,
233, 163, 247, 219, 190, 213, 123, 194, 36, 181, 151, 190, 192, 53,
46, 237, 236, 97, 6, 41, 35, 248 }
Session ID:  {5, 31, 133, 128, 219, 187, 208, 78, 96, 94, 111, 121,
235, 186, 83, 24, 252, 62, 122, 251, 147, 88, 170, 70, 67, 98, 198, 8,
255, 230, 232, 2}
Cipher Suites: [SSL_RSA_WITH_RC4_128_MD5, SSL_RSA_WITH_RC4_128_SHA,
TLS_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA,
TLS_DHE_DSS_WITH_AES_128_CBC_SHA, SSL_RSA_WITH_3DES_EDE_CBC_SHA,
SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA,
SSL_RSA_WITH_DES_CBC_SHA, SSL_DHE_RSA_WITH_DES_CBC_SHA,
SSL_DHE_DSS_WITH_DES_CBC_SHA, SSL_RSA_EXPORT_WITH_RC4_40_MD5,
SSL_RSA_EXPORT_WITH_DES40_CBC_SHA,
SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA,
SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA]
Compression Methods:  { 0 }
***
[write] MD5 and SHA1 hashes:  len = 105
0000: 01 00 00 65 03 01 42 DE   17 56 E7 C1 B1 51 72 0E  ...e..B..V...Qr.
0010: E9 A3 F7 DB BE D5 7B C2   24 B5 97 BE C0 35 2E ED  ........$....5..
0020: EC 61 06 29 23 F8 20 05   1F 85 80 DB BB D0 4E 60  .a.)#. .......N`
0030: 5E 6F 79 EB BA 53 18 FC   3E 7A FB 93 58 AA 46 43  ^oy..S..>z..X.FC
0040: 62 C6 08 FF E6 E8 02 00   1E 00 04 00 05 00 2F 00  b............./.
0050: 33 00 32 00 0A 00 16 00   13 00 09 00 15 00 12 00  3.2.............
0060: 03 00 08 00 14 00 11 01   00                       .........
main, WRITE: TLSv1 Handshake, length = 105
[Raw write]: length = 110
0000: 16 03 01 00 69 01 00 00   65 03 01 42 DE 17 56 E7  ....i...e..B..V.
0010: C1 B1 51 72 0E E9 A3 F7   DB BE D5 7B C2 24 B5 97  ..Qr.........$..
0020: BE C0 35 2E ED EC 61 06   29 23 F8 20 05 1F 85 80  ..5...a.)#. ....
0030: DB BB D0 4E 60 5E 6F 79   EB BA 53 18 FC 3E 7A FB  ...N`^oy..S..>z.
0040: 93 58 AA 46 43 62 C6 08   FF E6 E8 02 00 1E 00 04  .X.FCb..........
0050: 00 05 00 2F 00 33 00 32   00 0A 00 16 00 13 00 09  .../.3.2........
0060: 00 15 00 12 00 03 00 08   00 14 00 11 01 00        ..............
main, received EOFException: error
main, handling exception: javax.net.ssl.SSLHandshakeException: Remote
host closed connection during handshake
main, SEND TLSv1 ALERT:  fatal, description = handshake_failure
main, WRITE: TLSv1 Alert, length = 2
[Raw write]: length = 7
0000: 15 03 01 00 02 02 28                               ......(
main, called closeSocket()
Finalizer, called close()
Finalizer, called closeInternal(true)
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: javax.net.ssl.SSLHandshakeException: Remote host closed
connection during handshake
 faultActor: 
 faultNode: 
 faultDetail: 
        {http://xml.apache.org/axis/}stackTrace:javax.net.ssl.SSLHandshakeException:
Remote host closed connection during handshake
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:739)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1025)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1038)
        at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186)
        at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:130)
        at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:380)
        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:88)
        at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:147)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2735)
        at org.apache.axis.client.Call.invoke(Call.java:2718)
        at org.apache.axis.client.Call.invoke(Call.java:2394)
        at org.apache.axis.client.Call.invoke(Call.java:2317)
        at org.apache.axis.client.Call.invoke(Call.java:1774)
        at proxy.axis.SessionManagerBindingStub.sessionPing(SessionManagerBindingStub.java:607)
        at edaclientemulator.proxy.SessionManager.sessionPing(SessionManager.java:102)
        at edaclientemulator.Main.main(Main.java:72)
Caused by: java.io.EOFException: SSL peer shut down incorrectly
        at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:321)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:720)
        ... 18 more

        {http://xml.apache.org/axis/}hostname:HDCHCTDPMT1716

javax.net.ssl.SSLHandshakeException: Remote host closed connection
during handshake
        at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:97)
        at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:147)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2735)
        at org.apache.axis.client.Call.invoke(Call.java:2718)
        at org.apache.axis.client.Call.invoke(Call.java:2394)
        at org.apache.axis.client.Call.invoke(Call.java:2317)
        at org.apache.axis.client.Call.invoke(Call.java:1774)
        at proxy.axis.SessionManagerBindingStub.sessionPing(SessionManagerBindingStub.java:607)
        at edaclientemulator.proxy.SessionManager.sessionPing(SessionManager.java:102)
        at edaclientemulator.Main.main(Main.java:72)
Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed
connection during handshake
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:739)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1025)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1038)
        at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186)
        at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:130)
        at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:380)
        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:88)
        ... 12 more
Caused by: java.io.EOFException: SSL peer shut down incorrectly
        at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:321)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:720)
        ... 18 more





>From the error i can make out that the web service is not recognising
the cached client session by axis. I want to disable this. can anybody
tell how to do this??
I tried setmantainedSession(false) for stub. but of no use.

Regards
Abhishek Kumar
HCL TECHNOLOGIES LTD.