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

2004-04-15 Thread Bruce Snyder
This one time, at band camp, Stein M. Hugubakken said: SMH>g r i t s e n k o wrote: SMH>> SMH>> OK. I was loading whole database of about 1.5 meg (mysql database was of SMH>> this size) into memeory using Castor - the concept was to have a root SMH>> class, on which children were dependent, in tu

Re: [castor-dev] Small fix for sapdb.sql

2004-04-15 Thread Bruce Snyder
This one time, at band camp, Emir Causevic said: EC>It's on Bugzilla under the id of 1605. Great, thanks! EC>BTW, is there a way to edit an enclosure in a bug report after it's been EC>added? EC>I had some typos, so it would be nice if I'm able to edit my comments... Unfortunately there is no

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

2004-04-15 Thread Stein M. Hugubakken
g r i t s e n k o wrote: OK. I was loading whole database of about 1.5 meg (mysql database was of this size) into memeory using Castor - the concept was to have a root class, on which children were dependent, in turn, its' children were dependent on them - about 6 stories of hierarchy. Once root

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

2004-04-15 Thread Gonzalo Abollado
Werner, Thanks for the effort. I understand it´s very difficult to solve a problem if you can not reproduce it, but as well it´s very difficult for me to send an environment that fails because I get exceptions at random times... I will need to spend some time and create a simple example that alw

[castor-dev] mapping file path name

2004-04-15 Thread Rich Trevor
In 0.9.5.3 (JDO), it appears that the mapping file specified in the database configuration file must be specified with a hard path name. In 0.9.5.2 I was able to specify the file name, and castor was able to find the mapping file on the classpath. Thanks, Rich Trevor --

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

2004-04-15 Thread g r i t s e n k o
OK. I was loading whole database of about 1.5 meg (mysql database was of this size) into memeory using Castor - the concept was to have a root class, on which children were dependent, in turn, its' children were dependent on them - about 6 stories of hierarchy. Once root class was db.loaded, it

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

2004-04-15 Thread Stein M. Hugubakken
g r i t s e n k o wrote: I use OJB proxy to leverage lazy loading. I use OJB for O/R data binding. I did use Castor JDO for that, but had memory problems and switched to OJB a month ago. Sorry. I'm very interested in this, would you mind elaborate on your memory problem with Castor? Stein ---

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

2004-04-15 Thread g r i t s e n k o
I use OJB proxy to leverage lazy loading. I use OJB for O/R data binding. I did use Castor JDO for that, but had memory problems and switched to OJB a month ago. Sorry. Bruce Snyder wrote: This one time, at band camp, g r i t s e n k o said: gritse>I tried, cast gives CastException. But concep

Re: [castor-dev] ValidationException : how to determine exact XML data

2004-04-15 Thread Ostermueller, Erik
> > > > Hi Erik, et al., > > "Ostermueller, Erik" wrote: > > > > I sure haven't seen anything like this, > > Here is my wishlist for improvements in the validation framework. > > I think my number 2 is similar to what you're requesting here. > > > > 1) Currently, when the validat

Re: [castor-dev] Small fix for sapdb.sql

2004-04-15 Thread Emir Causevic
Bruce, It's on Bugzilla under the id of 1605. BTW, is there a way to edit an enclosure in a bug report after it's been added? I had some typos, so it would be nice if I'm able to edit my comments... Regards, Emir -Original Message- From: Bruce Snyder [mailto:[EMAIL PROTECTED] Sent: 15

Re: [castor-dev] ValidationException : how to determine exact XML data

2004-04-15 Thread Keith Visco
Hi Erik, et al., "Ostermueller, Erik" wrote: > > I sure haven't seen anything like this, > Here is my wishlist for improvements in the validation framework. > I think my number 2 is similar to what you're requesting here. > > 1) Currently, when the validator encounters an exception, it punts r

Re: [castor-dev] Small fix for sapdb.sql

2004-04-15 Thread Bruce Snyder
This one time, at band camp, Emir Causevic said: EC>Here's a small change to sapdb.sql script found in EC>/castor/src/tests/jdo. EC>Here's a unified diff file (Bruce, I hope this time I made it right EC>:-)). EC>I've changed semicolon to 'sapdb native' double slash (//) on a single EC>line. EC>I

[castor-dev] Small fix for sapdb.sql

2004-04-15 Thread Emir Causevic
Hi all, Here's a small change to sapdb.sql script found in /castor/src/tests/jdo. Here's a unified diff file (Bruce, I hope this time I made it right :-)). I've changed semicolon to 'sapdb native' double slash (//) on a single line. I didn't manage to run the old version of script in SAPDB 7.4 SQL

