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 "Andreas Bohnert (JIRA)" <ax...@ws.apache.org> on 2005/06/02 14:05:55 UTC
[jira] Created: (AXIS-2033) Bug with CommonsHttpClient and 1.2 final & 1.2.1 nigthly build. 1.2RC3 works fine!
Bug with CommonsHttpClient and 1.2 final & 1.2.1 nigthly build. 1.2RC3 works fine!
----------------------------------------------------------------------------------
Key: AXIS-2033
URL: http://issues.apache.org/jira/browse/AXIS-2033
Project: Axis
Type: Bug
Components: Basic Architecture
Versions: current (nightly), 1.2, 1.2.1
Environment: linux
Reporter: Andreas Bohnert
Priority: Critical
I can't call my webservices from my client if I use the commons http client.
With 1.2RC3 it still works fine, but with 1.2 final and 1.2.1 nightly build (01.06.2005) I can reproduce the problem.
Mike Moran (mike_moran@mac.com) has reported the same problem. he said:
"The problem is that, because
CommonsHTTPSender.MessageRequestEntity#getContentLength() is defined to
only return a content-length when the HTTP version is 1.0 *and* no
exception is thrown from message.getContentLength(), then it will not
even try if the HTTP version is 1.1. The upshot of this is that a
Transfer-Encoding: chunked header is set on the request."
(see http://marc.theaimsgroup.com/?l=axis-dev&m=111523156110949&w=2)
here is what I got:
2005-06-02 11:45:24,291 WARN [main] httpclient.HttpMethodBase - Going to buf
fer response body of large or unknown size. Using getResponseAsStream instead
is recommended.
2005-06-02 11:45:24,298 ERROR [main] exchange.ExchangeServiceClient - (411)Le
ngth Required
AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (411)Length Required
faultActor:
faultNode:
faultDetail:
{}:return code: 411
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>411 Length Required</TITLE>
</HEAD><BODY>
<H1>Length Required</H1>
A request of the requested method POST requires a valid Content-length.<P&
gt;
chunked Transfer-Encoding forbidden: /exchange<P>
<HR>
<ADDRESS>Apache/1.3.33 Server at www.myserver.net Port 80</A
DDRESS>
</BODY></HTML>
{http://xml.apache.org/axis/}HttpErrorCode:411
(411)Length Required
at org.apache.axis.transport.http.CommonsHTTPSender.invoke(CommonsHTT
PSender.java:208)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStra
tegy.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:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
at org.apache.axis.client.Call.invoke(Call.java:2748)
at org.apache.axis.client.Call.invoke(Call.java:2424)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)
at at.weberhofer.eusoda.client.services.exchange.ExchangeSoapBindingS tub.lastChange(ExchangeSoapBindingStub.java:466)
at at.weberhofer.eusoda.client.services.exchange.ExchangeServiceClien t.clientPollsTransaction(ExchangeServiceClient.java:90)
at at.weberhofer.eusoda.client.services.exchange.ExchangeServiceClien t.replicate(ExchangeServiceClient.java:354)
at at.weberhofer.eusoda.client.services.exchange.ExchangeServiceClien t.replicate(ExchangeServiceClient.java:233)
at at.weberhofer.eusoda.client.services.exchange.ExchangeServiceMain. main(ExchangeServiceMain.java:38)
regards,
andreas
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (AXIS-2033) Bug with CommonsHttpClient and 1.2 final & 1.2.1 nigthly build. 1.2RC3 works fine!
Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2033?page=comments#action_12312526 ]
Davanum Srinivas commented on AXIS-2033:
----------------------------------------
Note that calculating the message length is a perfomance hit...Can you please submit a patch to make your behavior optional? (forcing a send of the message length?)
thanks,
dims
> Bug with CommonsHttpClient and 1.2 final & 1.2.1 nigthly build. 1.2RC3 works fine!
> ----------------------------------------------------------------------------------
>
> Key: AXIS-2033
> URL: http://issues.apache.org/jira/browse/AXIS-2033
> Project: Axis
> Type: Bug
> Components: Basic Architecture
> Versions: current (nightly), 1.2.1, 1.2
> Environment: linux
> Reporter: Andreas Bohnert
> Priority: Critical
>
> I can't call my webservices from my client if I use the commons http client.
> With 1.2RC3 it still works fine, but with 1.2 final and 1.2.1 nightly build (01.06.2005) I can reproduce the problem.
> Mike Moran (mike_moran@mac.com) has reported the same problem. he said:
> "The problem is that, because
> CommonsHTTPSender.MessageRequestEntity#getContentLength() is defined to
> only return a content-length when the HTTP version is 1.0 *and* no
> exception is thrown from message.getContentLength(), then it will not
> even try if the HTTP version is 1.1. The upshot of this is that a
> Transfer-Encoding: chunked header is set on the request."
> (see http://marc.theaimsgroup.com/?l=axis-dev&m=111523156110949&w=2)
> here is what I got:
> 2005-06-02 11:45:24,291 WARN [main] httpclient.HttpMethodBase - Going to buf
> fer response body of large or unknown size. Using getResponseAsStream instead
> is recommended.
> 2005-06-02 11:45:24,298 ERROR [main] exchange.ExchangeServiceClient - (411)Le
> ngth Required
> AxisFault
> faultCode: {http://xml.apache.org/axis/}HTTP
> faultSubcode:
> faultString: (411)Length Required
> faultActor:
> faultNode:
> faultDetail:
> {}:return code: 411
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <HTML><HEAD>
> <TITLE>411 Length Required</TITLE>
> </HEAD><BODY>
> <H1>Length Required</H1>
> A request of the requested method POST requires a valid Content-length.<P&
> gt;
> chunked Transfer-Encoding forbidden: /exchange<P>
> <HR>
> <ADDRESS>Apache/1.3.33 Server at www.myserver.net Port 80</A
> DDRESS>
> </BODY></HTML>
> {http://xml.apache.org/axis/}HttpErrorCode:411
> (411)Length Required
> at org.apache.axis.transport.http.CommonsHTTPSender.invoke(CommonsHTT
> PSender.java:208)
> at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStra
> tegy.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:165)
> at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
> at org.apache.axis.client.Call.invoke(Call.java:2748)
> at org.apache.axis.client.Call.invoke(Call.java:2424)
> at org.apache.axis.client.Call.invoke(Call.java:2347)
> at org.apache.axis.client.Call.invoke(Call.java:1804)
> at at.weberhofer.eusoda.client.services.exchange.ExchangeSoapBindingS tub.lastChange(ExchangeSoapBindingStub.java:466)
> at at.weberhofer.eusoda.client.services.exchange.ExchangeServiceClien t.clientPollsTransaction(ExchangeServiceClient.java:90)
> at at.weberhofer.eusoda.client.services.exchange.ExchangeServiceClien t.replicate(ExchangeServiceClient.java:354)
> at at.weberhofer.eusoda.client.services.exchange.ExchangeServiceClien t.replicate(ExchangeServiceClient.java:233)
> at at.weberhofer.eusoda.client.services.exchange.ExchangeServiceMain. main(ExchangeServiceMain.java:38)
> regards,
> andreas
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (AXIS-2033) Bug with CommonsHttpClient and 1.2 final & 1.2.1 nigthly build. 1.2RC3 works fine!
Posted by "Mike Moran (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2033?page=comments#action_66873 ]
Mike Moran commented on AXIS-2033:
----------------------------------
The following version of "CommonsHTTPSender.MessageRequestEntity#getContentLength()" fixed this issue for me:
"
public long getContentLength() {
// Note: this is commented out to force a content length to
// be returned if possible. This is done because, otherwise,
// when HTTP 1.1 is used, a Transfer-Encoding: chunked header will
// be created by the HttpClient library.
//if (this.method.getParams().getVersion() == HttpVersion.HTTP_1_0) {
try {
return message.getContentLength();
} catch (Exception e) {
return -1; /* -1 for chunked */
}
//} else {
// return -1; /* -1 for chunked */
//}
}
"
> Bug with CommonsHttpClient and 1.2 final & 1.2.1 nigthly build. 1.2RC3 works fine!
> ----------------------------------------------------------------------------------
>
> Key: AXIS-2033
> URL: http://issues.apache.org/jira/browse/AXIS-2033
> Project: Axis
> Type: Bug
> Components: Basic Architecture
> Versions: current (nightly), 1.2, 1.2.1
> Environment: linux
> Reporter: Andreas Bohnert
> Priority: Critical
>
> I can't call my webservices from my client if I use the commons http client.
> With 1.2RC3 it still works fine, but with 1.2 final and 1.2.1 nightly build (01.06.2005) I can reproduce the problem.
> Mike Moran (mike_moran@mac.com) has reported the same problem. he said:
> "The problem is that, because
> CommonsHTTPSender.MessageRequestEntity#getContentLength() is defined to
> only return a content-length when the HTTP version is 1.0 *and* no
> exception is thrown from message.getContentLength(), then it will not
> even try if the HTTP version is 1.1. The upshot of this is that a
> Transfer-Encoding: chunked header is set on the request."
> (see http://marc.theaimsgroup.com/?l=axis-dev&m=111523156110949&w=2)
> here is what I got:
> 2005-06-02 11:45:24,291 WARN [main] httpclient.HttpMethodBase - Going to buf
> fer response body of large or unknown size. Using getResponseAsStream instead
> is recommended.
> 2005-06-02 11:45:24,298 ERROR [main] exchange.ExchangeServiceClient - (411)Le
> ngth Required
> AxisFault
> faultCode: {http://xml.apache.org/axis/}HTTP
> faultSubcode:
> faultString: (411)Length Required
> faultActor:
> faultNode:
> faultDetail:
> {}:return code: 411
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <HTML><HEAD>
> <TITLE>411 Length Required</TITLE>
> </HEAD><BODY>
> <H1>Length Required</H1>
> A request of the requested method POST requires a valid Content-length.<P&
> gt;
> chunked Transfer-Encoding forbidden: /exchange<P>
> <HR>
> <ADDRESS>Apache/1.3.33 Server at www.myserver.net Port 80</A
> DDRESS>
> </BODY></HTML>
> {http://xml.apache.org/axis/}HttpErrorCode:411
> (411)Length Required
> at org.apache.axis.transport.http.CommonsHTTPSender.invoke(CommonsHTT
> PSender.java:208)
> at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStra
> tegy.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:165)
> at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
> at org.apache.axis.client.Call.invoke(Call.java:2748)
> at org.apache.axis.client.Call.invoke(Call.java:2424)
> at org.apache.axis.client.Call.invoke(Call.java:2347)
> at org.apache.axis.client.Call.invoke(Call.java:1804)
> at at.weberhofer.eusoda.client.services.exchange.ExchangeSoapBindingS tub.lastChange(ExchangeSoapBindingStub.java:466)
> at at.weberhofer.eusoda.client.services.exchange.ExchangeServiceClien t.clientPollsTransaction(ExchangeServiceClient.java:90)
> at at.weberhofer.eusoda.client.services.exchange.ExchangeServiceClien t.replicate(ExchangeServiceClient.java:354)
> at at.weberhofer.eusoda.client.services.exchange.ExchangeServiceClien t.replicate(ExchangeServiceClient.java:233)
> at at.weberhofer.eusoda.client.services.exchange.ExchangeServiceMain. main(ExchangeServiceMain.java:38)
> regards,
> andreas
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (AXIS-2033) Bug with CommonsHttpClient and 1.2 final & 1.2.1 nigthly build. 1.2RC3 works fine!
Posted by "Andreas Bohnert (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2033?page=comments#action_12313248 ]
Andreas Bohnert commented on AXIS-2033:
---------------------------------------
unfortunately it's not working for me.
what am I'm doing wrong?
I added this to my stub code:
protected void setUserHeader( MessageContext msgContext ) {
Hashtable userHeaderTable = new Hashtable();
userHeaderTable.put(HTTPConstants.HEADER_TRANSFER_ENCODING_CHUNKED, "false");
msgContext.setProperty(HTTPConstants.REQUEST_HEADERS, userHeaderTable );
}
org.apache.axis.client.Call _call = createCall();
_call.setOperation(_operations[0]);
_call.setUseSOAPAction(true);
_call.setSOAPActionURI("");
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
_call.setOperationName(new javax.xml.namespace.QName("urn:Eusoda", "lastChange"));
setUserHeader( _call.getMessageContext() );
I'm still getting the old error message. I didn't update the code on the server side, but I think this is not necessary, right?
I have used this nightly build:
axis-bin-1_2_1.zip 09-Jun-2005 21:07 11M
regards,
andreas
> Bug with CommonsHttpClient and 1.2 final & 1.2.1 nigthly build. 1.2RC3 works fine!
> ----------------------------------------------------------------------------------
>
> Key: AXIS-2033
> URL: http://issues.apache.org/jira/browse/AXIS-2033
> Project: Axis
> Type: Bug
> Components: Basic Architecture
> Versions: current (nightly), 1.2.1, 1.2
> Environment: linux
> Reporter: Andreas Bohnert
> Priority: Critical
>
> I can't call my webservices from my client if I use the commons http client.
> With 1.2RC3 it still works fine, but with 1.2 final and 1.2.1 nightly build (01.06.2005) I can reproduce the problem.
> Mike Moran (mike_moran@mac.com) has reported the same problem. he said:
> "The problem is that, because
> CommonsHTTPSender.MessageRequestEntity#getContentLength() is defined to
> only return a content-length when the HTTP version is 1.0 *and* no
> exception is thrown from message.getContentLength(), then it will not
> even try if the HTTP version is 1.1. The upshot of this is that a
> Transfer-Encoding: chunked header is set on the request."
> (see http://marc.theaimsgroup.com/?l=axis-dev&m=111523156110949&w=2)
> here is what I got:
> 2005-06-02 11:45:24,291 WARN [main] httpclient.HttpMethodBase - Going to buf
> fer response body of large or unknown size. Using getResponseAsStream instead
> is recommended.
> 2005-06-02 11:45:24,298 ERROR [main] exchange.ExchangeServiceClient - (411)Le
> ngth Required
> AxisFault
> faultCode: {http://xml.apache.org/axis/}HTTP
> faultSubcode:
> faultString: (411)Length Required
> faultActor:
> faultNode:
> faultDetail:
> {}:return code: 411
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <HTML><HEAD>
> <TITLE>411 Length Required</TITLE>
> </HEAD><BODY>
> <H1>Length Required</H1>
> A request of the requested method POST requires a valid Content-length.<P&
> gt;
> chunked Transfer-Encoding forbidden: /exchange<P>
> <HR>
> <ADDRESS>Apache/1.3.33 Server at www.myserver.net Port 80</A
> DDRESS>
> </BODY></HTML>
> {http://xml.apache.org/axis/}HttpErrorCode:411
> (411)Length Required
> at org.apache.axis.transport.http.CommonsHTTPSender.invoke(CommonsHTT
> PSender.java:208)
> at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStra
> tegy.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:165)
> at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
> at org.apache.axis.client.Call.invoke(Call.java:2748)
> at org.apache.axis.client.Call.invoke(Call.java:2424)
> at org.apache.axis.client.Call.invoke(Call.java:2347)
> at org.apache.axis.client.Call.invoke(Call.java:1804)
> at at.weberhofer.eusoda.client.services.exchange.ExchangeSoapBindingS tub.lastChange(ExchangeSoapBindingStub.java:466)
> at at.weberhofer.eusoda.client.services.exchange.ExchangeServiceClien t.clientPollsTransaction(ExchangeServiceClient.java:90)
> at at.weberhofer.eusoda.client.services.exchange.ExchangeServiceClien t.replicate(ExchangeServiceClient.java:354)
> at at.weberhofer.eusoda.client.services.exchange.ExchangeServiceClien t.replicate(ExchangeServiceClient.java:233)
> at at.weberhofer.eusoda.client.services.exchange.ExchangeServiceMain. main(ExchangeServiceMain.java:38)
> regards,
> andreas
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Resolved: (AXIS-2033) Bug with CommonsHttpClient and 1.2 final & 1.2.1 nigthly build. 1.2RC3 works fine!
Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2033?page=all ]
Davanum Srinivas resolved AXIS-2033:
------------------------------------
Resolution: Fixed
I have added some code in CommonsHTTPSender that looks for a property set either in call or stub to switch *OFF* chunking in HTTP1.1
> Bug with CommonsHttpClient and 1.2 final & 1.2.1 nigthly build. 1.2RC3 works fine!
> ----------------------------------------------------------------------------------
>
> Key: AXIS-2033
> URL: http://issues.apache.org/jira/browse/AXIS-2033
> Project: Axis
> Type: Bug
> Components: Basic Architecture
> Versions: current (nightly), 1.2.1, 1.2
> Environment: linux
> Reporter: Andreas Bohnert
> Priority: Critical
>
> I can't call my webservices from my client if I use the commons http client.
> With 1.2RC3 it still works fine, but with 1.2 final and 1.2.1 nightly build (01.06.2005) I can reproduce the problem.
> Mike Moran (mike_moran@mac.com) has reported the same problem. he said:
> "The problem is that, because
> CommonsHTTPSender.MessageRequestEntity#getContentLength() is defined to
> only return a content-length when the HTTP version is 1.0 *and* no
> exception is thrown from message.getContentLength(), then it will not
> even try if the HTTP version is 1.1. The upshot of this is that a
> Transfer-Encoding: chunked header is set on the request."
> (see http://marc.theaimsgroup.com/?l=axis-dev&m=111523156110949&w=2)
> here is what I got:
> 2005-06-02 11:45:24,291 WARN [main] httpclient.HttpMethodBase - Going to buf
> fer response body of large or unknown size. Using getResponseAsStream instead
> is recommended.
> 2005-06-02 11:45:24,298 ERROR [main] exchange.ExchangeServiceClient - (411)Le
> ngth Required
> AxisFault
> faultCode: {http://xml.apache.org/axis/}HTTP
> faultSubcode:
> faultString: (411)Length Required
> faultActor:
> faultNode:
> faultDetail:
> {}:return code: 411
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <HTML><HEAD>
> <TITLE>411 Length Required</TITLE>
> </HEAD><BODY>
> <H1>Length Required</H1>
> A request of the requested method POST requires a valid Content-length.<P&
> gt;
> chunked Transfer-Encoding forbidden: /exchange<P>
> <HR>
> <ADDRESS>Apache/1.3.33 Server at www.myserver.net Port 80</A
> DDRESS>
> </BODY></HTML>
> {http://xml.apache.org/axis/}HttpErrorCode:411
> (411)Length Required
> at org.apache.axis.transport.http.CommonsHTTPSender.invoke(CommonsHTT
> PSender.java:208)
> at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStra
> tegy.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:165)
> at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
> at org.apache.axis.client.Call.invoke(Call.java:2748)
> at org.apache.axis.client.Call.invoke(Call.java:2424)
> at org.apache.axis.client.Call.invoke(Call.java:2347)
> at org.apache.axis.client.Call.invoke(Call.java:1804)
> at at.weberhofer.eusoda.client.services.exchange.ExchangeSoapBindingS tub.lastChange(ExchangeSoapBindingStub.java:466)
> at at.weberhofer.eusoda.client.services.exchange.ExchangeServiceClien t.clientPollsTransaction(ExchangeServiceClient.java:90)
> at at.weberhofer.eusoda.client.services.exchange.ExchangeServiceClien t.replicate(ExchangeServiceClient.java:354)
> at at.weberhofer.eusoda.client.services.exchange.ExchangeServiceClien t.replicate(ExchangeServiceClient.java:233)
> at at.weberhofer.eusoda.client.services.exchange.ExchangeServiceMain. main(ExchangeServiceMain.java:38)
> regards,
> andreas
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (AXIS-2033) Bug with CommonsHttpClient and 1.2 final & 1.2.1 nigthly build. 1.2RC3 works fine!
Posted by "Andreas Bohnert (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2033?page=comments#action_12312724 ]
Andreas Bohnert commented on AXIS-2033:
---------------------------------------
It would make sense to put an additional paramter inside client-config.wsdd and to pass this parameter to the MessageRequestEntity class.
I tried it, but I'm not sure how to do the right way.
regards,
andreas
> Bug with CommonsHttpClient and 1.2 final & 1.2.1 nigthly build. 1.2RC3 works fine!
> ----------------------------------------------------------------------------------
>
> Key: AXIS-2033
> URL: http://issues.apache.org/jira/browse/AXIS-2033
> Project: Axis
> Type: Bug
> Components: Basic Architecture
> Versions: current (nightly), 1.2.1, 1.2
> Environment: linux
> Reporter: Andreas Bohnert
> Priority: Critical
>
> I can't call my webservices from my client if I use the commons http client.
> With 1.2RC3 it still works fine, but with 1.2 final and 1.2.1 nightly build (01.06.2005) I can reproduce the problem.
> Mike Moran (mike_moran@mac.com) has reported the same problem. he said:
> "The problem is that, because
> CommonsHTTPSender.MessageRequestEntity#getContentLength() is defined to
> only return a content-length when the HTTP version is 1.0 *and* no
> exception is thrown from message.getContentLength(), then it will not
> even try if the HTTP version is 1.1. The upshot of this is that a
> Transfer-Encoding: chunked header is set on the request."
> (see http://marc.theaimsgroup.com/?l=axis-dev&m=111523156110949&w=2)
> here is what I got:
> 2005-06-02 11:45:24,291 WARN [main] httpclient.HttpMethodBase - Going to buf
> fer response body of large or unknown size. Using getResponseAsStream instead
> is recommended.
> 2005-06-02 11:45:24,298 ERROR [main] exchange.ExchangeServiceClient - (411)Le
> ngth Required
> AxisFault
> faultCode: {http://xml.apache.org/axis/}HTTP
> faultSubcode:
> faultString: (411)Length Required
> faultActor:
> faultNode:
> faultDetail:
> {}:return code: 411
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <HTML><HEAD>
> <TITLE>411 Length Required</TITLE>
> </HEAD><BODY>
> <H1>Length Required</H1>
> A request of the requested method POST requires a valid Content-length.<P&
> gt;
> chunked Transfer-Encoding forbidden: /exchange<P>
> <HR>
> <ADDRESS>Apache/1.3.33 Server at www.myserver.net Port 80</A
> DDRESS>
> </BODY></HTML>
> {http://xml.apache.org/axis/}HttpErrorCode:411
> (411)Length Required
> at org.apache.axis.transport.http.CommonsHTTPSender.invoke(CommonsHTT
> PSender.java:208)
> at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStra
> tegy.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:165)
> at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
> at org.apache.axis.client.Call.invoke(Call.java:2748)
> at org.apache.axis.client.Call.invoke(Call.java:2424)
> at org.apache.axis.client.Call.invoke(Call.java:2347)
> at org.apache.axis.client.Call.invoke(Call.java:1804)
> at at.weberhofer.eusoda.client.services.exchange.ExchangeSoapBindingS tub.lastChange(ExchangeSoapBindingStub.java:466)
> at at.weberhofer.eusoda.client.services.exchange.ExchangeServiceClien t.clientPollsTransaction(ExchangeServiceClient.java:90)
> at at.weberhofer.eusoda.client.services.exchange.ExchangeServiceClien t.replicate(ExchangeServiceClient.java:354)
> at at.weberhofer.eusoda.client.services.exchange.ExchangeServiceClien t.replicate(ExchangeServiceClient.java:233)
> at at.weberhofer.eusoda.client.services.exchange.ExchangeServiceMain. main(ExchangeServiceMain.java:38)
> regards,
> andreas
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira