cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krishnamoorthy (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-5297) SSL - POST and Close Notify same time
Date Fri, 27 Sep 2013 13:11:02 GMT

    [ https://issues.apache.org/jira/browse/CXF-5297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13779903#comment-13779903
] 

Krishnamoorthy commented on CXF-5297:
-------------------------------------

Thanks for your response.. tried with cxf-2.7.5. Still getting same problem..    "1.7.0_21"
is the java version used.. in the TCP trace.. after ssl handshake, there is time delay (more
than 60 sec) to POST application request data.. I think, that caused the issue.. but i'm not
sure where is the actual delay (client/server)..  is the default 60 sec for Receive Timeout
not enough?



|Time     | 192.168.173.113                       |
|         |                   | 64.62.82.217      |                   
|195.252  |         40439 > https [SYN]           |TCP: 40439 > https [SYN] Seq=0 Win=5840
Len=0 MSS=1460 SACK_PERM=1 TSval=260266474 TSecr=0 WS=128
|         |(40439)  ------------------>  (443)    |
|198.244  |         40439 > https [SYN]           |TCP: 40439 > https [SYN] Seq=0 Win=5840
Len=0 MSS=1460 SACK_PERM=1 TSval=260269474 TSecr=0 WS=128
|         |(40439)  ------------------>  (443)    |
|204.244  |         40439 > https [SYN]           |TCP: 40439 > https [SYN] Seq=0 Win=5840
Len=0 MSS=1460 SACK_PERM=1 TSval=260275474 TSecr=0 WS=128
|         |(40439)  ------------------>  (443)    |
|216.253  |         40439 > https [SYN]           |TCP: 40439 > https [SYN] Seq=0 Win=5840
Len=0 MSS=1460 SACK_PERM=1 TSval=260287474 TSecr=0 WS=128
|         |(40439)  ------------------>  (443)    |
|216.338  |         https > 40439 [SYN,           |TCP: https > 40439 [SYN, ACK] Seq=0
Ack=1 Win=4344 Len=0 MSS=1380 SACK_PERM=1 TSval=501790068 TSecr=260266474 WS=128
|         |(40439)  <------------------  (443)    |
|216.338  |         40439 > https [ACK]           |TCP: 40439 > https [ACK] Seq=1 Ack=1
Win=5888 Len=0 TSval=260287559 TSecr=501790068
|         |(40439)  ------------------>  (443)    |
|216.342  |         Client Hello                  |TLSv1: Client Hello
|         |(40439)  ------------------>  (443)    |
|216.425  |         https > 40439 [ACK]           |TCP: https > 40439 [ACK] Seq=1 Ack=257
Win=5504 Len=0 TSval=501790090 TSecr=260287561
|         |(40439)  <------------------  (443)    |
|216.426  |         Server Hello, Chang           |TLSv1: Server Hello, Change Cipher Spec,
Finished
|         |(40439)  <------------------  (443)    |
|216.427  |         40439 > https [ACK]           |TCP: 40439 > https [ACK] Seq=257
Ack=134 Win=6912 Len=0 TSval=260287647 TSecr=501790090
|         |(40439)  ------------------>  (443)    |
|216.428  |         Change Cipher Spec            |TLSv1: Change Cipher Spec
|         |(40439)  ------------------>  (443)    |
|216.428  |         Finished  |                   |TLSv1: Finished
|         |(40439)  ------------------>  (443)    |
|276.430  |         [SSL segment of a r           |TLSv1: [SSL segment of a reassembled PDU]
|         |(40439)  ------------------>  (443)    |
|276.430  |         POST /Payme           |TLSv1: POST /PaymentsAPI/TransactionProcessing
HTTP/1.1 , Alert (Level: Warning, Description: Close Notify)
|         |(40439)  ------------------>  (443)    |
|276.510  |         https > 40439 [ACK]           |TCP: https > 40439 [ACK] Seq=134
Ack=1789 Win=8192 Len=0 TSval=501805110 TSecr=260347650
|         |(40439)  <------------------  (443)    |
|276.510  |         https > 40439 [FIN,           |TCP: https > 40439 [FIN, ACK] Seq=134
Ack=1789 Win=8192 Len=0 TSval=501805110 TSecr=260347650
|         |(40439)  <------------------  (443)    |
|276.510  |         40439 > https [ACK]           |TCP: 40439 > https [ACK] Seq=1789
Ack=135 Win=6912 Len=0 TSval=260347735 TSecr=501805110
|         |(40439)  ------------------>  (443)    |
 
                
> SSL - POST and Close Notify same time
> -------------------------------------
>
>                 Key: CXF-5297
>                 URL: https://issues.apache.org/jira/browse/CXF-5297
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.4.10
>         Environment: Linux
>            Reporter: Krishnamoorthy
>             Fix For: NeedMoreInfo
>
>
> SSL - Couldn't send message. 
> In the TCP trace, POST and Close Notify has been sent at same time.. 
> No.     Time        Source                Destination           Protocol Length Info
>      71 276.429830  192.168.154.173       64.82.97.217          TLSv1    186    POST
/PaymentsAPI/Transaction HTTP/1.1 , Alert (Level: Warning, Description: Close Notify)
> Exception: 
> javax.xml.ws.WebServiceException
> 	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:144)
> 	at com.sun.proxy.$Proxy115.balanceEnquiry(Unknown Source)
> 	at net.shazam.service.mobile.RegistryLoginHelper.getCardInquiryByCardRegistration(RegistryLoginHelper.java:152)
> 	at net.shazam.service.mobile.RegistryLoginHelper.getAggregators(RegistryLoginHelper.java:93)
> 	at net.shazam.service.mobile.RegistryServiceImpl.login(RegistryServiceImpl.java:209)
> 	at sun.reflect.GeneratedMethodAccessor353.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:601)
> 	at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
> 	at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
> 	at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.invoke(AbstractJAXWSMethodInvoker.java:178)
> 	at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:68)
> 	at net.shazam.service.framework.BeanValidationInvoker.invoke(BeanValidationInvoker.java:76)
> 	at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:75)
> 	at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> 	at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
> 	at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:107)
> 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
> 	at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
> 	at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:355)
> 	at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:319)
> 	at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:72)
> 	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1074)
> 	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1010)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
> 	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
> 	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
> 	at org.eclipse.jetty.server.Server.handle(Server.java:365)
> 	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)
> 	at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:937)
> 	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:998)
> 	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:856)
> 	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
> 	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
> 	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:627)
> 	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:51)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
> 	at java.lang.Thread.run(Thread.java:722)
> Caused by: java.net.SocketException
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
> 	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1338)
> 	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1322)
> 	at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
> 	at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:622)
> 	at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
> 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
> 	at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:530)
> 	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:463)
> 	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:366)
> 	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:319)
> 	at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
> 	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:133)
> 	... 41 more
> Caused by: java.net.SocketException
> 	at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:718)
> 	at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:579)
> 	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1322)
> 	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)
> 	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)
> 	at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream.getResponseCode(URLConnectionHTTPConduit.java:260)
> 	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1517)
> 	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1490)
> 	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1309)
> 	... 51 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message