axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorge Fernandez <informaticu007-...@yahoo.es>
Subject RE: Invalin null character error
Date Wed, 29 Aug 2007 21:50:44 GMT
Hi Dennis,

I got this error when I tried to return a Java char type from my service. I was recovering
it from a database and when it hadn't got any value there, the char I got was a non printable
ASCII character and when I tried to serialize it to the soap message I think I got the same
exception. So maybe there are problems with non printable characters but it's only my guess.
Hope this helps.


Regards,

Jorge Fernández



Dennis Schaaf <dennis@dennisschaaf.com> escribió: Hey,

I am using ruby's soap4r library to connect to my axis2 application. I 
tried sending across some of my own classes, hoping that they'd be 
"serialized" properly and then rebuilt on the ruby end.

But that does not happen. When I return such a class I get this error, 
which doesn't seem to have anything to do with what I might be doing wrong.

Does anyone have any idea what might be causing this? What more 
information might be usefull, wsdl files?

thanks for your help

dennis




the trace from the axis2 server

> org.apache.axis2.AxisFault: Invalid null character in text to output
>
>         at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
>
>         at 
> org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:72)
>
>         at 
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream(CommonsHTTPTransportSender.java:294)
>
>         at 
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:211)
>
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
>
>         at 
> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
>
>         at 
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96)
>
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
>
>         at 
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
>
>         at 
> org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:256)
>
>         at 
> org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService.java:259)
>
>         at 
> org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:166)
>
>         at 
> org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:85)
>
>         at 
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
>
>         at 
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
>
>         at java.lang.Thread.run(Thread.java:619)
>
> Caused by: com.ctc.wstx.exc.WstxIOException: Invalid null character in 
> text to output
>
>         at 
> com.ctc.wstx.sw.BaseStreamWriter.writeCharacters(BaseStreamWriter.java:520)
>
>         at 
> org.apache.axiom.om.impl.MTOMXMLStreamWriter.writeCharacters(MTOMXMLStreamWriter.java:196)
>
>         at 
> org.apache.axiom.om.impl.llom.OMTextImpl.writeOutput(OMTextImpl.java:212)
>
>         at 
> org.apache.axiom.om.impl.llom.OMTextImpl.internalSerializeLocal(OMTextImpl.java:371)
>
>         at 
> org.apache.axiom.om.impl.llom.OMTextImpl.internalSerializeAndConsume(OMTextImpl.java:365)
>
>         at 
> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:785)
>
>         at 
> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:814)
>
>         at 
> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:785)
>
>         at 
> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:814)
>
>         at 
> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:785)
>
>         at 
> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:814)
>
>         at 
> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:785)
>
>         at 
> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:814)
>
>         at 
> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:785)
>
>         at 
> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:814)
>
>         at 
> org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.serializeInternally(SOAPEnvelopeImpl.java:237)
>
>         at 
> org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:225)
>
>         at 
> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:814)
>
>         at 
> org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:421)
>
>         at 
> org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:68)
>
>         ... 14 more
>
> Caused by: java.io.IOException: Invalid null character in text to output
>
>         at com.ctc.wstx.sw.XmlWriter.throwInvalidChar(XmlWriter.java:538)
>
>         at 
> com.ctc.wstx.sw.BufferingXmlWriter.writeCharacters(BufferingXmlWriter.java:453)
>
>         at 
> com.ctc.wstx.sw.BaseStreamWriter.writeCharacters(BaseStreamWriter.java:518)
>
>         ... 33 more
>

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



       
---------------------------------

Sé un Mejor Amante del Cine
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!.

Mime
View raw message