Hello all, I have a small annoying problem that is probably caused by my own ignorance, but I can't figure out what to do to fix it... I have some SourceGenerator'ed classes based upon the following schema:
<?xml version='1.0' ?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.whatever.com/i12e"> <xsd:element name="ReportContainer"> <xsd:complexType> <xsd:sequence> <xsd:element name="report" maxOccurs="unbounded" minOccurs="1" type="ReportStructure"/> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:complexType name="ReportStructure"> <xsd:sequence> <xsd:element name="name" type="xsd:string" minOccurs="0" /> <xsd:element name="source" type="xsd:string"/> <xsd:element name="application" type="xsd:string" minOccurs="0" /> <xsd:element name="institution" type="xsd:string" minOccurs="0" /> <xsd:element name="date" type="xsd:string" minOccurs="0" /> <xsd:element name="reportContents" type="xsd:IDREF" minOccurs="0" /> </xsd:sequence> </xsd:complexType> </xsd:schema> and an xml file similar to: <?xml version="1.0"?> <ReportContainer> <report> <name>001 fred's report</name> <source>synergy</source> <application>ACH</application> <institution>00</institution> <date>20020221</date> <reportContents>arbitrary report contents</reportContents> </report> <report> <name>008 Bill's report</name> <source>synergy</source> <application>ACH</application> <institution>00</institution> <date>20020221</date> <reportContents>more arbitrary report contents</reportContents> </report> </ReportContainer> and finally, here is the code that performs the unmarshalling of the above xml file: ArrayList instArray = new ArrayList(); ReportContainer repCont = null; try { repCont = ReportContainer.unmarshal(new InputStreamReader(methodURL.openStream())); int reportCount = repCont.getReportCount(); for (int x = 0; x < reportCount; x++) { Report rep = (Report)repCont.getReport(x); instArray.add(rep); } } catch (Exception e) { throw new EJBException(e.getMessage()); } return instArray; Enough preliminaries... In a WebLogic stateless session bean, I have a method that returns an ArrayList of Report objects that are the results of unmarshalling the above xml file. BUT, no matter what client I use (.jsp or .class), whenever I try to do ANYTHING with the ArrayList that is being returned, I get a MarshalException with a nested exception of: NotSerializableException: org.exolab.castor.types.AnyNode. I've also copied in the snippet of code that performs the unmarshaling in the ejbean. Can anyone help me determine what I have done wrong? Thanks in advance, Randy ____________________________________________________________________________ This e-mail message is private and may contain confidential or privileged information. ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
