Hi Chetan,
What does the marshalled XML look like?
It appears that perhaps the mapping file is not being set properly
during
Marshalling and therefore causing default introspection to take place.
What does your code for calling the marshaller look like?
--Keith
Chetan Rathi wrote:
>
> Hello Keith,
>
> This is as regards the Unmarshalling of the XML document which in turn
> is generated by the Castor marshaller.
>
> My Mapping file contents:
>
> <field name="niederlassungsNr"
> type="java.lang.String"
> method="getNiederlassungsNr">
> <bind-xml name="NiederlassungsNr"
> node="element"/>
> </field>
>
> the above indicates the change in the xml tag as compared to the
> attribute name in the Java class.
>
> The run time exception for unmarshalling:
>
> org.xml.sax.SAXException: unable to find FieldDescriptor for
> 'niederlassungsNr' in ClassDescriptor of Auftragsposition
>
> My requirement is the change of the XML tag as above...
>
> Marshalling works fine generating the XML tag...
>
> Unmarshlling retunrs an run time excpetion.The same when changed to
> the following works:
>
> <field name="niederlassungsNr"
> type="java.lang.String"
> method="getNiederlassungsNr">
> <bind-xml name="niederlassungsNr"
> node="element"/>
> </field>
>
> How do i handle the above.....i want both the marshalling and the
> unmarshalling to work.
>
> Regards,
>
> Chetan
>
> Chetan Rathi
> Augsburger Str.336
> 70327 Stuttgart
> Tel no.0711-7861-3148(off.)
> Handy.no.015055564671
>
> >From: chamagne
> >Reply-To: [EMAIL PROTECTED]
> >To: [EMAIL PROTECTED]
> >Subject: Re: [castor-dev] How to map a class that extend another
> class
> >Date: Tue, 23 Apr 2002 10:45:21 +0200
> >
> >I got a problem when i try to read my class TotoExtend :
> >I do a simple request like : "select t from TotoExtend t"
> >And i get this message error :
> >
> >Exception in thread "main"
> org.exolab.castor.jdo.PersistenceException:
> >Requested to load/fetch an object of type TotoExtend, where
> persistent
> >storage returned an object of type class Toto
> > at
> >org.exolab.castor.persist.TransactionContext.load(TransactionContext.java:553)
> >
> > at
> >org.exolab.castor.persist.QueryResults.fetch(QueryResults.java:229)
> > at
>
>>org.exolab.castor.jdo.engine.OQLQueryImpl$OQLEnumeration.hasMore(OQLQueryImpl.java:574)
> >
> > at
>
>>org.exolab.castor.jdo.engine.OQLQueryImpl$OQLEnumeration.hasMore(OQLQueryImpl.java:557)
> >
> >this is my mapping file :
> >
> >
> > Toto
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > totoExtend
> >
> >
> >
> >
> >
> >
> > > Simply do the extends-Attribute in the mapping-File:
> > >
> > >
> > >
> > >
>
> ----------------------------------------------------------------------
> Chat with friends online, try MSN Messenger: Click Here
> ----------------------------------------------------------- If you
> wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev