You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Carlos S. Zamudio" <cs...@yahoo.com> on 2007/03/30 01:34:38 UTC
[AXIS2] Transport error: 411 Error: Length Required
Has anyone seen this type of error coming from AXIS2 and know what it might
indicate? I'm getting this from a test case using a WSDL2Java code
generation. I noticed an old thread referencing this condition, but the
message was not explanatory. Thanks.
org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required;
nested exception is:
org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required;
nested exception is:
org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required;
nested exception is:
org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required;
nested exception is:
org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required;
nested exception is:
org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required;
nested exception is:
org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required;
nested exception is:
org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required
Re: NullPointerException using ServiceClient
Posted by Davanum Srinivas <da...@gmail.com>.
It means all the required jars are not present. especially the ones
dealing with transport like the commons http client and it's
dependencies.
-- dims
On 3/29/07, Jim Alateras <ji...@comware.com.au> wrote:
> Folks,
>
> Just wondering if anyone has encountered this NPE during the creation of
> a ServiceClient
>
> [CODE]
>
> ServiceClient client = new ServiceClient(null, new
> URL("file:src/main/wsdl/SimplePAProcess.wsdl"),
> new
> QName("http://dlgpsr.qld.gov.au/eda/bpms/200611/SimplePAProcess/Client_To_SimplePAProcess",
> "Client_To_SimplePAProcess_Service"),
> "Client_To_SimplePAProcess_Http");
>
>
>
> [EXCEPTION]
>
> java.lang.NullPointerException
> at
> org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:85)
> at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:163)
> at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:579)
> at
> com.comware.intalio.testing.TestSimplePAProcess.testCreationofSOAPEnvelope(TestSimplePAProcess.java:64)
>
>
> cheers
> </jima>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
[AXIS2] AXIS2 WSDL2Java 2 1.2RC1 vs. AXIS 1.3
Posted by "Carlos S. Zamudio" <cs...@yahoo.com>.
Below is a WSDL that can be used to generate Java classes with Wsdl2java
with Axis 1.3 successfully, but fails using AXIS2 1.2RC1.
http://www.ncbi.nlm.nih.gov/entrez/eutils/soap/eutils.wsdl
With errors like the following:
java:491)
at
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
java:462)
at
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
java:594)
at
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
java:451)
at
org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:16
50)
at
org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler
.java:1615)
at
org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompi
ler.java:929)
at
org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaT
...
Carlos
_____
From: Carlos S. Zamudio [mailto:cszamudio@yahoo.com]
Sent: Thursday, March 29, 2007 4:59 PM
To: axis-user@ws.apache.org
Subject: RE: [AXIS2] Transport error: 411 Error: Length Required
I found the problem in another posting. To get around this Transport error
I did as suggested and changed the property CHUNKED to false.
s._getServiceClient().getOptions().setProperty(HTTPConstants.CHUNKED,
false);
where s is an instance of the ServiceStub.
Carlos
_____
From: Carlos S. Zamudio [mailto:cszamudio@yahoo.com]
Sent: Thursday, March 29, 2007 4:35 PM
To: axis-user@ws.apache.org
Subject: [AXIS2] Transport error: 411 Error: Length Required
Has anyone seen this type of error coming from AXIS2 and know what it might
indicate? I'm getting this from a test case using a WSDL2Java code
generation. I noticed an old thread referencing this condition, but the
message was not explanatory. Thanks.
org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required;
nested exception is:
org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required;
nested exception is:
org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required;
nested exception is:
org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required;
nested exception is:
org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required;
nested exception is:
org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required;
nested exception is:
org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required;
nested exception is:
org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required
RE: [AXIS2] Transport error: 411 Error: Length Required
Posted by "Carlos S. Zamudio" <cs...@yahoo.com>.
I found the problem in another posting. To get around this Transport error
I did as suggested and changed the property CHUNKED to false.
s._getServiceClient().getOptions().setProperty(HTTPConstants.CHUNKED,
false);
where s is an instance of the ServiceStub.
Carlos
_____
From: Carlos S. Zamudio [mailto:cszamudio@yahoo.com]
Sent: Thursday, March 29, 2007 4:35 PM
To: axis-user@ws.apache.org
Subject: [AXIS2] Transport error: 411 Error: Length Required
Has anyone seen this type of error coming from AXIS2 and know what it might
indicate? I'm getting this from a test case using a WSDL2Java code
generation. I noticed an old thread referencing this condition, but the
message was not explanatory. Thanks.
org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required;
nested exception is:
org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required;
nested exception is:
org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required;
nested exception is:
org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required;
nested exception is:
org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required;
nested exception is:
org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required;
nested exception is:
org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required;
nested exception is:
org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required
NullPointerException using ServiceClient
Posted by Jim Alateras <ji...@comware.com.au>.
Folks,
Just wondering if anyone has encountered this NPE during the creation of
a ServiceClient
[CODE]
ServiceClient client = new ServiceClient(null, new
URL("file:src/main/wsdl/SimplePAProcess.wsdl"),
new
QName("http://dlgpsr.qld.gov.au/eda/bpms/200611/SimplePAProcess/Client_To_SimplePAProcess",
"Client_To_SimplePAProcess_Service"),
"Client_To_SimplePAProcess_Http");
[EXCEPTION]
java.lang.NullPointerException
at
org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:85)
at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:163)
at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:579)
at
com.comware.intalio.testing.TestSimplePAProcess.testCreationofSOAPEnvelope(TestSimplePAProcess.java:64)
cheers
</jima>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org