1 Reply Latest reply on Sep 9, 2002 6:58 AM by gernot

    Axis and Attchments

    gernot Newbie

      Hi!
      I' am using Jboss3.0.1RC1 and tomcat 4.0.4. When it try to get a attachment from my web service all seems to be ok. The response soap message is "multipart/related; type="text/xml";" and the attachment is also their! But on the client I always get an exception that the root element cannot be found,...
      The Serialzier and the Desializer are registered,...
      AxisFault
      faultCode: {http://xml.apache.org/axis/}Server.userException
      faultString: org.xml.sax.SAXParseException: Dokumentwurzelelement fehlt
      faultActor: null
      faultDetail:
      stackTrace: org.xml.sax.SAXParseException: Dokumentwurzelelement fehlt
      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(DeserializationContextImpl.java:213)
      at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:457)
      at org.apache.axis.Message.getSOAPEnvelope(Message.java:362)
      at org.apache.axis.client.Call.invokeEngine(Call.java:2046)
      at org.apache.axis.client.Call.invoke(Call.java:2016)
      at org.apache.axis.client.Call.invoke(Call.java:1786)
      at org.apache.axis.client.Call.invoke(Call.java:1711)
      at org.apache.axis.client.Call.invoke(Call.java:1251)
      at main.client.testClient1.main(testClient1.java:89)


      org.xml.sax.SAXParseException: Dokumentwurzelelement fehlt
      at org.apache.axis.AxisFault.makeFault(AxisFault.java:117)
      at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:462)
      at org.apache.axis.Message.getSOAPEnvelope(Message.java:362)
      at org.apache.axis.client.Call.invokeEngine(Call.java:2046)
      at org.apache.axis.client.Call.invoke(Call.java:2016)
      at org.apache.axis.client.Call.invoke(Call.java:1786)
      at org.apache.axis.client.Call.invoke(Call.java:1711)
      at org.apache.axis.client.Call.invoke(Call.java:1251)
      at main.client.testClient1.main(testClient1.java:89)
      Caused by: org.xml.sax.SAXParseException: Dokumentwurzelelement fehlt
      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(DeserializationContextImpl.java:213)
      at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:457)
      ... 7 more
      AxisFault
      faultCode: {http://xml.apache.org/axis/}Server.userException
      faultString: org.xml.sax.SAXParseException: Dokumentwurzelelement fehlt
      faultActor: null
      faultDetail:
      stackTrace: org.xml.sax.SAXParseException: Dokumentwurzelelement fehlt
      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(DeserializationContextImpl.java:213)
      at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:457)
      at org.apache.axis.Message.getSOAPEnvelope(Message.java:362)
      at org.apache.axis.client.Call.invokeEngine(Call.java:2046)
      at org.apache.axis.client.Call.invoke(Call.java:2016)
      at org.apache.axis.client.Call.invoke(Call.java:1786)
      at org.apache.axis.client.Call.invoke(Call.java:1711)
      at org.apache.axis.client.Call.invoke(Call.java:1251)
      at main.client.testClient1.main(testClient1.java:89)


      org.xml.sax.SAXParseException: Dokumentwurzelelement fehlt
      at org.apache.axis.AxisFault.makeFault(AxisFault.java:117)
      at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:462)
      at org.apache.axis.Message.getSOAPEnvelope(Message.java:362)
      at org.apache.axis.client.Call.invokeEngine(Call.java:2046)
      at org.apache.axis.client.Call.invoke(Call.java:2016)
      at org.apache.axis.client.Call.invoke(Call.java:1786)
      at org.apache.axis.client.Call.invoke(Call.java:1711)
      at org.apache.axis.client.Call.invoke(Call.java:1251)
      at main.client.testClient1.main(testClient1.java:89)
      Caused by: org.xml.sax.SAXParseException: Dokumentwurzelelement fehlt
      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(DeserializationContextImpl.java:213)
      at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:457)
      ... 7 more

      any suggestion??

      c.u.
      gernot