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 Michele Mazzucco <Mi...@ncl.ac.uk> on 2007/03/09 19:12:25 UTC

Bad request error: what's wrong?

Hi all,

I'm getting this (very) strange error while trying to send the SOAP
message listed below. Any clue? (the message is actually received, so I
don't know what's going on)


Thanks in advance,
Michele

INFO  [18:07:38,178] BootstrapHelper:register - SOAP message is 
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">

<soapenv:Header>
	<node:qosp xmlns:node="http://ncl.ac.uk/qosp">
		<node:messageType>Newnode</node:messageType>
	</node:qosp>
</soapenv:Header>
<soapenv:Body>
	<node:addNode xmlns:node="http://ncl.ac.uk/qosp">
		<node:name>127.0.0.2:18080</node:name>
	</node:addNode>
</soapenv:Body>
</soapenv:Envelope>

ERROR [18:07:40,586] NodeModule$ListenerThread:run - Unable to register
to [http://localhost:8081/axis2/services/RoutingService]
org.apache.axis2.AxisFault: HTTP Transport error: '400' - 'Bad Request';
nested exception is:
        org.apache.axis2.AxisFault: HTTP Transport error: '400' - 'Bad
Request'; nested exception is:
        org.apache.axis2.AxisFault: HTTP Transport error: '400' - 'Bad
Request'; nested exception is:
        org.apache.axis2.AxisFault: HTTP Transport error: '400' - 'Bad
Request'
        at ncl.qosp.modules.node.NodeModule
$ListenerThread.run(NodeModule.java:211)
Caused by: org.apache.axis2.AxisFault: HTTP Transport error: '400' -
'Bad Request'; nested exception is:
        org.apache.axis2.AxisFault: HTTP Transport error: '400' - 'Bad
Request'
        at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:359)
        at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:208)
        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:519)
        at
org.apache.axis2.description.OutOnlyAxisOperationClient.execute(OutOnlyAxisOperation.java:250)
        at
ncl.qosp.modules.node.BootstrapHelper.register(BootstrapHelper.java:230)
        at ncl.qosp.modules.node.NodeModule
$ListenerThread.run(NodeModule.java:208)
Caused by: org.apache.axis2.AxisFault: HTTP Transport error: '400' -
'Bad Request'
        at
org.apache.axis2.transport.http.SOAPOverHTTPSender.sendViaPost(SOAPOverHTTPSender.java:202)
        at
org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:57)
        at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:349)
        ... 5 more

ncl.qosp.modules.node.NodeModule$ListenerThread.run(NodeModule.java:215)
ERROR [Thread-1] - Unable to register to
[http://localhost:8081/axis2/services/RoutingService]
org.apache.axis2.AxisFault: HTTP Transport error: '400' - 'Bad Request';
nested exception is:
        org.apache.axis2.AxisFault: HTTP Transport error: '400' - 'Bad
Request'; nested exception is:
        org.apache.axis2.AxisFault: HTTP Transport error: '400' - 'Bad
Request'; nested exception is:
        org.apache.axis2.AxisFault: HTTP Transport error: '400' - 'Bad
Request'
        at ncl.qosp.modules.node.NodeModule
$ListenerThread.run(NodeModule.java:211)
Caused by: org.apache.axis2.AxisFault: HTTP Transport error: '400' -
'Bad Request'; nested exception is:
        org.apache.axis2.AxisFault: HTTP Transport error: '400' - 'Bad
Request'
        at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:359)
        at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:208)
        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:519)
        at
org.apache.axis2.description.OutOnlyAxisOperationClient.execute(OutOnlyAxisOperation.java:250)
        at
ncl.qosp.modules.node.BootstrapHelper.register(BootstrapHelper.java:230)
        at ncl.qosp.modules.node.NodeModule
$ListenerThread.run(NodeModule.java:208)
Caused by: org.apache.axis2.AxisFault: HTTP Transport error: '400' -
'Bad Request'
        at
org.apache.axis2.transport.http.SOAPOverHTTPSender.sendViaPost(SOAPOverHTTPSender.java:202)
        at
org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:57)
        at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:349)
        ... 5 more



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


[axis2] Re: Bad request error: what's wrong?

Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
Any clue?

