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 Kumar <ba...@gmail.com> on 2005/07/07 14:00:13 UTC

"Unexpected end of file after null" Fault

Hi All,

I have a web service developed using .NET SOAP Toolkit and when I try
to consume that service using AXIS 1.2 Final java client I am getting
below soap response message from service. Now can anyone please tell
what am I missing here.

The request soap message that the client generates conforms to the
wsdl and still why the service complains with below axis fault :


AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: org.xml.sax.SAXParseException: Unexpected end of file after null
 faultActor: 
 faultNode: 
 faultDetail: 
	{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException:
Unexpected end of file after null
	at com.bluecast.xml.Piccolo.reportFatalError(Unknown Source)
	at com.bluecast.xml.Piccolo.reportFatalError(Unknown Source)
	at com.bluecast.xml.Piccolo.yyerror(Unknown Source)
	at com.bluecast.xml.Piccolo.yyparse(Unknown Source)
	at com.bluecast.xml.Piccolo.parse(Unknown Source)
	at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
	at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:226)
	at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:645)
	at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
	at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
	at org.apache.axis.client.AxisClient.invoke(AxisClient.java:173)
	at org.apache.axis.client.Call.invokeEngine(Call.java:2719)
	at org.apache.axis.client.Call.invoke(Call.java:2702)
	at org.apache.axis.client.Call.invoke(Call.java:2378)
	at org.apache.axis.client.Call.invoke(Call.java:2301)
	at org.apache.axis.client.Call.invoke(Call.java:1758)
	at amla.ARSoapStub.getAR(ARSoapStub.java:186)
	at amla.Client.query(Client.java:47)
	at amla.Client.main(Client.java:81)

	{http://xml.apache.org/axis/}hostname:HYDDL0337

org.xml.sax.SAXParseException: Unexpected end of file after null
	at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
	at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:650)
	at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
	at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
	at org.apache.axis.client.AxisClient.invoke(AxisClient.java:173)
	at org.apache.axis.client.Call.invokeEngine(Call.java:2719)
	at org.apache.axis.client.Call.invoke(Call.java:2702)
	at org.apache.axis.client.Call.invoke(Call.java:2378)
	at org.apache.axis.client.Call.invoke(Call.java:2301)
	at org.apache.axis.client.Call.invoke(Call.java:1758)
	at amla.ARSoapStub.getAR(ARSoapStub.java:186)
	at amla.Client.query(Client.java:47)
	at amla.Client.main(Client.java:81)
Caused by: org.xml.sax.SAXParseException: Unexpected end of file after null
	at com.bluecast.xml.Piccolo.reportFatalError(Unknown Source)
	at com.bluecast.xml.Piccolo.reportFatalError(Unknown Source)
	at com.bluecast.xml.Piccolo.yyerror(Unknown Source)
	at com.bluecast.xml.Piccolo.yyparse(Unknown Source)
	at com.bluecast.xml.Piccolo.parse(Unknown Source)
	at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
	at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:226)
	at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:645)
	... 11 more




Thanks & Regards,
Kumar.

Re: "Unexpected end of file after null" Fault

Posted by Anne Thomas Manes <at...@gmail.com>.
Tell us more about your client.

On 7/7/05, Kumar <ba...@gmail.com> wrote:
> Hi All,
> 
> For the same service, when I switch my client to AXIS 1.2.1 Final I am
> getting below exception from server. Can anyone please tell how to
> debug this problem further :
> 
> 
> org.xml.sax.SAXParseException: Document root element is missing.
>        at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
>        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701)
>        at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
>        at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
>        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
>        at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
>        at org.apache.axis.client.Call.invoke(Call.java:2748)
>        at org.apache.axis.client.Call.invoke(Call.java:2424)
>        at org.apache.axis.client.Call.invoke(Call.java:2347)
>        at org.apache.axis.client.Call.invoke(Call.java:1804)
>        at amla.ARSoap_BindingStub.getAR(ARSoap_BindingStub.java:193)
>        at Client.main(Client.java:30)
> Caused by: org.xml.sax.SAXParseException: Document root element is missing.
>        at org.apache.crimson.parser.Parser2.fatal(Unknown Source)
>        at org.apache.crimson.parser.Parser2.fatal(Unknown Source)
>        at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)
>        at org.apache.crimson.parser.Parser2.parse(Unknown Source)
>        at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)
>        at javax.xml.parsers.SAXParser.parse(Unknown Source)
>        at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
>        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
>        ... 10 more
> 
> 
> 
> Thanks & Regards,
> Kumar.
>

Re: "Unexpected end of file after null" Fault

Posted by Kumar <ba...@gmail.com>.
Hi All,

For the same service, when I switch my client to AXIS 1.2.1 Final I am
getting below exception from server. Can anyone please tell how to
debug this problem further :


org.xml.sax.SAXParseException: Document root element is missing.
        at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701)
        at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
        at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
        at org.apache.axis.client.Call.invoke(Call.java:2748)
        at org.apache.axis.client.Call.invoke(Call.java:2424)
        at org.apache.axis.client.Call.invoke(Call.java:2347)
        at org.apache.axis.client.Call.invoke(Call.java:1804)
        at amla.ARSoap_BindingStub.getAR(ARSoap_BindingStub.java:193)
        at Client.main(Client.java:30)
Caused by: org.xml.sax.SAXParseException: Document root element is missing.
        at org.apache.crimson.parser.Parser2.fatal(Unknown Source)
        at org.apache.crimson.parser.Parser2.fatal(Unknown Source)
        at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)
        at org.apache.crimson.parser.Parser2.parse(Unknown Source)
        at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(Unknown Source)
        at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
        ... 10 more



Thanks & Regards,
Kumar.