Re: [castor-dev] ValidationException : how to determine exact XML data error

2004-04-15 Thread Ostermueller, Erik
..and the bugzilla http://bugzilla.exolab.org/show_bug.cgi?id=1604 -Original Message- From: Ostermueller, Erik Sent: Thursday, April 15, 2004 11:45 AM To: [EMAIL PROTECTED] Subject: Re: [castor-dev] ValidationException : how to determine exact XML data error good idea. I dumped it on

Re: [castor-dev] ValidationException : how to determine exact XML data error

2004-04-15 Thread Ostermueller, Erik
good idea. I dumped it onto the castor wiki. http://www.brainopolis.com/castorwiki/Wiki.jsp?page=ValidationFrameworkWishList -Original Message- From: Stein M. Hugubakken [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 11:01 AM To: [EMAIL PROTECTED] Subject: Re: [castor-dev] Val

Re: [castor-dev] ValidationException : how to determine exact XML data error

2004-04-15 Thread Stein M. Hugubakken
Ostermueller, Erik wrote: I sure haven't seen anything like this, Here is my wishlist for improvements in the validation framework. I think my number 2 is similar to what you're requesting here. 1) Currently, when the validator encounters an exception, it punts right away (punt like in American fo

[castor-dev] unmarshal problem: Missing space in string

2004-04-15 Thread Hong-Linh Truong
Hi all, I use castor 0.9.5.3 to generate Java classes from XML schema. I have a class Resultmessage which contains a set of Element. I use the following code to test the marshal and unmarshal. --- StringWriter output = new StringWriter(); Resultmessage data = new Resul

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

2004-04-15 Thread Bruce Snyder
This one time, at band camp, g r i t s e n k o said: gritse>I tried, cast gives CastException. But conceptually, this is the right gritse>ide, to convert proxy to real class and then marshall. Only conversion gritse>may be not necessarily casting. It can be copying property by property gritse>wit

Re: [castor-dev] Using the reference attribute for xml mapping

2004-04-15 Thread Arvin, Shawn POP/Exch)
I was able to come up with a work around by altering my object model. However I still like to know the castor's solution for this since this must be a very common occurrence in java. If anyone has any insight into this please let me know. Thanks for your help Jerome.   Shawn   -Ori

Re: [castor-dev] Duration type in JDO]

2004-04-15 Thread Bruce Snyder
This one time, at band camp, Werner Guttmann said: WG>On Thu, 15 Apr 2004 11:52:49 +0200, Werner Guttmann wrote: WG> WG>> WG>>On Tue, 13 Apr 2004 08:23:33 -0600 (MDT), Bruce Snyder wrote: WG>> WG>>> WG>>>This one time, at band camp, Werner Guttmann said: WG>>> WG>>>WG>after a litztle bit of debug

Re: [castor-dev] problem with connection pooling for Oracle

2004-04-15 Thread Werner Guttmann
Bruce, Marco On Thu, 15 Apr 2004 08:14:58 -0600 (MDT), Bruce Snyder wrote: >This one time, at band camp, Ughetti Marco said: > >UM>This is a re-send after the dev mailing list subscription: >UM> >UM> >UM> >UM>Hi, >UM> >UM>Using this conf file: >UM> >UM> >UM> >UM> >UM> >UM>UM>> >UM> >UM>

Re: [castor-dev] Changing database config/mapping in JDO

2004-04-15 Thread Bruce Snyder
This one time, at band camp, Barley said: B>In my application, I need to marshall the same type of object to two B>different sets of tables. I do this over two separate server requests, and I B>create a separate JDO object each time. My plan was to have two mapping B>files, and two configuration

Re: [castor-dev] problem with connection pooling for Oracle

2004-04-15 Thread Bruce Snyder
This one time, at band camp, Ughetti Marco said: UM>This is a re-send after the dev mailing list subscription: UM> UM> UM> UM>Hi, UM> UM>Using this conf file: UM> UM> UM> UM> UM> UM>> UM> UM> password="pwd" UM> UM>minLimit="5" maxLimit="10" cache-scheme="1" /> UM> UM> UM>

Re: [castor-dev] Support for aggregate functions in OQL

2004-04-15 Thread Bruce Snyder
This one time, at band camp, Emir Causevic said: EC>Forget this one - I figured it out already. EC>I can see that even "between" works with dates - very nice. :-) EC>This OqlTests class from the Castor jdo test package is still just a EC>stub. I'll see if I can spare some time to fill in some of