On Fri, 2007-03-09 at 18:16 +0000, Michele Mazzucco wrote:
> Some more detail below but I think the message is correct, isn't it?
> 
> INFO  [18:15:28,745] BootstrapHelper:register - SOAP message is <?xml
> version='1.0' encoding='utf-8'?><soapenv:Envelope
> xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Header><node:qosp xmlns:node="http://ncl.ac.uk/qosp"><node:messageType>New node</node:messageType></node:qosp></soapenv:Header><soapenv:Body><node:addNode xmlns:node="http://ncl.ac.uk/qosp"><node:name>127.0.0.2:18080</node:name></node:addNode></soapenv:Body></soapenv:Envelope>
> ERROR [18:15:28,802] NodeModule$ListenerThread:run - Unable to register
> to [http://localhost:8081/axis2/services/RoutingService]
> org.apache.axis2.AxisFault: Invalid null character in text to output;
> nested exception is:
>         com.ctc.wstx.exc.WstxIOException: Invalid null character in text
> to output; nested exception is:
>         org.apache.axis2.AxisFault: Invalid null character in text to
> output; nested exception is:
>         com.ctc.wstx.exc.WstxIOException: Invalid null character in text
> to output; nested exception is:
>         org.apache.axis2.AxisFault: Invalid null character in text to
> output; nested exception is:
>         com.ctc.wstx.exc.WstxIOException: Invalid null character in text
> to output; nested exception is:
>         org.apache.axis2.AxisFault: Invalid null character in text to
> output; nested exception is:
>         com.ctc.wstx.exc.WstxIOException: Invalid null character in text
> to output; nested exception is:
>         org.apache.axis2.AxisFault: Invalid null character in text to
> output; nested exception is:
>         com.ctc.wstx.exc.WstxIOException: Invalid null character in text
> to output; nested exception is:
>         org.apache.axis2.AxisFault: Invalid null character in text to
> output; nested exception is:
>         com.ctc.wstx.exc.WstxIOException: Invalid null character in text
> to output; nested exception is:
>         org.apache.axis2.AxisFault: Invalid null character in text to
> output; nested exception is:
>         com.ctc.wstx.exc.WstxIOException: Invalid null character in text
> to output; nested exception is:
>         org.apache.axis2.AxisFault: Invalid null character in text to
> output; nested exception is:
>         com.ctc.wstx.exc.WstxIOException: Invalid null character in text
> to output
>         at ncl.qosp.modules.node.NodeModule
> $ListenerThread.run(NodeModule.java:211)
> Caused by: org.apache.axis2.AxisFault: Invalid null character in text to
> output; nested exception is:
>         com.ctc.wstx.exc.WstxIOException: Invalid null character in text
> to output; nested exception is:
>         org.apache.axis2.AxisFault: Invalid null character in text to
> output; nested exception is:
>         com.ctc.wstx.exc.WstxIOException: Invalid null character in text
> to output; nested exception is:
>         org.apache.axis2.AxisFault: Invalid null character in text to
> output; nested exception is:
>         com.ctc.wstx.exc.WstxIOException: Invalid null character in text
> to output; nested exception is:
>         org.apache.axis2.AxisFault: Invalid null character in text to
> output; nested exception is:
>         com.ctc.wstx.exc.WstxIOException: Invalid null character in text
> to output
>         at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:359)
>         at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:208)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:519)
>         at
> org.apache.axis2.description.OutOnlyAxisOperationClient.execute(OutOnlyAxisOperation.java:250)
>         at
> ncl.qosp.modules.node.BootstrapHelper.register(BootstrapHelper.java:230)
>         at ncl.qosp.modules.node.NodeModule
> $ListenerThread.run(NodeModule.java:208)
> Caused by: org.apache.axis2.AxisFault: Invalid null character in text to
> output; nested exception is:
>         com.ctc.wstx.exc.WstxIOException: Invalid null character in text
> to output; nested exception is:
>         org.apache.axis2.AxisFault: Invalid null character in text to
> output; nested exception is:
>         com.ctc.wstx.exc.WstxIOException: Invalid null character in text
> to output
>         at
> org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:99)
>         at
> org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:495)
>         at
> org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973)
>         at
> org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)
>         at
> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
>         at
> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
>         at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
>         at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
>         at
> org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:547)
>         at
> org.apache.axis2.transport.http.SOAPOverHTTPSender.sendViaPost(SOAPOverHTTPSender.java:177)
>         at
> org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:57)
>         at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:349)
>         ... 5 more
> Caused by: org.apache.axis2.AxisFault: Invalid null character in text to
> output; nested exception is:
>         com.ctc.wstx.exc.WstxIOException: Invalid null character in text
> to output
>         at
> org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:59)
>         at
> org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:85)
>         ... 16 more
> Caused by: com.ctc.wstx.exc.WstxIOException: Invalid null character in
> text to output
>         at
> com.ctc.wstx.sw.BaseStreamWriter.writeCharacters(BaseStreamWriter.java:505)
>         at
> org.apache.axiom.om.impl.MTOMXMLStreamWriter.writeCharacters(MTOMXMLStreamWriter.java:190)
>         at
> org.apache.axiom.om.impl.llom.OMTextImpl.writeOutput(OMTextImpl.java:212)
>         at
> org.apache.axiom.om.impl.llom.OMTextImpl.internalSerializeLocal(OMTextImpl.java:439)
>         at
> org.apache.axiom.om.impl.llom.OMTextImpl.internalSerializeAndConsume(OMTextImpl.java:433)
>         at
> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:819)
>         at
> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:848)
>         at
> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:819)
>         at
> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:848)
>         at
> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:819)
>         at
> org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:180)
>         at
> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:848)
>         at
> org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:419)
>         at
> org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:55)
>         ... 17 more
> Caused by: java.io.IOException: Invalid null character in text to output
>         at
> com.ctc.wstx.sw.XmlWriter.throwInvalidChar(XmlWriter.java:518)
>         at
> com.ctc.wstx.sw.BufferingXmlWriter.writeCharacters(BufferingXmlWriter.java:501)
>         at
> com.ctc.wstx.sw.BaseStreamWriter.writeCharacters(BaseStreamWriter.java:503)
>         ... 30 more
> 
> 
> On Fri, 2007-03-09 at 18:12 +0000, Michele Mazzucco wrote:
> > Hi all,
> > 
> > I'm getting this (very) strange error while trying to send the SOAP
> > message listed below. Any clue? (the message is actually received, so I
> > don't know what's going on)
> > 
> > 
> > Thanks in advance,
> > Michele
> > 
> > INFO  [18:07:38,178] BootstrapHelper:register - SOAP message is 
> > <?xml version='1.0' encoding='utf-8'?>
> > <soapenv:Envelope
> > xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> > 
> > <soapenv:Header>
> > 	<node:qosp xmlns:node="http://ncl.ac.uk/qosp">
> > 		<node:messageType>Newnode</node:messageType>
> > 	</node:qosp>
> > </soapenv:Header>
> > <soapenv:Body>
> > 	<node:addNode xmlns:node="http://ncl.ac.uk/qosp">
> > 		<node:name>127.0.0.2:18080</node:name>
> > 	</node:addNode>
> > </soapenv:Body>
> > </soapenv:Envelope>
> > 
> > ERROR [18:07:40,586] NodeModule$ListenerThread:run - Unable to register
> > to [http://localhost:8081/axis2/services/RoutingService]
> > org.apache.axis2.AxisFault: HTTP Transport error: '400' - 'Bad Request';
> > nested exception is:
> >         org.apache.axis2.AxisFault: HTTP Transport error: '400' - 'Bad
> > Request'; nested exception is:
> >         org.apache.axis2.AxisFault: HTTP Transport error: '400' - 'Bad
> > Request'; nested exception is:
> >         org.apache.axis2.AxisFault: HTTP Transport error: '400' - 'Bad
> > Request'
> >         at ncl.qosp.modules.node.NodeModule
> > $ListenerThread.run(NodeModule.java:211)
> > Caused by: org.apache.axis2.AxisFault: HTTP Transport error: '400' -
> > 'Bad Request'; nested exception is:
> >         org.apache.axis2.AxisFault: HTTP Transport error: '400' - 'Bad
> > Request'
> >         at
> > org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:359)
> >         at
> > org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:208)
> >         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:519)
> >         at
> > org.apache.axis2.description.OutOnlyAxisOperationClient.execute(OutOnlyAxisOperation.java:250)
> >         at
> > ncl.qosp.modules.node.BootstrapHelper.register(BootstrapHelper.java:230)
> >         at ncl.qosp.modules.node.NodeModule
> > $ListenerThread.run(NodeModule.java:208)
> > Caused by: org.apache.axis2.AxisFault: HTTP Transport error: '400' -
> > 'Bad Request'
> >         at
> > org.apache.axis2.transport.http.SOAPOverHTTPSender.sendViaPost(SOAPOverHTTPSender.java:202)
> >         at
> > org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:57)
> >         at
> > org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:349)
> >         ... 5 more
> > 
> > ncl.qosp.modules.node.NodeModule$ListenerThread.run(NodeModule.java:215)
> > ERROR [Thread-1] - Unable to register to
> > [http://localhost:8081/axis2/services/RoutingService]
> > org.apache.axis2.AxisFault: HTTP Transport error: '400' - 'Bad Request';
> > nested exception is:
> >         org.apache.axis2.AxisFault: HTTP Transport error: '400' - 'Bad
> > Request'; nested exception is:
> >         org.apache.axis2.AxisFault: HTTP Transport error: '400' - 'Bad
> > Request'; nested exception is:
> >         org.apache.axis2.AxisFault: HTTP Transport error: '400' - 'Bad
> > Request'
> >         at ncl.qosp.modules.node.NodeModule
> > $ListenerThread.run(NodeModule.java:211)
> > Caused by: org.apache.axis2.AxisFault: HTTP Transport error: '400' -
> > 'Bad Request'; nested exception is:
> >         org.apache.axis2.AxisFault: HTTP Transport error: '400' - 'Bad
> > Request'
> >         at
> > org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:359)
> >         at
> > org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:208)
> >         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:519)
> >         at
> > org.apache.axis2.description.OutOnlyAxisOperationClient.execute(OutOnlyAxisOperation.java:250)
> >         at
> > ncl.qosp.modules.node.BootstrapHelper.register(BootstrapHelper.java:230)
> >         at ncl.qosp.modules.node.NodeModule
> > $ListenerThread.run(NodeModule.java:208)
> > Caused by: org.apache.axis2.AxisFault: HTTP Transport error: '400' -
> > 'Bad Request'
> >         at
> > org.apache.axis2.transport.http.SOAPOverHTTPSender.sendViaPost(SOAPOverHTTPSender.java:202)
> >         at
> > org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:57)
> >         at
> > org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:349)
> >         ... 5 more
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > 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
> 


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


