Not really sure. It looks like you are failing on setting the actual
value on a field (as it's the setValue() method that's part of the stack
trace), but without a Jira issue I won't be able to analyse this any
further.

Werner

Singh, Harjit wrote:
> Hi there,
>  
> When I unmarashal my mapping file, I get this error
>  
> 
> Caused by: _java.lang.IllegalArgumentException_
> 
> at sun.reflect.UnsafeObjectFieldAccessorImpl.set(Unknown Source)
> 
> at java.lang.reflect.Field.set(Unknown Source)
> 
> at
> org.exolab.castor.mapping.loader.FieldHandlerImpl.setValue(_FieldHandlerImpl.java:572_)
> 
> at
> org.exolab.castor.xml.UnmarshalHandler.endElement(_UnmarshalHandler.java:1054_)
> 
> at
> org.exolab.castor.xml.UnmarshalHandler.endElement(_UnmarshalHandler.java:1119_)
> 
> at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
> 
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
> Source)
> 
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> Source)
> 
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
> 
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> 
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> 
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> 
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> 
> at org.exolab.castor.xml.Unmarshaller.unmarshal(_Unmarshaller.java:729_)
> 
> at
> com.nasd.fms.framework.database.hibernate.pojo.test.TestmyeclipseIde.main(_TestmyeclipseIde.java:64_)
> 
>  
> 
> Here is the code
> 
>  
> 
> InputSource inputSource = *new* InputSource("C:/Documents and
> Settings/SinghH/My Documents/FUSS/dmytros Files/MrdtNmaMapping.xml");
> 
> Mapping mapping = *new* Mapping();
> 
> mapping.loadMapping(inputSource);
> 
> // 2. Unmarshal the data
> 
> Unmarshaller unmar = *new* Unmarshaller(mapping);
> 
> unmar.setIgnoreExtraElements(*true*);
> 
> ApplicantProfileRpt Pojo = (ApplicantProfileRpt)unmar.unmarshal(*new*
> InputSource("C:/Documents and Settings/SinghH/My Documents/FUSS/dmytros
> Files/NMAOutput.XML"));
> 
> System./out/.println("Loaded");
> 
>  
> 
> Part of the mapping file where I'm using the set is
> 
>  
> 
>  
> 
> <field cst:name="aplctIndvls" type="java.lang.Object" collection="set">
> 
> <bind-xml name="aplct-indvls" node="element"/>
> 
> </field>
> 
> <field cst:name="netCaps" type="java.lang.Object" collection="set">
> 
> <bind-xml name="net-caps" node="element"/>
> 
> </field>
> 
>  
> 
> any clues why I'm getting this error ?
> 
>  
> 
> Thanks
> 
>  
> 
> - Harjit
> 
> 
> This email, including attachments, may include confidential and/or
> proprietary information, and may be used only by the person or entity
> to which it is addressed.  If the reader of this email is not the 
> intended recipient or his or her authorized agent, the reader is 
> hereby notified that any dissemination, distribution or copying of this 
> email is prohibited. If you have received this email in error, 
> please notify the sender by replying to this message and delete this 
> email immediately.
> 
> 

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to