Hi
I used sourcegenerator for generating java source code.  I compiled the
generated code ,have schema where one elment has 3 nested tags , the first one is works
fine where as second one it created Object (all the three )  and marshal
them (No prob) However while Unmarshalling it throws a
ValidationException:
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