Re: Bad request error: what's wrong?

Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
Some more detail below but I think the message is correct, isn't it?

INFO  [18:15:28,745] BootstrapHelper:register - SOAP message is <?xml
version='1.0' encoding='utf-8'?><soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Header><node:qosp xmlns:node="http://ncl.ac.uk/qosp"><node:messageType>New node</node:messageType></node:qosp></soapenv:Header><soapenv:Body><node:addNode xmlns:node="http://ncl.ac.uk/qosp"><node:name>127.0.0.2:18080</node:name></node:addNode></soapenv:Body></soapenv:Envelope>
ERROR [18:15:28,802] NodeModule$ListenerThread:run - Unable to register
to [http://localhost:8081/axis2/services/RoutingService]
org.apache.axis2.AxisFault: Invalid null character in text to output;
nested exception is:
        com.ctc.wstx.exc.WstxIOException: Invalid null character in text
to output; nested exception is:
        org.apache.axis2.AxisFault: Invalid null character in text to
output; nested exception is:
        com.ctc.wstx.exc.WstxIOException: Invalid null character in text
to output; nested exception is:
        org.apache.axis2.AxisFault: Invalid null character in text to
output; nested exception is:
        com.ctc.wstx.exc.WstxIOException: Invalid null character in text
to output; nested exception is:
        org.apache.axis2.AxisFault: Invalid null character in text to
output; nested exception is:
        com.ctc.wstx.exc.WstxIOException: Invalid null character in text
to output; nested exception is:
        org.apache.axis2.AxisFault: Invalid null character in text to
output; nested exception is:
        com.ctc.wstx.exc.WstxIOException: Invalid null character in text
to output; nested exception is:
        org.apache.axis2.AxisFault: Invalid null character in text to
output; nested exception is:
        com.ctc.wstx.exc.WstxIOException: Invalid null character in text
to output; nested exception is:
        org.apache.axis2.AxisFault: Invalid null character in text to
output; nested exception is:
        com.ctc.wstx.exc.WstxIOException: Invalid null character in text
to output; nested exception is:
        org.apache.axis2.AxisFault: Invalid null character in text to
output; nested exception is:
        com.ctc.wstx.exc.WstxIOException: Invalid null character in text
to output
        at ncl.qosp.modules.node.NodeModule
$ListenerThread.run(NodeModule.java:211)
Caused by: org.apache.axis2.AxisFault: Invalid null character in text to
output; nested exception is:
        com.ctc.wstx.exc.WstxIOException: Invalid null character in text
to output; nested exception is:
        org.apache.axis2.AxisFault: Invalid null character in text to
output; nested exception is:
        com.ctc.wstx.exc.WstxIOException: Invalid null character in text
to output; nested exception is:
        org.apache.axis2.AxisFault: Invalid null character in text to
output; nested exception is:
        com.ctc.wstx.exc.WstxIOException: Invalid null character in text
to output; nested exception is:
        org.apache.axis2.AxisFault: Invalid null character in text to
output; nested exception is:
        com.ctc.wstx.exc.WstxIOException: Invalid null character in text
to output
        at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:359)
        at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:208)
        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:519)
        at
