You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Glen Daniels <gd...@macromedia.com> on 2002/06/19 18:17:00 UTC

RE: DO NOT REPLY [Bug 10019] New: - re: Vector class does not s erialize or deserialize properly

This is an interesting issue.  There may be lots of cases like this, where the user wants to expose methods which only reflect superclasses or containers, and also needs schema for a variable number of other classes as well.

We need something like a "referencedClasses" parameter for Java2WSDL - this could go in the WSDD for autogeneration, and in a config file for command line generation.

--Glen

> -----Original Message-----
> From: bugzilla@apache.org [mailto:bugzilla@apache.org]
> Sent: Wednesday, June 19, 2002 12:09 PM
> To: axis-dev@xml.apache.org
> Subject: DO NOT REPLY [Bug 10019] New: - re: Vector class does not
> serialize or deserialize properly
> 
> 
> DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
> RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
> <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10019>.
> ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
> INSERTED IN THE BUG DATABASE.
> 
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10019
> 
> re: Vector class does not serialize or deserialize properly
> 
>            Summary: re: Vector class does not serialize or deserialize
>                     properly
>            Product: Axis
>            Version: current (nightly)
>           Platform: Sun
>                URL: 
> http://alina.acomp.usf.edu:8080/axis/services/MSLMSServe
>                     r?WSDL
>         OS/Version: Other
>             Status: NEW
>           Severity: Major
>           Priority: Other
>          Component: Serialization/Deserialization
>         AssignedTo: axis-dev@xml.apache.org
>         ReportedBy: james@usf.edu
> 
> 
> I can return strings fine, regardless of the size, but vectors
> don't work.
> 
> - Mapping Exception to AxisFault
> org.xml.sax.SAXParseException: Document root element is missing.
>         at org.apache.axis.AxisFault.makeFault(AxisFault.java:118)
>         at 
> org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:460)
> 
>         at org.apache.axis.Message.getSOAPEnvelope(Message.java:321)
>         at org.apache.axis.client.Call.invoke(Call.java:1953)
>         at org.apache.axis.client.Call.invoke(Call.java:1706)
>         at org.apache.axis.client.Call.invoke(Call.java:1634)
>         at org.apache.axis.client.Call.invoke(Call.java:1183)
>         at
> 
> 
> edu.usf.acomp.axis.MSLMSServerSoapBindingStub.lookupLocations
> (MSLMSServerSoapBindingStub.java:339)
> 
> Caused by: org.xml.sax.SAXParseException: Document root element is
> missing.
>         at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3153)
>         at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3141)
>         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:433)
>         at javax.xml.parsers.SAXParser.parse(SAXParser.java:347)
>         at
> 
> 
> org.apache.axis.encoding.DeserializationContextImpl.parse
> (DeserializationContextImpl.java:216)
> 
>         at 
> org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:455)
> 
>         ... 23 more
> 
>   My WSDL is at
> http://alina.acomp.usf.edu:8080/axis/services/MSLMSServer?WSDL
> 
>   I am using lookupLocations() to get the error.
> 
>   Is it possible to return a vector?
> 
>   My vector is full of an object of type Location, which is a 
> bean, but
> not listed in the WSDL.
>   How can I ensure that it realizes that the items withinthe 
> vector are
> a bean?
>