[castor-dev] MappingTool ArrayIndexOutOfBoundsException

2004-04-02 Thread John Kristian
Title: MappingTool ArrayIndexOutOfBoundsException Is there a working example of how to run MappingTool?  My attempt failed thus: CLASSPATH=.;c:/apps/castor-0.9.5.3/castor-0.9.5.3.jar;lib/xml-apis.jar;lib/xercesImpl.jar c:\jkristian>c:\apps\depot\java\jdk1.3.1_07\bin\java org.exolab.castor.

Re: [castor-dev] ObjectModifiedException when updating an Object created in the same transaction?

2004-04-02 Thread August Detlefsen
I understand the need for dirty checking to manage concurrency across many transactions, but what is the need for dirty checking within the bounds of one transaction? In my case, I originally attempted to create the object, get the newly created ID, us the ID to set a field within the same objec

[castor-dev] marshalling private fields

2004-04-02 Thread John Kristian
Title: marshalling private fields Can Castor XML be easily extended to marshal and unmarshal private properties of Java objects?  For example, map a element to and from:     private void setText(String text);     private String getText(); This would be valuable in many cases wherein a clas

Re: [castor-dev] marshalling/unmarshalling with variable or abitrary xml

2004-04-02 Thread Brent Picasso
Title: Message Keith / Anyone- I still haven't been enlightened on the technique you outlined below. :) Any help would be appreciated!!   Thanks, Brent -Original Message-From: Brent Picasso Sent: Friday, March 26, 2004 5:51 AMTo: [EMAIL PROTECTED]Subject: RE: [castor-dev] marshall

[castor-dev] RE: FieldName which has NumberFormatException

2004-04-02 Thread TLPerkins
Return Receipt Your [castor-dev] RE: FieldName which has NumberFormatException document :

[castor-dev] RE: FieldName which has NumberFormatException

2004-04-02 Thread Jia, Shuping
Keith: Thanks a lot. It works! Shuping FYI. The error message is as following now: org.xml.sax.SAXException: The following error occured while trying to unmarshal field _orderQuantity of class com.intuit.spc.order.data.OrderLine For input string: "a"{file: [not av

Re: [castor-dev] Timestamp issues...[bug]

2004-04-02 Thread Nick Stuart
Posted a bug report and test case under bug #1589 -Original Message- From: Werner Guttmann [mailto:[EMAIL PROTECTED] Sent: Monday, March 29, 2004 2:24 PM To: [EMAIL PROTECTED] Subject: Re: [castor-dev] Timestamp issues...[bug] Nick, in this case, can you please file a bug report with

Re: [castor-dev] updating when not in cache...

2004-04-02 Thread Nick Stuart
Thanks for your replies, both Werner and Bruce. I'll add a enhancement bug to bugzilla for the exception and take a look at those other bugs as well. Everything you state makes sense, I know all about re-using stuff once its already been coded...even if there is a better way around it :) But, a

Re: [castor-dev] org.exolab.castor.jdo.ObjectModifiedException: Transaction aborted: Object has been modified by a concurrent transaction (cache entry is different from database row)

2004-04-02 Thread Gonzalo Abollado
Hello Werner, The column in MySql is "double" and the field in Java is double as well. I think you will be able to reproduce the problem by inserting several times a very big number and running the program several times. Thanks and regards. Paquete paquete = Paquete.load(new Integer(524)); pa

Re: [castor-dev] updating when not in cache...

2004-04-02 Thread Werner Guttmann
Nick, if I ever see an email with HTML code again, I am not going to respond anymore ... ;-). Just kidding, of course. Please see inline for (tentative) replies ... Werner --Original Message Text--- From: Nick Stuart Date: Thu, 1 Apr 2004 17:13:21 -0500 Hello all. I was just wandering about

Re: [castor-dev] updating when not in cache...

2004-04-02 Thread Werner Guttmann
On Thu, 01 Apr 2004 22:35:44 -0700, Bruce Snyder wrote: > >Nick Stuart wrote: > >> Hello all. I was just wandering about long transactions and cache >> management. What's happening is that I'm loading a bunch of stuff up to >> use/view in jsp pages. I load enough stuff up so that stuff gets bum

Re: [castor-dev] JDO: persistence engine mysql is not supported

2004-04-02 Thread Werner Guttmann
Gregg, no idea as to why you are having this problem. Can you please provide a complete stack trace ? Werner On Thu, 1 Apr 2004 13:41:32 -0800, Barley wrote: > >Using castor version 0.9.5.2. This database setup has been working for me in >the past. I just upgraded to JBuilderX from JBuilder8,

[castor-dev] Resolving IDREFS when splitting data in multiple xml files

2004-04-02 Thread Domsch, Christian
Hi all. I hope I am not asking this question again, but I didnt find it in any archive or FAQ. Here is the Problem: We are persisting different object-models with castor in different xml files. All of these models have a common meta-model that describes each model. Having this, we do not use ma

[castor-dev] Re: FieldName which has NumberFormatException

2004-04-02 Thread Keith Visco
Hi Shuping, I just checked in a patch for your example, can you retry the CVS. Thanks, --Keith --- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev

Re: [castor-dev] ObjectModifiedException when updating an Object created in the same transaction?

2004-04-02 Thread Bruce Snyder
August Detlefsen wrote: I recently ran into this and I'm interested to know if it is designed-in behavior, a bug, or a 'feature'. The abstract is that I needed to create a NavPageContent Object, then use its ID to formulate a link String, which was then set back into the same Object and persisted.