axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Ewins <Brian.Ew...@btinternet.com>
Subject Re: Message Based Web Services
Date Wed, 11 Sep 2002 13:33:56 GMT
I'd take a look at the messages going over the wire with a proxy (use 
tcptunnelgui or  capeclear's excellent and free nettool - 
http://www.capescience.com/downloads/index.shtml )

that error message means you're not actually sending xml to the 
server[1]. Its seeing the HTTP headers then a blank document or maybe 
some untagged text. Its possible that you are actually sending the doc, 
but the server isnt seeing it because you've set Content-Length: 0 or 
something like that.

-Baz

[1] I say this because its a 'Server.userException' but the stacktrace 
below it makes it look like the problem might be in the other direction. 
Either way, nettool will show you whats actually being passed.

Ed Saikali wrote:
> Hi 
> 
> I am having a very hard time tracking this AXIS error for a  message
> based web service. I have service deployed to axis and according to
> tcpmon I can see the SOAP request being sent to the localhost:8808
> (tomcat) however I keep getting this a SAX parsing exception. I tried
> stepping into the AXIS code in hope of finding out why what was going on
> but no luck so far. Any help would be appreciated.
> 
> Thanks
> Ed 
> 
> ------------
> AxisFault
>  faultCode: {http://xml.apache.org/axis/}Server.userException
>  faultString: org.xml.sax.SAXParseException: Document root element is
> missing.
>  faultActor: null
>  faultDetail: 
> 	stackTrace: org.xml.sax.SAXParseException: Document root element
> is missing.
> 	at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
> 	at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3170)
> 	at
> org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:501)
> 	at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
> 	at
> org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
> 	at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
> 	at
> org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializatio
> nContextImpl.java:219)
> 	at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:535)
> 	at org.apache.axis.Message.getSOAPEnvelope(Message.java:368)
> 	at org.apache.axis.client.Call.invokeEngine(Call.java:2103)
> 	at org.apache.axis.client.Call.invoke(Call.java:2073)
> 	at org.apache.axis.client.Call.invoke(Call.java:1287)
> 	at
> com.octanewave.nexusws.order.OrderWebServiceClient.main(OrderWebServiceC
> lient.java:44)
> 
> org.xml.sax.SAXParseException: Document root element is missing.
> 	at org.apache.axis.AxisFault.makeFault(AxisFault.java:115)
> 	at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:540)
> 	at org.apache.axis.Message.getSOAPEnvelope(Message.java:368)
> 	at org.apache.axis.client.Call.invokeEngine(Call.java:2103)
> 	at org.apache.axis.client.Call.invoke(Call.java:2073)
> 	at org.apache.axis.client.Call.invoke(Call.java:1287)
> 	at
> com.octanewave.nexusws.order.OrderWebServiceClient.main(OrderWebServiceC
> lient.java:44)
> Caused by: org.xml.sax.SAXParseException: Document root element is
> missing.
> 	at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
> 	at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3170)
> 	at
> org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:501)
> 	at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
> 	at
> org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
> 	at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
> 	at
> org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializatio
> nContextImpl.java:219)
> 	at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:535)
> 	... 5 more
> Exception in thread "main" 
> 
> 
> 


Mime
View raw message