org.apache.axis2.description.OutOnlyAxisOperationClient.execute(OutOnlyAxisOperation.java:250)
        at
ncl.qosp.modules.node.BootstrapHelper.register(BootstrapHelper.java:230)
        at ncl.qosp.modules.node.NodeModule
$ListenerThread.run(NodeModule.java:208)
Caused by: org.apache.axis2.AxisFault: Invalid null character in text to
output; nested exception is:
        com.ctc.wstx.exc.WstxIOException: Invalid null character in text
to output; nested exception is:
        org.apache.axis2.AxisFault: Invalid null character in text to
output; nested exception is:
        com.ctc.wstx.exc.WstxIOException: Invalid null character in text
to output
        at
org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:99)
        at
org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:495)
        at
org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973)
        at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)
        at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
        at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
        at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
        at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
        at
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:547)
        at
org.apache.axis2.transport.http.SOAPOverHTTPSender.sendViaPost(SOAPOverHTTPSender.java:177)
        at
org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:57)
        at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:349)
        ... 5 more
Caused by: org.apache.axis2.AxisFault: Invalid null character in text to
output; nested exception is:
        com.ctc.wstx.exc.WstxIOException: Invalid null character in text
to output
        at
org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:59)
        at
org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:85)
        ... 16 more
Caused by: com.ctc.wstx.exc.WstxIOException: Invalid null character in
text to output
        at
