I'm sorry for disturbing but i found the solution. Actually, i defined an object attribute like this : /** * Zones de l'aide * * @xml-name Zone * @xml-node element * @field-type java.lang.String */ private Collection<String> listeZones;
And , mapping file was like this : <field name="listeDepartements" collection="collection" > <bind-xml name="Departement" node="element" /> </field> There wasn't attribute type. So I added in my object attribute the field @field-type java.lang.String and i re - generated the mapping file and now it works. Thanks -----Message d'origine----- De : Ralf Joachim [mailto:[EMAIL PROTECTED] Envoyé : mercredi 17 octobre 2007 12:35 À : user@castor.codehaus.org Objet : Re: [castor-user] Issue when it try to marshall my object Hi Leclerc, if you want us to help you we need some more information: - Castor version you are using (without the stacktrace is useless) - What do you marshal (e.g. xsd) - Do you use mapping or generated code - How do you use Marshaller (initialization code and user specific properties) and so on Regards Ralf Leclerc Laurene schrieb: > Hi all, > > I have an issue when i try to marshall my object. > > > [11:49:40,709] 3B35C439D133B713C7E676F8F89EB826 LECLERC ERROR > (i2.application.galion.twork.struts.exception.GlobalExceptionHandler) > - _java.lang.NullPointerException_ > > _java.lang.NullPointerException_ > > at org.exolab.castor.xml.Marshaller.marshal(_Marshaller.java:957_) > > at org.exolab.castor.xml.Marshaller.marshal(_Marshaller.java:1824_) > > at org.exolab.castor.xml.Marshaller.marshal(_Marshaller.java:1824_) > > at org.exolab.castor.xml.Marshaller.marshal(_Marshaller.java:821_) > > ........ > > > > If you can help me, > > Thanks. > -- Syscon Ingenieurbüro für Meß- und Datentechnik GmbH Ralf Joachim Raiffeisenstraße 11 72127 Kusterdingen Germany Tel. +49 7071 3690 52 Mobil: +49 173 9630135 Fax +49 7071 3690 98 Internet: www.syscon.eu E-Mail: [EMAIL PROTECTED] Sitz der Gesellschaft: D-72127 Kusterdingen Registereintrag: Amtsgericht Stuttgart, HRB 382295 Geschäftsleitung: Jens Joachim, Ralf Joachim --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email