Hello Keith,

Here is the mapping file:

This is guess wud help in indicating the relationship:

<class name="com.dekra.automobil.svdienstleistungen.pbo.vbsf.PBOVBSFDienstleistungsObjekt">
                <map-to xml="DienstleistungsObjekt"/>

<field name="Feststellung"
 type="com.dekra.automobil.svdienstleistungen.ergebnisdaten.feststellungsdaten.pbo.vbsf.PBOVBSFFeststellungFahrzeug" method="getFeststellung">
<bind-xml name="Feststellung" node="element" />
                </field>

</class>

<class name="com.dekra.automobil.svdienstleistungen.ergebnisdaten.feststellungsdaten.pbo.vbsf.PBOVBSFFeststellung">
                <map-to xml="Feststellung"/>

  </class>

  <class name="com.dekra.automobil.svdienstleistungen.ergebnisdaten.feststellungsdaten.pbo.vbsf.PBOVBSFFeststellungFahrzeug" extends="com.dekra.automobil.svdienstleistungen.ergebnisdaten.feststellungsdaten.pbo.vbsf.PBOVBSFFeststellung">
           <map-to xml="PBOVBSFFeststellungFahrzeug"/>

<field name="MangelPosition"
                       type="com.dekra.automobil.common.pbo.vbsf.PBOVBSFMangelPosition" set-method="addMangelPosition" get-method="getMangelPosition"
    collection="array">
                        <bind-xml name="MangelPosition" node="element"/>
                 </field>

  </class>

The above raltionship is successfully marshalled, but in case of unmarshalling it throws the mentioned runtime exception..

Secondly the same mapping file works with a Lower version of our project, am having the problem with the latest  compiled version of our project, though am not seeing any changes with relevant to the above mentioned classes.

The aim is to marshall the persistent java object model which is represented by the PBO classes mentioned above, to an XML document.

Hopefully this wud suffice the purpose.

Kindly let me know in case some additional info. is required.

Thanking you,

Chetan

 

>From: Keith Visco <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: [castor-dev] java.lang.IllegalStateException: Field access error: MangelPosition(com.dekra.au
>Date: Wed, 27 Mar 2002 13:01:40 -0600
>
>
>Hi Chetan,
>
>I'll need more information in order to help track down what the problem
>could be.
>Can you send a "small-as-possible" example that demonstrates the
>problem, and I
>will certainly have a look into it.
>
>Thanks,
>
>--Keith
>
>Chetan Rathi wrote:
> >
> > Hello Keith,
> >
> > We are using the castor tool for its marshalling as well as
> > unmarshalling capability.
> >
> > I am using the mapping file for the same.
> >
> > After successfully marshalling the java object model to a XML
> > document, i unmarshall the same using the same mapping file.
> >
> > Relationship between Mangel position and FestellungFahrzeug is 1:m.
> >
> >
> >
> > I am getting the following runtime exception:
> >
> > Exceptionorg.xml.sax.SAXException: unable to add 'MangelPosition' to
> > due to the following exception:
> > >>>--- Begin Exception ---<<<
> > java.lang.IllegalStateException: Field access error:
> > MangelPosition(com.dekra.automobil.common.pbo.vbsf.PBOVBSFMangelPosition)
> > access resulted in exception: null
> >
> > at
> > org.exolab.castor.mapping.loader.FieldHandlerImpl.setValue(FieldHandlerImpl.java:466)
> >
> > at
> > org.exolab.castor.xml.UnmarshalHandler.endElement(UnmarshalHandler.java:443)
> >
> > at
> > org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1392)
> >
> > at
> > org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1480)
> >
> > at
> > org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1149)
> >
> > at
> > org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
> >
> > at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
> >
> > at
> > org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:335)
> >
> > at
> > com.dekra.automobil.XMLObjectBeanMarGessamt.svens_methode(XMLObjectBeanMarGessamt.java:1386)
> >
> > at
> > com.dekra.automobil.XMLObjectBeanMarGessamt.(XMLObjectBeanMarGessamt.java:266)
> >
> > at
> > com.dekra.automobil.XMLObjectBeanMarGessamt.main(XMLObjectBeanMarGessamt.java:293)
> >
> > Regards,
> >
> > Chetan
> >
> > >From: "Dave Carlson"
> > >Reply-To: [EMAIL PROTECTED]
> > >To: [EMAIL PROTECTED]
> > >Subject: Re: [castor-dev] [Release Plan] Castor v0.9.4
> > >Date: Wed, 27 Mar 2002 07:38:12 -0800
> > >
> > >I have reviewed some status history messages from the (relatively)
> > current CVS
> > >version, and some of the source code also. I'll test with current CVS
> > before
> > >submitting bug reports.
> > >
> > >Thanks,
> > > Dave
> > >
> > >----- Original Message -----
> > >From: "Keith Visco"
> > >To:
> > >Sent: Tuesday, March 26, 2002 7:34 PM
> > >Subject: Re: [castor-dev] [Release Plan] Castor v0.9.4
> > >
> > >
> > > >
> > > > Dave,
> > > >
> > > > Please submit your bug reports. Small specific reports are better
> > than
> > > > one big generalized one.
> > > >
> > > > Have you tried the CVS version?
> > > >
> > > > Thanks,
> > > >
> > > > --Keith
> > > >
> > > > Dave Carlson wrote:
> > > > >
> > > > > I've found several schema features that cause Castor's schema
> > parser to
> > >abort,
> > > > > and several other features that I'd like to be handled in a more
> > flexible
> > > > > manner. I hope that the schema parser in 0.9.4 can be made more
> > robust,
> > >even
> > > > > if all features are not supported in the code generator.
> > > > >
> > > > > Would you prefer ONE bug logged toward the next release, or
> > several bugs
> > > > > specialized to each schema feature? I also hope to contribute
> > patches
> > >that
> > > > > correct some of these problems!
> > > > >
> > > > > Regards,
> > > > > Dave Carlson
> > > > >
> > > > > ----- Original Message -----
> > > > > From: "Arnaud Blandin"
> > > > > To:
> > > > > Sent: Tuesday, March 26, 2002 11:16 AM
> > > > > Subject: Re: [castor-dev] [Release Plan] Castor v0.9.4
> > > > >
> > > > > > Hi Pae,
> > > > > >
> > > > > > We can't give you a precise timeframe. However we have set up
> > a bugzilla
> > > > > > to track the progress towards 0.9.4:
> > > > > >
> > > > > > http://bugzilla.exolab.org/show_bug.cgi?id=880
> > > > > >
> > > > > > Arnaud
> > > > > >
> > > > >
> > > > > -----------------------------------------------------------
> > > > > 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
> > > >
> > > >
> > > >
> > >
> > >-----------------------------------------------------------
> > >If you wish to unsubscribe from this mailing, send mail to
> > >[EMAIL PROTECTED] with a subject of:
> > > unsubscribe castor-dev
> > >
> >
> > ----------------------------------------------------------------------
> > Send and receive Hotmail on your mobile device: 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
>


Send and receive Hotmail on your mobile device: Click Here
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev

Reply via email to