Hi
I used sourcegenerator for generating java source code from XSD   schema .  I compiled the
generated source  code , In schema where one element has 3 nested tags , While  marshal
there is No prob However while Unmarshalling it throws a
ValidationException:When its has a Multiple Objects   (in this Case 2nd Object),

Please any one can get back quickly soultion or help will be greatly appreciated.


Its Multiple Object  Response /Request [packet]  we get this Error in
Unmarshlling But there is no prb in Marshalling
Even though the defination in Schema is Macoccurs =unbounded.


/****************************
Here is the snippet of schema:  & Exception
*******************************/

************************************************************************<xs:element
name="BusinessListMain">
<xs:complexType>
<xs:sequence maxOccurs="unbounded">
<xs:element ref="Reference"/>
<xs:element ref="BusinessInfo"/>
<xs:element ref="Address"/>
</xs:sequence>
<xs:attribute name="Value" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
************************************************************************

******************************************
///Exception
******************************************


ValidationException: BusinessInfo is a required field.;
   - location of error: XPATH:
APIMessage/null/APIResponse/ResponseOperation/BusinessLineList/BusinessListMain/BusinessListMain
java.lang.Object
org.exolab.castor.xml.Unmarshaller.unmarshal(org.xml.sax.InputSource)
java.lang.Object
org.exolab.castor.xml.Unmarshaller.unmarshal(java.io.Reader)
java.lang.Object
org.exolab.castor.xml.Unmarshaller.unmarshal(java.lang.Class,
java.io.Reader)
void Client.main(java.lang.String[])
java.lang.NullPointerException



Reply via email to