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 "Ivan (JIRA)" <ji...@apache.org> on 2011/04/02 07:33:05 UTC

[jira] [Commented] (AXIS2-4996) Exclude content-length header while chunked is enabled

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

Ivan commented on AXIS2-4996:
-----------------------------

After using soap monitor, it is caused by Axis2 or commons-httpclient. If user puts the content-length in the mime type, the Transfer-Encoding will not be added in the header, although chunked encoding is used.

> Exclude content-length header while chunked is enabled
> ------------------------------------------------------
>
>                 Key: AXIS2-4996
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4996
>             Project: Axis2
>          Issue Type: Improvement
>          Components: transports
>    Affects Versions: 1.6.0
>            Reporter: Ivan
>         Attachments: Axis2-4996.patch
>
>
> I am running Axis2 on Tomcat 7, and get some exception message saying :
> --->
> java.util.concurrent.ExecutionException: javax.xml.ws.soap.SOAPFaultException: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'f' (code 102) in prolog; expected '<'
>  at [row,col {unknown-source}]: [1,1]
> 	at org.apache.axis2.jaxws.client.async.AsyncResponse.onError(AsyncResponse.java:141)
> 	at org.apache.axis2.jaxws.client.async.AsyncResponse.onError(AsyncResponse.java:95)
> 	at org.apache.axis2.jaxws.client.async.CallbackFutureTask.call(CallbackFuture.java:326)
> 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> 	at java.lang.Thread.run(Thread.java:619)
> Caused by: javax.xml.ws.soap.SOAPFaultException: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'f' (code 102) in prolog; expected '<'
>  at [row,col {unknown-source}]: [1,1]
> 	at org.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtils.createSystemException(MethodMarshallerUtils.java:1326)
> 	at org.apache.axis2.jaxws.client.dispatch.BaseDispatch.getFaultResponse(BaseDispatch.java:839)
> 	at org.apache.axis2.jaxws.client.dispatch.XMLDispatchAsyncListener.getFaultResponse(XMLDispatchAsyncListener.java:70)
> 	at org.apache.axis2.jaxws.client.async.AsyncResponse.processFaultResponse(AsyncResponse.java:431)
> 	at org.apache.axis2.jaxws.client.async.AsyncResponse.onError(AsyncResponse.java:129)
> 	... 7 more
> <---
> From the sec 4.4.3 of http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html, if the server found both Transfer-Encoding header field and a Content-Length header field, the latter MUST be ignored. It might be a bug in Tomcat, but if Axis2 could remove the content-length header in advance, that would be more compatibility and efficiency.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org