Re: Axis2 - Bug with Proxy and HTTP/1.1?

2008-11-14 Thread StrongSteve

Hi Paul,

Thanks for your quick reply.

So it could be, that our proxy server does not support HTTP/1.1 - or to be
specific "Chunking" and returns this error message back to the caller - me.

That is indeed a great tip. I will check with our network guys on Monday!

Thanks again!

Greetings
Stefan 


pzfreo wrote:
> 
> Stefan
> 
> Its not the Axis2 client reporting Not Implemented. Its either the
> proxy or the server (Hard to tell which without seeing a wire trace or
> the logs from those systems). I'm guessing its the proxy. Axis2 is
> sending the message successfully and its the other system that can't
> handle HTTP 1.1.
> 
> Paul
> 
> On Fri, Nov 14, 2008 at 9:59 AM, StrongSteve <[EMAIL PROTECTED]> wrote:
>>
>> Hi Everybody!
>>
>> Recently I have stumbled across a curious behavior of the Axis2
>> Framework.
>> As I am not sure whether I am doing something wrong or if it is a bug, I
>> try
>> to outline my experience.
>> Perhaps someone has made the same experiences.
>>
>> Basically I have an application, that uses the Axis2 Framework to contact
>> a
>> web service. So it can be seen as kind of a web service client.
>>
>> As I am working behind a companies proxy server, I added my proxy setting
>> to
>> the startup of the program, as usual.
>> This looks something like:
>>
>> java -Dhttp.proxyHost=MyProxyhost -Dhttp.proxyPort=MyProxyPort
>> -Dhttp.nonProxyHosts=MyExcludedHosts gov.nist.registry.xdstest2.XdsTest
>> $*
>>
>> Funny thing, the program finished with the following stacktrace (only an
>> extract):
>>
>> Transport error: 501 Error: Not Implemented
>> org.apache.axis2.AxisFault: Transport error: 501 Error: Not Implemented
>>at
>> org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:296)
>>at
>> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:190)
>>at
>> org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
>>at
>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:371)
>>at
>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:209)
>>at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
>>at
>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
>>at
>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
>>at
>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
>>at
>> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:548)
>>at
>> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528)
>>at gov.nist.registry.common2.registry.Soap.soapCall(Soap.java:60)
>>at
>> gov.nist.registry.xdstest2.StoredQueryTransaction.runSQ(StoredQueryTransaction.java:99)
>>at
>> gov.nist.registry.xdstest2.StoredQueryTransaction.run(StoredQueryTransaction.java:41)
>>at
>> gov.nist.registry.xdstest2.StepContext.run(StepContext.java:153)
>>at
>> gov.nist.registry.xdstest2.PlanContext.run(PlanContext.java:138)
>>at gov.nist.registry.xdstest2.Xdstest2.runTest(Xdstest2.java:263)
>>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>at java.lang.reflect.Method.invoke(Unknown Source)
>>at
>> org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:95)
>>at
>> org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:599)
>>at
>> groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1077)
>>at
>> org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:744)
>>at
>> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:167)
>>at
>> gov.nist.registry.xdstest2.XdsTest$_run_closure6.doCall(XdsTest.groovy:353)
>>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>at java.lang.reflect.Method.invoke(Unknown Source)
>>at
>> org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:95)
>>at
>> org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:599)
>>at
>> org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:252)
>>at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:740)
>>at groovy.lang.Closure.call(Closure.java:292)
>>at groovy.lang.Closure.call(Closure.java:305)
>>at
>> org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:990)

Re: Axis2 - Bug with Proxy and HTTP/1.1?

2008-11-14 Thread Paul Fremantle
Stefan

Its not the Axis2 client reporting Not Implemented. Its either the
proxy or the server (Hard to tell which without seeing a wire trace or
the logs from those systems). I'm guessing its the proxy. Axis2 is
sending the message successfully and its the other system that can't
handle HTTP 1.1.

Paul

On Fri, Nov 14, 2008 at 9:59 AM, StrongSteve <[EMAIL PROTECTED]> wrote:
>
> Hi Everybody!
>
> Recently I have stumbled across a curious behavior of the Axis2 Framework.
> As I am not sure whether I am doing something wrong or if it is a bug, I try
> to outline my experience.
> Perhaps someone has made the same experiences.
>
> Basically I have an application, that uses the Axis2 Framework to contact a
> web service. So it can be seen as kind of a web service client.
>
> As I am working behind a companies proxy server, I added my proxy setting to
> the startup of the program, as usual.
> This looks something like:
>
> java -Dhttp.proxyHost=MyProxyhost -Dhttp.proxyPort=MyProxyPort
> -Dhttp.nonProxyHosts=MyExcludedHosts gov.nist.registry.xdstest2.XdsTest $*
>
> Funny thing, the program finished with the following stacktrace (only an
> extract):
>
> Transport error: 501 Error: Not Implemented
> org.apache.axis2.AxisFault: Transport error: 501 Error: Not Implemented
>at
> org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:296)
>at
> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:190)
>at
> org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
>at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:371)
>at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:209)
>at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
>at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
>at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
>at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
>at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:548)
>at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528)
>at gov.nist.registry.common2.registry.Soap.soapCall(Soap.java:60)
>at
> gov.nist.registry.xdstest2.StoredQueryTransaction.runSQ(StoredQueryTransaction.java:99)
>at
> gov.nist.registry.xdstest2.StoredQueryTransaction.run(StoredQueryTransaction.java:41)
>at gov.nist.registry.xdstest2.StepContext.run(StepContext.java:153)
>at gov.nist.registry.xdstest2.PlanContext.run(PlanContext.java:138)
>at gov.nist.registry.xdstest2.Xdstest2.runTest(Xdstest2.java:263)
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>at java.lang.reflect.Method.invoke(Unknown Source)
>at
> org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:95)
>at
> org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:599)
>at
> groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1077)
>at
> org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:744)
>at
> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:167)
>at
> gov.nist.registry.xdstest2.XdsTest$_run_closure6.doCall(XdsTest.groovy:353)
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>at java.lang.reflect.Method.invoke(Unknown Source)
>at
> org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:95)
>at
> org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:599)
>at
> org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:252)
>at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:740)
>at groovy.lang.Closure.call(Closure.java:292)
>at groovy.lang.Closure.call(Closure.java:305)
>at
> org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:990)
>at
> org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:967)
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>at java.lang.reflect.Method.invoke(Unknown Source)
>at
> org.codehaus.groovy.runtime.metaclass.ReflectionMeta