You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org> on 2019/04/30 10:16:00 UTC

[jira] [Resolved] (CXF-7104) Unable to increase chunkingThreshold limit in cxf 3.1.1

     [ https://issues.apache.org/jira/browse/CXF-7104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Colm O hEigeartaigh resolved CXF-7104.
--------------------------------------
    Resolution: Cannot Reproduce

Please try upgrading to a more recent CXF release and see if it works. If not, then we would need more information to reproduce the problem. If the service requires chunking, then it seems strange that it starts failing with CXF switches (over 4K) to use chunking.

> Unable to increase chunkingThreshold limit in cxf 3.1.1
> -------------------------------------------------------
>
>                 Key: CXF-7104
>                 URL: https://issues.apache.org/jira/browse/CXF-7104
>             Project: CXF
>          Issue Type: Bug
>          Components: Transports
>            Reporter: sid
>            Priority: Major
>
> I am using spring 4.1.7 mvc project and using cxf 3.1.1 being a client. 
> The problem is while making  soap service call,it is failing if the request size is anything greater than 4k (4095 charcter to be exact) and works if below 4k. After some research found we can increase the threshold so tried setting threshold limit to 12K but for some reason it is still throwing me the same error.
> Note :- I cannot make allowChuking to false as the service where it is being hosted accept chunking.
> protected void setHttpProp(org.apache.cxf.endpoint.Client client) {
> 		HTTPConduit conduit = (HTTPConduit) client.getConduit();
> 		HTTPClientPolicy policy = new HTTPClientPolicy();
> 		AuthorizationPolicy authorization = conduit.getAuthorization();
> 		authorization.setUserName("abc");
> 		authorization.setPassword("abc");
> 		//policy.setChunkLength(8000);
> 		policy.setChunkingThreshold(12000);
> 		conduit.setClient(policy);
> }
> Any help in the issue would be highly appreciated.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)