Re: [castor-dev] ValidationException : how to determine exact XML data error

2004-04-15 Thread Ostermueller, Erik
I sure haven't seen anything like this, Here is my wishlist for improvements in the validation framework. I think my number 2 is similar to what you're requesting here. 1) Currently, when the validator encounters an exception, it punts right away (punt like in American football). Instead, the va

Re: [castor-dev] Using the reference attribute for xml mapping

2004-04-15 Thread Pastre Jerôme
I don't know the answer of your last question.   Maybe Keith Visco  could help you more ..   --Jerome   -Message d'origine-De : Arvin, Shawn POP/Exch) [mailto:[EMAIL PROTECTED]Envoyé : jeudi 15 avril 2004 15:06À : '[EMAIL PROTECTED]'Objet : Re: [castor-dev] Using the reference

Re: [castor-dev] Using the reference attribute for xml mapping

2004-04-15 Thread Arvin, Shawn POP/Exch)
Hi Jerome, Thank you for your response. I was able to get it working as you describe, my problem was that I missed the part that the node had to be set to attribute. But not I am facing a different problem. What happens when the field that is doing the referencing is actually referencing

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

2004-04-15 Thread g r i t s e n k o
I tried, cast gives CastException. But conceptually, this is the right ide, to convert proxy to real class and then marshall. Only conversion may be not necessarily casting. It can be copying property by property with getters and setters, from proxy properties, to real class properties. Bruce S

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

2004-04-15 Thread g r i t s e n k o
To cast is a bright idea - I will try it and report on progress! Bruce Snyder wrote: This one time, at band camp, Stein M. Hugubakken said: SMH>g r i t s e n k o wrote: SMH>> SMH>> I marshal like this: SMH>> SMH>> marshaller = new Marshaller(res.getWriter()); SMH>> marshaller

Re: [castor-dev] Duration type in JDO]

2004-04-15 Thread Werner Guttmann
Tomasz, it looks like I found a possible solution. To proceed, can you please file a bug report (flagged as enhancement request) at http://bugzilla.exolab.org. Once done, I'll attach a possible patch for review, and we'll take it from there. Regards Werner On Thu, 08 Apr 2004 13:21:39 +0200,

Re: [castor-dev] Using the reference attribute for xml mapping

2004-04-15 Thread Pastre Jerôme
Hi Shawn,   This an example of mapping file :                       --Jerome -M essage d'origine-De : Arvin, Shawn POP/Exch) [mailto:[EMAIL PROTECTED]Envoyé : mercredi 14 avril 2004 21:32À : '[EMAIL PROTECTED]'Obj

Re: [castor-dev] Duration type in JDO]

2004-04-15 Thread Werner Guttmann
Actually, please see below ... Werner On Thu, 15 Apr 2004 11:52:49 +0200, Werner Guttmann wrote: > >On Tue, 13 Apr 2004 08:23:33 -0600 (MDT), Bruce Snyder wrote: > >> >>This one time, at band camp, Werner Guttmann said: >> >>WG>after a litztle bit of debugging, I've traced this exception to th

Re: [castor-dev] Duration type in JDO]

2004-04-15 Thread Werner Guttmann
On Tue, 13 Apr 2004 08:23:33 -0600 (MDT), Bruce Snyder wrote: > >This one time, at band camp, Werner Guttmann said: > >WG>after a litztle bit of debugging, I've traced this exception to the following code >fragementin Types.java: >WG> >WG>public static Class typeFromName( ClassLoader loader,

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

2004-04-15 Thread Werner Guttmann
Gonzalo, I have recreated your environment as similar as possible, but whatever I am doing, I am failing to see an exception. I've taken all your files (almost unchanged), and converted the main test class into a JUnit test case. It all runs fine ... I know that's not what you hoped to hear f

[castor-dev] ValidationException : how to determine exact XML data error

2004-04-15 Thread Subodh Damle
>From ValidationException, is it possible to determine the name of XML element whose validation failed ? For ex, if there is a element 'el' whose validation given in schema fails during unmarshal, then is there any way to get the name 'el' from ValidationException ? I am thinking of ex

[castor-dev] problem with connection pooling for Oracle

2004-04-15 Thread Ughetti Marco
This is a re-send after the dev mailing list subscription:   Hi, Using this conf file:          minLimit="5" maxLimit="10" cache-scheme="1" />           I get a NullPointerException indicating that the pool is not active when I insert a row through this set