I also receive this problem. I posted about it this problem two weeks ago, but was not able to resolve the issue. See the following post: http://www.mail-archive.com/[EMAIL PROTECTED]/msg17337.html
I still have this issue today and am forced to run Castor with validation turned off. I would appreciate if someone could provide some insight into why this line would be throwing a NPE? Keith, would you like me to file a bug report on this? Jeremy On Fri, 12 Mar 2004 16:19:42 +0100, "Milovankic Dragan" <[EMAIL PROTECTED]> said: > > Hi, > > I am using castor together with mapping file to marshall data to xml. > After changing from castor-0.9.3.21.jar to castor-0.9.5.3.jar in my > runtime > directory I've got following > ... > [java] java.lang.NullPointerException > [java] at > org.exolab.castor.xml.util.XMLClassDescriptorImpl.validate(XMLClassDescripto > rImpl.java:890) > [java] at > org.exolab.castor.xml.Validator.validate(Validator.java:122) > [java] at > org.exolab.castor.xml.FieldValidator.validate(FieldValidator.java:241) > [java] at > org.exolab.castor.xml.util.XMLClassDescriptorImpl.validate(XMLClassDescripto > rImpl.java:892) > [java] at > org.exolab.castor.xml.Validator.validate(Validator.java:122) > [java] at > org.exolab.castor.xml.FieldValidator.validate(FieldValidator.java:258) > [java] at > org.exolab.castor.xml.util.XMLClassDescriptorImpl.validate(XMLClassDescripto > rImpl.java:892) > [java] at > org.exolab.castor.xml.Validator.validate(Validator.java:122) > [java] at > org.exolab.castor.xml.FieldValidator.validate(FieldValidator.java:258) > [java] at > org.exolab.castor.xml.util.XMLClassDescriptorImpl.validate(XMLClassDescripto > rImpl.java:892) > [java] at > org.exolab.castor.xml.Validator.validate(Validator.java:122) > [java] at > org.exolab.castor.xml.Marshaller.validate(Marshaller.java:2068) > [java] at > org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:774) > [java] at ch.company.XMLGenerator.marshallToFile(Unknown Source) > ... > This happened without changing anything else (code, mapping, > properties,...). > Any idea why? > > In the past I've used get/set-method declaration in mapping file in order > to > handle special fields (ex. Calendar). > Now I've written CalendarFieldHandler which extends > GeneralizedFieldHandler > for this purpose and want to use this castor feature. > > Help appreciated! > > Dragan > > > _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ > > _/_/_/ _/ Swiss Life > _/ _/ Milovankic Dragan > _/_/_/ _/ CH/IDT, BC 0016 > _/ _/ Postfach > _/_/_/ _/_/_/ 8022 Zuerich, Switzerland > > Phone: +41 1 284 8357 > Fax: +41 1 284 5183 > e-mail: [EMAIL PROTECTED] > > _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ > > > > > ******* > Neue Vorwahl am Hauptsitz von Swiss Life in Zuerich: > Ab 29. Maerz 2004 statt 01 284 xx xx neu 043 284 xx xx. > Direktfaxnummern: statt 01 638 xx xx neu 043 338 xx xx. > ******* > Nouveau prefixe au siege de Swiss Life a Zurich: > des le 29 mars 2004, 043 284 xx xx au lieu de 01 284 xx xx. > Numeros de fax directs: 043 338 xx xx au lieu de 01 638 xx xx. > ******* > Swiss Life head office in Zurich has a new area code: > from 29 March 2004, 01 284 xx xx will be replaced with 043 284 xx xx. > For direct fax numbers: 043 338 xx xx instead of 01 638 xx xx. > ******* > Nuovo prefisso 043 alla Sede centrale di Zurigo: > dal 29 marzo 2004, 043 284 xx xx invece di 01 284 xx xx. > Numeri diretti fax: 043 338 xx xx invece di 01 638 xx xx. > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev > -- Jeremy Haile [EMAIL PROTECTED] ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev