Re: [castor-dev] cloning an invalid object

2004-04-12 Thread Robert La Ferla
FYI - I found that the exception was being thrown due to a bug and not because of validation. --- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev

Re: [castor-dev] Interface, when root, not marshalled, mapping ignored

2004-04-12 Thread g r i t s e n k o
I marshal like this: marshaller = new Marshaller(res.getWriter()); marshaller.setMapping(_xml_mapping); marshaller.marshal(aResume); viktoR Keith Visco wrote: How are you calling the Marshaller ? Make sure you are not using one of the static marshal methods

Re: [castor-dev] Interface, when root, not marshalled, mapping ignored

2004-04-12 Thread g r i t s e n k o
I marshal like this: marshaller = new Marshaller(res.getWriter()); marshaller.setMapping(_xml_mapping); marshaller.marshal(aResume); Keith Visco wrote: How are you calling the Marshaller ? Make sure you are not using one of the static marshal methods. --Kei

Re: [castor-dev] Interface, when root, not marshalled, mapping ignored

2004-04-12 Thread g r i t s e n k o
I REPOST this as text only, as suggested by Werner Guttman: Werner Guttmann wrote: Hi, can you please REPOST this message as text/ascii, as this mailing does not accept HTML messages. Thanks Werner --Original Message Text--- From: g r i t s e n k o Date: Mon, 12 Apr 2004 11:11:24 -0500 Brief e

Re: [castor-dev] Castor Ant Task, Re: ant task

2004-04-12 Thread Bruce Snyder
This one time, at band camp, Vadim Gritsenko said: VG>Bruce Snyder wrote: VG>> This one time, at band camp, Yevgeniy Tovshteyn said: VG>> VG>> YT>Where can I find ant task for the newest version of castor. VG>> VG>> AFAIK, the Ant task for the Source Generator that is available from VG>> Bugzilla

[castor-dev] Mapping multiple XML elements into a single Array

2004-04-12 Thread Adikesavelu, Balaji
Title: Mapping multiple XML elements into a single Array How do I map multiple elements into an array. E.g.   a   a   a   a   a   a The class have a field "properties" as a String array. Can I map all the properties element into the String array? Thanks Balaji

[castor-dev] Unmarshalling a Vector of Objects/What should Setter Method look like?

2004-04-12 Thread Earl . Armstrong
Thanks for reading this! I'm trying to UnMarshal a collection of objects that I have successfully Marshalled. I'm a little confused. In the getter method for the collection, I traverse the collection, create a vector of objects, and the Marshaller takes it and puts it into very pretty XML. I

[castor-dev] cloning an invalid object

2004-04-12 Thread Robert La Ferla
I need to clone an object that doesn't validate. e.g. throws a ValidationException I tried disabling validation by setting org.exolab.castor.marshalling.validation=true before cloning it but I still get the exception. To clone, I am using writeObject() to write the object to an Objec

Re: [castor-dev] Null Pointer Exception in XMLClassDescriptorImpl

2004-04-12 Thread Keith Visco
Hi Earl, Thanks for your interest in Castor and willingness to help fix the issue you've run across. In order for us to better determine if your patch is the proper one, can you open a bug report at http://bugzilla.exolab.org and attach your patch (as a diff file), as well as a small test case

Re: [castor-dev] Getting the childeren from ElementDec

2004-04-12 Thread Keith Visco
You have to get the ComplexType from the ElementDecl. XMLType type = element.getType(); if (type.isComplexType()) { ComplexType cType = (ComplexType)type; Enumeration enum = cType.enumerate(); while (enum.hasMoreElements()) { Structure st = (Structure) enum.nextElement();

Re: [castor-dev] Rules on namespaces

2004-04-12 Thread Keith Visco
Patrick Wright wrote: > > Hi > > I'm trying to understand how Castor processes namespace mappings declared > in a mapping file. It seems the documentation is incomplete. > > What I would like to know is: > 1) under what circumstances Castor will add a ns1:, ns2:, etc. on its own > When it f

Re: [castor-dev] Interface, when root, not marshalled, mapping ignored

2004-04-12 Thread Keith Visco
How are you calling the Marshaller ? Make sure you are not using one of the static marshal methods. --Keith > g r i t s e n k o wrote: > > Brief error description: > > > > Castor ignores ‘map-to xml=’resume’ in mapping for Resume class, which > at run time is materialized by proxy class – A

Re: [castor-dev] Interface, when root, not marshalled, mapping ignored

2004-04-12 Thread Werner Guttmann
Hi, can you please REPOST this message as text/ascii, as this mailing does not accept HTML messages. Thanks Werner --Original Message Text--- From: g r i t s e n k o Date: Mon, 12 Apr 2004 11:11:24 -0500 Brief error description: Castor ignores map-to xml=resume in

Re: [castor-dev] ObjectModifiedException using double in MySql with out size.

2004-04-12 Thread Werner Guttmann
Gonzalo, can you please post a code fragment, a mapping file, et alias so that I can simulate your findings ? Parta from this, what version of mySQL are you using, and what's the release number of the JDBC driver for mySQL ? Regards Werner On Mon, 12 Apr 2004 17:15:51 +0200, Gonzalo Abollado

[castor-dev] Castor Ant Task, Re: ant task

2004-04-12 Thread Vadim Gritsenko
Bruce Snyder wrote: This one time, at band camp, Yevgeniy Tovshteyn said: YT>Where can I find ant task for the newest version of castor. AFAIK, the Ant task for the Source Generator that is available from Bugzilla here: http://bugzilla.exolab.org/show_bug.cgi?id=885 has not ever been updated

[castor-dev] Null Pointer Exception in XMLClassDescriptorImpl

2004-04-12 Thread Earl . Armstrong
I'm a newbie to Castor, and an infrequent Java Programmer, so please be gentle in your response. I'll try to explain the problem that I've had to the best of my abilities. I've made a change to the XMLClassDescriptorImpl. It resolves the problem, but since I have very little idea what I'm doin

[castor-dev] ObjectModifiedException using double in MySql with out size.

2004-04-12 Thread Gonzalo Abollado
Hello, I´m run into another ObjectModifiedException problem. In this case I was using a double field in MySQL with out specifying the size of the field. In some situations, I can´t really tell when, but maybe it has to do with values like: 123123,93 maybe a rounding problem, I´m not sure... The

[castor-dev] Interface, when root, not marshalled, mapping ignored

2004-04-12 Thread g r i t s e n k o
Brief error description:   Castor ignores ‘map-to xml=’resume’ in mapping for Resume class, which at run time is materialized by proxy class – Apache OJB does it  for lazy loading purposes – so called dynamic proxy.   Castor attempts to marshal Resume and comes up with xml tag name for Resume,