The Artima Developer Community
Sponsored Link

Web Services Forum
axis: returning custom object

4 replies on 1 page. Most recent reply: Jan 10, 2007 10:20 PM by Deepak Kalra

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 4 replies on 1 page
Usman Ghani

Posts: 1
Nickname: ghani900
Registered: Jan, 2006

axis: returning custom object Posted: Jan 24, 2006 8:50 AM
Reply to this message Reply
Advertisement
ERROR:
org.xml.sax.SAXParseException: Premature end of file.

Using axis for WS, I created a custom object Custom, and a CustomHolder class for it. When I call the service which returns Custom object it throws me following error:

AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXParseException: Premature end of file.
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException: Premature end of file.
at com.documentum.xerces_2_3_0.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.ja va:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecke r.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at com.sp.dctm.services.ControllerService.testFolderCreation(ControllerService.jav a:113)
at com.sp.dctm.services.ControllerService.main(ControllerService.java:138)

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

org.xml.sax.SAXParseException: Premature end of file.
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:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecke r.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at com.sp.dctm.services.ControllerService.testFolderCreation(ControllerService.jav a:113)
at com.sp.dctm.services.ControllerService.main(ControllerService.java:138)
Caused by: org.xml.sax.SAXParseException: Premature end of file.
at com.documentum.xerces_2_3_0.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.ja va:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
... 10 more
org.xml.sax.SAXParseException: Premature end of file.
at com.documentum.xerces_2_3_0.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.ja va:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecke r.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at com.sp.dctm.services.ControllerService.testFolderCreation(ControllerService.jav a:113)
at com.sp.dctm.services.ControllerService.main(ControllerService.java:138)


Jason Losco

Posts: 1
Nickname: jasonlosco
Registered: Mar, 2006

Re: axis: returning custom object Posted: Mar 3, 2006 5:40 AM
Reply to this message Reply
Did you ever figure this out? I'm having the same problem, and I've searched everywhere for a solution.'

Thanks.

jason

Praveen G

Posts: 1
Nickname: pguduru
Registered: Apr, 2006

Re: axis: returning custom object Posted: Apr 19, 2006 2:56 PM
Reply to this message Reply
I am having the same problem. Could you let me know if you any of you find the solution?

Raja Chattopadhyay

Posts: 1
Nickname: raja1103
Registered: Jan, 2007

Re: axis: returning custom object Posted: Jan 3, 2007 2:36 AM
Reply to this message Reply
I am facing the same problem. please help me.

Deepak Kalra

Posts: 2
Nickname: kalra
Registered: Jan, 2007

Re: axis: returning custom object Posted: Jan 10, 2007 10:20 PM
Reply to this message Reply
did you specify typemapping in the wsdd file

Flat View: This topic has 4 replies on 1 page
Topic: How to save all search engine results urls in a text file Previous Topic   Next Topic Topic: Java Studio Creator --> web service --> spring --> hibernate --> database

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use