cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <>
Subject [jira] [Commented] (CXF-6099) endpoint responses gets truncated or blocked when writing soap messages with a size around 14K since we have upgraded to jdk8
Date Wed, 12 Nov 2014 16:53:34 GMT


Daniel Kulp commented on CXF-6099:

I'm not able to reproduce with:

java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

I even increased it up to 31850  and the client doesn't "hang".

That said, there is an issue.   The response SHOULD be coming back chunked and it's not. 
I'm seeing the full "Content-Length: 785382" (when using 31850) on the response which is definitely
a performance issue.   I'm going to look more into that, but any information on how to reproduce
would be useful.

> endpoint responses gets truncated or blocked when writing soap messages with a size around
14K since we have upgraded to jdk8
> -----------------------------------------------------------------------------------------------------------------------------
>                 Key: CXF-6099
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime, JAXB Databinding
>    Affects Versions: 3.0.2
>         Environment: SO: Windows 7, linux fedora distribution.
> JVM: jdk8
>            Reporter: Sergio Santa
>              Labels: cxf-frontend, java8, jax-ws,, jaxb, jdk8
>         Attachments: client_fail.png, client_success.png,
> After upgrading to java 8 we are having an issue when our endpoint is sending the responses
to client. After digging into it, I realized that the endpoint on server side truncates or
gets blocked when writing a SOAP message bigger 14KB (approximately).
> The client reaches a timeout throwing the following exception:
> WARNING: Interceptor for {http://message.test/}IMessageTestService#{http://message.test/}runTestMethod
has thrown exception, unwinding now
> org.apache.cxf.interceptor.Fault: Unmarshalling Error: Read timed out 
> 	at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(
> 	at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(
> 	at
> 	at org.apache.cxf.wsdl.interceptors.DocLiteralInInterceptor.handleMessage(
> 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
> 	at org.apache.cxf.endpoint.ClientImpl.onMessage(
> 	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(
> 	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(
> 	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(
> 	at org.apache.cxf.transport.AbstractConduit.close(
> 	at org.apache.cxf.transport.http.HTTPConduit.close(
> 	at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(
> 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
> 	at org.apache.cxf.endpoint.ClientImpl.doInvoke(
> 	at org.apache.cxf.endpoint.ClientImpl.invoke(
> 	at org.apache.cxf.endpoint.ClientImpl.invoke(
> 	at org.apache.cxf.endpoint.ClientImpl.invoke(
> 	at org.apache.cxf.frontend.ClientProxy.invokeSync(
> 	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(
> 	at com.sun.proxy.$Proxy41.runTestMethod(Unknown Source)
> 	at test.message.client.TestClient.testWebservice(
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> 	at java.lang.reflect.Method.invoke(
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
> 	at
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(
> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(
> 	at org.junit.internal.runners.statements.RunBefores.evaluate(
> 	at org.junit.runners.ParentRunner.runLeaf(
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(
> 	at org.junit.runners.ParentRunner$
> 	at org.junit.runners.ParentRunner$1.schedule(
> 	at org.junit.runners.ParentRunner.runChildren(
> 	at org.junit.runners.ParentRunner.access$000(
> 	at org.junit.runners.ParentRunner$2.evaluate(
> 	at
> 	at
> 	at
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
> 	at
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(
> Caused by: javax.xml.bind.UnmarshalException
>  - with linked exception:
> [com.ctc.wstx.exc.WstxIOException: Read timed out]
> Attached Unit test  where  the issue can be reproduced easily.
> Is there any maximum size for the SOAP Messages?
> Same code was working on a previous JVM. (jdk6) 
> Not sure whether is a bug or not, but it stop working with java 8.
> I would appreciate your help.
> Thanks in advance.

This message was sent by Atlassian JIRA

View raw message