com.ctc.wstx.sw.BaseStreamWriter.writeCharacters(BaseStreamWriter.java:505)
        at
org.apache.axiom.om.impl.MTOMXMLStreamWriter.writeCharacters(MTOMXMLStreamWriter.java:190)
        at
org.apache.axiom.om.impl.llom.OMTextImpl.writeOutput(OMTextImpl.java:212)
        at
org.apache.axiom.om.impl.llom.OMTextImpl.internalSerializeLocal(OMTextImpl.java:439)
        at
org.apache.axiom.om.impl.llom.OMTextImpl.internalSerializeAndConsume(OMTextImpl.java:433)
        at
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:819)
        at
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:848)
        at
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:819)
        at
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:848)
        at
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:819)
        at
org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:180)
        at
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:848)
        at
org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:419)
        at
org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:55)
        ... 17 more
Caused by: java.io.IOException: Invalid null character in text to output
        at
com.ctc.wstx.sw.XmlWriter.throwInvalidChar(XmlWriter.java:518)
        at
com.ctc.wstx.sw.BufferingXmlWriter.writeCharacters(BufferingXmlWriter.java:501)
        at
com.ctc.wstx.sw.BaseStreamWriter.writeCharacters(BaseStreamWriter.java:503)
        ... 30 more


On Fri, 2007-03-09 at 18:12 +0000, Michele Mazzucco wrote:
> Hi all,
> 
> I'm getting this (very) strange error while trying to send the SOAP
> message listed below. Any clue? (the message is actually received, so I
> don't know what's going on)
> 
> 
> Thanks in advance,
> Michele
> 
> INFO  [18:07:38,178] BootstrapHelper:register - SOAP message is 
> <?xml version='1.0' encoding='utf-8'?>
> <soapenv:Envelope
> xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> 
> <soapenv:Header>
> 	<node:qosp xmlns:node="http://ncl.ac.uk/qosp">
> 		<node:messageType>Newnode</node:messageType>
> 	</node:qosp>
> </soapenv:Header>
> <soapenv:Body>
> 	<node:addNode xmlns:node="http://ncl.ac.uk/qosp">
> 		<node:name>127.0.0.2:18080</node:name>
> 	</node:addNode>
> </soapenv:Body>
> </soapenv:Envelope>
> 
> ERROR [18:07:40,586] NodeModule$ListenerThread:run - Unable to register
> to [http://localhost:8081/axis2/services/RoutingService]
> org.apache.axis2.AxisFault: HTTP Transport error: '400' - 'Bad Request';
> nested exception is:
>         org.apache.axis2.AxisFault: HTTP Transport error: '400' - 'Bad
> Request'; nested exception is:
>         org.apache.axis2.AxisFault: HTTP Transport error: '400' - 'Bad
> Request'; nested exception is:
>         org.apache.axis2.AxisFault: HTTP Transport error: '400' - 'Bad
> Request'
>         at ncl.qosp.modules.node.NodeModule
> $ListenerThread.run(NodeModule.java:211)
> Caused by: org.apache.axis2.AxisFault: HTTP Transport error: '400' -
> 'Bad Request'; nested exception is:
>         org.apache.axis2.AxisFault: HTTP Transport error: '400' - 'Bad
> Request'
>         at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:359)
>         at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:208)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:519)
>         at
> org.apache.axis2.description.OutOnlyAxisOperationClient.execute(OutOnlyAxisOperation.java:250)
>         at
> ncl.qosp.modules.node.BootstrapHelper.register(BootstrapHelper.java:230)
>         at ncl.qosp.modules.node.NodeModule
> $ListenerThread.run(NodeModule.java:208)
> Caused by: org.apache.axis2.AxisFault: HTTP Transport error: '400' -
> 'Bad Request'
>         at
> org.apache.axis2.transport.http.SOAPOverHTTPSender.sendViaPost(SOAPOverHTTPSender.java:202)
>         at
> org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:57)
>         at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:349)
>         ... 5 more
> 
> ncl.qosp.modules.node.NodeModule$ListenerThread.run(NodeModule.java:215)
> ERROR [Thread-1] - Unable to register to
> [http://localhost:8081/axis2/services/RoutingService]
> org.apache.axis2.AxisFault: HTTP Transport error: '400' - 'Bad Request';
> nested exception is:
>         org.apache.axis2.AxisFault: HTTP Transport error: '400' - 'Bad
> Request'; nested exception is:
>         org.apache.axis2.AxisFault: HTTP Transport error: '400' - 'Bad
> Request'; nested exception is:
>         org.apache.axis2.AxisFault: HTTP Transport error: '400' - 'Bad
> Request'
>         at ncl.qosp.modules.node.NodeModule
> $ListenerThread.run(NodeModule.java:211)
> Caused by: org.apache.axis2.AxisFault: HTTP Transport error: '400' -
> 'Bad Request'; nested exception is:
>         org.apache.axis2.AxisFault: HTTP Transport error: '400' - 'Bad
> Request'
>         at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:359)
>         at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:208)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:519)
>         at
> org.apache.axis2.description.OutOnlyAxisOperationClient.execute(OutOnlyAxisOperation.java:250)
>         at
> ncl.qosp.modules.node.BootstrapHelper.register(BootstrapHelper.java:230)
>         at ncl.qosp.modules.node.NodeModule
> $ListenerThread.run(NodeModule.java:208)
> Caused by: org.apache.axis2.AxisFault: HTTP Transport error: '400' -
> 'Bad Request'
>         at
> org.apache.axis2.transport.http.SOAPOverHTTPSender.sendViaPost(SOAPOverHTTPSender.java:202)
>         at
> org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:57)
>         at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:349)
>         ... 5 more
> 
> 
> 
> ---------------------------------------------------------------------
> 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