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 e deleflie <ed...@gmail.com> on 2007/11/15 07:25:38 UTC

SOAP envelop correct, but server responding with null pointer

Hi all,

I've confirmed that the SOAP envelope of my request is correct (i.e.
the actual XML content) by testing it in soapUI. soapUI displays the
correct reponse from the server.

But when Axis2 sends off that XML request, the server responds with a
Null Pointer. I'm guessing that the way Axis2 has wrapped the XML into
an HTTP request is causing problems with the server.

Has anyone had these kinds of problems?

Axis2 log is included below. Does anyone know what the 125[\r][\n]"
is? ... its look strange.

334912 [main] DEBUG httpclient.wire.content  - >> "125[\r][\n]"
334912 [main] DEBUG httpclient.wire.content  - >> "<?xml version='1.0'
encoding='UTF-8'?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:getRecords
xmlns:ns1="http://www.blabla.com/cmdb_rel_ci"><sys_id>451047c6c0a8016400de0ae6df9b9d76</sys_id></ns1:getRecords></soapenv:Body></soapenv:Envelope>"
334912 [main] DEBUG httpclient.wire.content  - >> "[\r][\n]"
334912 [main] DEBUG httpclient.wire.content  - >> "0"
334912 [main] DEBUG httpclient.wire.content  - >> "[\r][\n]"
334912 [main] DEBUG httpclient.wire.content  - >> "[\r][\n]"
334912 [main] DEBUG
org.apache.commons.httpclient.methods.EntityEnclosingMethod  - Request
body sent
335243 [main] DEBUG httpclient.wire.header  - << "HTTP/1.1 200 OK[\r][\n]"
335253 [main] DEBUG httpclient.wire.header  - << "Date: Thu, 15 Nov
2007 06:08:46 GMT[\r][\n]"
335253 [main] DEBUG httpclient.wire.header  - << "Server:
Apache-Coyote/1.1[\r][\n]"
335253 [main] DEBUG httpclient.wire.header  - << "Set-Cookie:
JSESSIONID=9A6EE527F617A79F4BAEE4C5E8722921; Path=/[\r][\n]"
335253 [main] DEBUG httpclient.wire.header  - << "Set-Cookie:
glide_user=SC:Z3Vlc3Q=:41ec818446576292007b7661b2fcb202; Expires=Tue,
03-Dec-2075 09:22:53 GMT[\r][\n]"
335253 [main] DEBUG httpclient.wire.header  - << "Set-Cookie:
glide_user_session=SC:Z3Vlc3Q=:41ec818446576292007b7661b2fcb202[\r][\n]"
335253 [main] DEBUG httpclient.wire.header  - << "Cache-Control:
no-store[\r][\n]"
335253 [main] DEBUG httpclient.wire.header  - << "Pragma: no-cache[\r][\n]"
335253 [main] DEBUG httpclient.wire.header  - << "Expires: 0[\r][\n]"
335253 [main] DEBUG httpclient.wire.header  - << "Content-Type:
text/xml[\r][\n]"
335253 [main] DEBUG httpclient.wire.header  - << "Content-Length: 321[\r][\n]"
335253 [main] DEBUG httpclient.wire.header  - << "Connection: close[\r][\n]"

regards,
Etienne

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


Re: SOAP envelop correct, but server responding with null pointer

Posted by Amila Suriarachchi <am...@gmail.com>.
On Nov 15, 2007 7:57 PM, Anne Thomas Manes <at...@gmail.com> wrote:
> The characters before and after the message indicate that Axis2 is
> using HTTP Chunking.
yes. this should be the reason.
this link may help you.
http://www.wso2.org/library/209

Amila.
> I'm sure there's a setting that allows you to turn it off.

>
> Anne
>
>
> On Nov 14, 2007 10:25 PM, e deleflie <ed...@gmail.com> wrote:
> > Hi all,
> >
> > I've confirmed that the SOAP envelope of my request is correct (i.e.
> > the actual XML content) by testing it in soapUI. soapUI displays the
> > correct reponse from the server.
> >
> > But when Axis2 sends off that XML request, the server responds with a
> > Null Pointer. I'm guessing that the way Axis2 has wrapped the XML into
> > an HTTP request is causing problems with the server.
> >
> > Has anyone had these kinds of problems?
> >
> > Axis2 log is included below. Does anyone know what the 125[\r][\n]"
> > is? ... its look strange.
> >
> > 334912 [main] DEBUG httpclient.wire.content  - >> "125[\r][\n]"
> > 334912 [main] DEBUG httpclient.wire.content  - >> "<?xml version='1.0'
> > encoding='UTF-8'?><soapenv:Envelope
> > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:getRecords
> > xmlns:ns1="http://www.blabla.com/cmdb_rel_ci"><sys_id>451047c6c0a8016400de0ae6df9b9d76</sys_id></ns1:getRecords></soapenv:Body></soapenv:Envelope>"
> > 334912 [main] DEBUG httpclient.wire.content  - >> "[\r][\n]"
> > 334912 [main] DEBUG httpclient.wire.content  - >> "0"
> > 334912 [main] DEBUG httpclient.wire.content  - >> "[\r][\n]"
> > 334912 [main] DEBUG httpclient.wire.content  - >> "[\r][\n]"
> > 334912 [main] DEBUG
> > org.apache.commons.httpclient.methods.EntityEnclosingMethod  - Request
> > body sent
> > 335243 [main] DEBUG httpclient.wire.header  - << "HTTP/1.1 200 OK[\r][\n]"
> > 335253 [main] DEBUG httpclient.wire.header  - << "Date: Thu, 15 Nov
> > 2007 06:08:46 GMT[\r][\n]"
> > 335253 [main] DEBUG httpclient.wire.header  - << "Server:
> > Apache-Coyote/1.1[\r][\n]"
> > 335253 [main] DEBUG httpclient.wire.header  - << "Set-Cookie:
> > JSESSIONID=9A6EE527F617A79F4BAEE4C5E8722921; Path=/[\r][\n]"
> > 335253 [main] DEBUG httpclient.wire.header  - << "Set-Cookie:
> > glide_user=SC:Z3Vlc3Q=:41ec818446576292007b7661b2fcb202; Expires=Tue,
> > 03-Dec-2075 09:22:53 GMT[\r][\n]"
> > 335253 [main] DEBUG httpclient.wire.header  - << "Set-Cookie:
> > glide_user_session=SC:Z3Vlc3Q=:41ec818446576292007b7661b2fcb202[\r][\n]"
> > 335253 [main] DEBUG httpclient.wire.header  - << "Cache-Control:
> > no-store[\r][\n]"
> > 335253 [main] DEBUG httpclient.wire.header  - << "Pragma: no-cache[\r][\n]"
> > 335253 [main] DEBUG httpclient.wire.header  - << "Expires: 0[\r][\n]"
> > 335253 [main] DEBUG httpclient.wire.header  - << "Content-Type:
> > text/xml[\r][\n]"
> > 335253 [main] DEBUG httpclient.wire.header  - << "Content-Length: 321[\r][\n]"
> > 335253 [main] DEBUG httpclient.wire.header  - << "Connection: close[\r][\n]"
> >
> > regards,
> > Etienne
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>



-- 
Amila Suriarachchi,
WSO2 Inc.

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


Re: SOAP envelop correct, but server responding with null pointer

Posted by Anne Thomas Manes <at...@gmail.com>.
The characters before and after the message indicate that Axis2 is
using HTTP Chunking.
I'm sure there's a setting that allows you to turn it off.

Anne

On Nov 14, 2007 10:25 PM, e deleflie <ed...@gmail.com> wrote:
> Hi all,
>
> I've confirmed that the SOAP envelope of my request is correct (i.e.
> the actual XML content) by testing it in soapUI. soapUI displays the
> correct reponse from the server.
>
> But when Axis2 sends off that XML request, the server responds with a
> Null Pointer. I'm guessing that the way Axis2 has wrapped the XML into
> an HTTP request is causing problems with the server.
>
> Has anyone had these kinds of problems?
>
> Axis2 log is included below. Does anyone know what the 125[\r][\n]"
> is? ... its look strange.
>
> 334912 [main] DEBUG httpclient.wire.content  - >> "125[\r][\n]"
> 334912 [main] DEBUG httpclient.wire.content  - >> "<?xml version='1.0'
> encoding='UTF-8'?><soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:getRecords
> xmlns:ns1="http://www.blabla.com/cmdb_rel_ci"><sys_id>451047c6c0a8016400de0ae6df9b9d76</sys_id></ns1:getRecords></soapenv:Body></soapenv:Envelope>"
> 334912 [main] DEBUG httpclient.wire.content  - >> "[\r][\n]"
> 334912 [main] DEBUG httpclient.wire.content  - >> "0"
> 334912 [main] DEBUG httpclient.wire.content  - >> "[\r][\n]"
> 334912 [main] DEBUG httpclient.wire.content  - >> "[\r][\n]"
> 334912 [main] DEBUG
> org.apache.commons.httpclient.methods.EntityEnclosingMethod  - Request
> body sent
> 335243 [main] DEBUG httpclient.wire.header  - << "HTTP/1.1 200 OK[\r][\n]"
> 335253 [main] DEBUG httpclient.wire.header  - << "Date: Thu, 15 Nov
> 2007 06:08:46 GMT[\r][\n]"
> 335253 [main] DEBUG httpclient.wire.header  - << "Server:
> Apache-Coyote/1.1[\r][\n]"
> 335253 [main] DEBUG httpclient.wire.header  - << "Set-Cookie:
> JSESSIONID=9A6EE527F617A79F4BAEE4C5E8722921; Path=/[\r][\n]"
> 335253 [main] DEBUG httpclient.wire.header  - << "Set-Cookie:
> glide_user=SC:Z3Vlc3Q=:41ec818446576292007b7661b2fcb202; Expires=Tue,
> 03-Dec-2075 09:22:53 GMT[\r][\n]"
> 335253 [main] DEBUG httpclient.wire.header  - << "Set-Cookie:
> glide_user_session=SC:Z3Vlc3Q=:41ec818446576292007b7661b2fcb202[\r][\n]"
> 335253 [main] DEBUG httpclient.wire.header  - << "Cache-Control:
> no-store[\r][\n]"
> 335253 [main] DEBUG httpclient.wire.header  - << "Pragma: no-cache[\r][\n]"
> 335253 [main] DEBUG httpclient.wire.header  - << "Expires: 0[\r][\n]"
> 335253 [main] DEBUG httpclient.wire.header  - << "Content-Type:
> text/xml[\r][\n]"
> 335253 [main] DEBUG httpclient.wire.header  - << "Content-Length: 321[\r][\n]"
> 335253 [main] DEBUG httpclient.wire.header  - << "Connection: close[\r][\n]"
>
> regards,
> Etienne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

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