Re: [castor-dev] Long transaction update failed, if the Object was loaded before.

2003-10-29 Thread Bruce Snyder
This one time, at band camp, Pletzer, Martin (ext. Mitarbeiter) said: PMeM>we have a strange problem with CASTOR as persistence manager. PMeM> PMeM>We use a access="shared" in our mapping file. PMeM>In our webApp (tomcat 4.1.2) I'm loading an Object through CASTOR from our PMeM>DB. PMeM>I change v

[castor-dev] Long transaction update failed, if the Object was loaded before.

2003-10-29 Thread Pletzer, Martin (ext. Mitarbeiter)
Hi *, we have a strange problem with CASTOR as persistence manager. We use a access="shared" in our mapping file. In our webApp (tomcat 4.1.2) I'm loading an Object through CASTOR from our DB. I change values, UPDATE the object: everything works fine. I close the browser. I open a new browser, loa

Re: [castor-dev] Long Transaction & Dependant Objects..still

2002-06-10 Thread Jon Wilmoth
After reading some of the new postings, I've changed my usage to be based on Heiko Erhardt's email ("Why uses castor a long transaction"). This solved my problem. Leason learned: 1) No need to load object and call Database.update 2) Simpler/Works to load object from db and populate object in 'sh

Re: [castor-dev] Long Transaction & Dependant Objects..still

2002-06-01 Thread Bruce Snyder
This one time, at band camp, Jon Wilmoth said: JW>I searched the mail archives and found a couple of JW>people had posted problems with persisting JDO JW>relationships. Since I didn't see any answers, and JW>I'm having the same problem others have had I thought JW>I'd post this again in hopes of

[castor-dev] Long Transaction & Dependant Objects..still

2002-05-30 Thread Jon Wilmoth
I searched the mail archives and found a couple of people had posted problems with persisting JDO relationships. Since I didn't see any answers, and I'm having the same problem others have had I thought I'd post this again in hopes of an answer from exolab or a work around from someone who has fa

Re: [castor-dev] Long Transaction still giving ObjectModifiedExce ption

2002-04-26 Thread Thomas Yip
e- >From: Jamal Jackson >Sent: Friday, April 19, 2002 4:54 PM >To: '[EMAIL PROTECTED]' >Subject: RE: [castor-dev] Long Transaction still giving >ObjectModifiedExce ption > > >Thanks for the note. I haven't set my object variables to anything yet, >includi

[castor-dev] Long Transaction still giving ObjectModifiedExce ption

2002-04-26 Thread Jamal Jackson
ECTED]' Subject: RE: [castor-dev] Long Transaction still giving ObjectModifiedExce ption Thanks for the note. I haven't set my object variables to anything yet, including "" . So I imagine that the ones that were null from when I loaded the object are still null -Original Me

Re: [castor-dev] Long Transaction still giving ObjectModifiedExce ption

2002-04-19 Thread Jamal Jackson
002 11:38 AM To: [EMAIL PROTECTED] Subject: Re: [castor-dev] Long Transaction still giving ObjectModifiedExce ption Do not know if this is the cause of your problem or not, but we ran into a similar issue using Oracle due to their infamous "empty string -> NULL" feature (though most

Re: [castor-dev] long-transaction

2002-04-19 Thread Smith, Kevin
rwise. --Kevin -Original Message- From: Gray Jones [mailto:[EMAIL PROTECTED]] Sent: Friday, April 19, 2002 9:09 AM To: [EMAIL PROTECTED] Subject: Re: [castor-dev] long-transaction I would agree that using long transactions makes things more difficult in castor. We had alot of problems when t

Re: [castor-dev] long-transaction

2002-04-19 Thread Gray Jones
EMAIL PROTECTED] Subject: Re: [castor-dev] long-transaction Others may have a different take on this, but in my experience you are best served not using Castor's concept of long transactions. Thats just an opinion. However, as for your issue: I am guessing you are trying to persist AccountK,

Re: [castor-dev] long-transaction

2002-04-18 Thread Ebersole, Steven
195 Visit http://www.vignette.com -Original Message- From: Fabricio Matheus Goncalves [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 18, 2002 3:30 PM To: [EMAIL PROTECTED] Subject: [castor-dev] long-transaction Hi, Im trying to do

[castor-dev] long-transaction

2002-04-18 Thread Fabricio Matheus Goncalves
Hi, Im trying to do almost the same described at http://castor.exolab.org/long-transact.html If it help, I have a Account Tree, where AccountA is the root, and AccountK is a ChildNode. Could you help or point me to documentation references on this? org.exolab.castor.jdo.PersistenceException: O

Re: [castor-dev] Long Transaction Problem !!! HELP

2002-01-24 Thread Oleg Nitz
Tancerel Benoit wrote: > whitout the Date mapping it seems to work i've got no ObjectModifedExcpetion > how do i map th Date fields ? Like this > why there's problems with Date ?? Well, there may be problems with nanoseconds: java.sql.Timestamp has nanoseconds, but

Re: [castor-dev] Long Transaction Problem !!! HELP

2002-01-24 Thread Alexey A. Efimov
I use java.util.Date -Original Message- From: Tancerel Benoit [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 1:57 PM To: [EMAIL PROTECTED] Subject: Re: [castor-dev] Long Transaction Problem !!! HELP thanks for all answers the problem seems to be the mapping of the Date

Re: [castor-dev] Long Transaction Problem !!! HELP

2002-01-24 Thread Tancerel Benoit
PROTECTED]] Date: jeudi 24 janvier 2002 11:45 A: [EMAIL PROTECTED] Objet: Re: [castor-dev] Long Transaction Problem !!! HELP depricated :) you already find that trouble is :)) -Original Message- From: Alexey A. Efimov Sent: Thursday, January 24, 2002 1:43 PM To: [EMAIL PROTECTED] S

Re: [castor-dev] Long Transaction Problem !!! HELP

2002-01-24 Thread Alexey A. Efimov
depricated :) you already find that trouble is :)) -Original Message- From: Alexey A. Efimov Sent: Thursday, January 24, 2002 1:43 PM To: [EMAIL PROTECTED] Subject: Re: [castor-dev] Long Transaction Problem !!! HELP I not sure but. try this selects: select * from utilisateur; and

Re: [castor-dev] Long Transaction Problem !!! HELP

2002-01-24 Thread Alexey A. Efimov
2 1:32 PM To: [EMAIL PROTECTED] Subject: Re: [castor-dev] Long Transaction Problem !!! HELP i use MS SQL Server on a windows 2000 server and my web app is on a linux redhat 7 Ben. -Message d'origine- De: Alexey A. Efimov [SMTP:[EMAIL PROTECTED]] Date: jeudi 24 janvier 2002 11:13 A

Re: [castor-dev] Long Transaction Problem !!! HELP

2002-01-24 Thread Tancerel Benoit
ROTECTED] Objet: Re: [castor-dev] Long Transaction Problem !!! HELP Ben, try to exclude Date fields from your mapping, I remember there were problems with Date values conversion. How did you describe the Date fields in mapping.xml? If without Date fields you still get ObjectModifiedException, the

Re: [castor-dev] Long Transaction Problem !!! HELP

2002-01-24 Thread Tancerel Benoit
i use MS SQL Server on a windows 2000 server and my web app is on a linux redhat 7 Ben. -Message d'origine- De: Alexey A. Efimov [SMTP:[EMAIL PROTECTED]] Date: jeudi 24 janvier 2002 11:13 A: [EMAIL PROTECTED] Objet: Re: [castor-dev] Long Transaction Problem !!! HELP I

Re: [castor-dev] Long Transaction Problem !!! HELP

2002-01-24 Thread Tancerel Benoit
db.update(this); db.commit(); } catch(PersistenceException pe) { //db.rollback(); pe.printStackTrace(); cat.error("erreur : " + pe);

Re: [castor-dev] Long Transaction Problem !!! HELP

2002-01-24 Thread Oleg Nitz
Ben, try to exclude Date fields from your mapping, I remember there were problems with Date values conversion. How did you describe the Date fields in mapping.xml? If without Date fields you still get ObjectModifiedException, then exclude other fields one by one to see which one causes the except

Re: [castor-dev] Long Transaction Problem !!! HELP

2002-01-24 Thread Alexey A. Efimov
: [castor-dev] Long Transaction Problem !!! HELP i can't see the SQL this is my log [DEBUG]- timestamp : 1011863524612 this the timestamp of the object i pass through the session [DEBUG]- timestamp : 1011863524612 this the timestamp of the current object i want to updat

Re: [castor-dev] Long Transaction Problem !!! HELP

2002-01-24 Thread Oleg Nitz
Tancerel wrote: > and i also try with > and it doesn't execute my db.update :))) Sorry Ben for my bad wording, I know that this won't worked, I thougth that your ObjectModifiedException might be caused by such setting. But if you tried and still got the ObjectModifiedException than the problem d

Re: [castor-dev] Long Transaction Problem !!! HELP

2002-01-24 Thread Tancerel Benoit
thanks Ben -Message d'origine- De: Alexey A. Efimov [SMTP:[EMAIL PROTECTED]] Date: jeudi 24 janvier 2002 10:40 A: [EMAIL PROTECTED] Objet: Re: [castor-dev] Long Transaction Problem !!! HELP Heelo, try check SQL, that Castor send to Database. I suppose in this SQL like thi

Re: [castor-dev] Long Transaction Problem !!! HELP

2002-01-24 Thread Alexey A. Efimov
] Subject: Re: [castor-dev] Long Transaction Problem !!! HELP i tried with all the options of all my value of my persistent object are values or null (there's no "" values) and my db.update always send me an ObjectModifiedExcpetion if use db.load, set my fields and db.commit how can i kn

Re: [castor-dev] Long Transaction Problem !!! HELP

2002-01-24 Thread Tancerel Benoit
n -Message d'origine- De: Alexey A. Efimov [SMTP:[EMAIL PROTECTED]] Date: mercredi 23 janvier 2002 20:22 A: [EMAIL PROTECTED] Objet: Re: [castor-dev] Long Transaction Problem !!! HELP Castor hold timestamp labels in this cache. If you turn off the cache, Castor no stote

Re: [castor-dev] Long Transaction Problem

2001-12-06 Thread Thomas Yip
(obj); >db.commit(); -Original Message- >From: Wap Brunei [mailto:[EMAIL PROTECTED]] >Sent: Thursday, December 06, 2001 5:37 PM >To: [EMAIL PROTECTED] >Subject: [castor-dev] Long Transaction Problem > >I have a mapping like this > > > > >

[castor-dev] Long Transaction Problem

2001-12-06 Thread Wap Brunei
I have a mapping like this db.begin(); MyObject OBJ = (MyObject)db.load(MyObject.class,new Integer(1)); db.commit(); db.begin(); <-- Long Transaction Begin obj.setMyObject(OBJ); obj.setName("Object 3"); db.create(obj); db.commit(); // This

Re: [castor-dev] Long Transaction nightmare

2001-11-24 Thread Toni Charlot
From: Keith Chew SL [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 24, 2001 7:05 PM To: [EMAIL PROTECTED] Subject: Re: [castor-dev] Long Transaction nightmare Hi Toni I encountered a similar problem a while ago. The reason for this is because Castor needs to know about employee (30) in the u

[castor-dev] Long Transaction Related Object

2001-11-21 Thread Wap Brunei
I have 2 classes Product and Group. Product has a property Group to indicate the group belong to. For short transaction thing work fine but for long transaction the property Group become null. Why? Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com

Re: [castor-dev] Long Transaction

2001-10-22 Thread Keith Chew
ssage- From: Keith Chew [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 23 October 2001 4:19 p.m. To: [EMAIL PROTECTED] Subject: Re: [castor-dev] Long Transaction Hi Thomas Thanks for your patience and looking at my mail. I am basically working on the example (Product, ProductDetail) and trying to recrea

Re: [castor-dev] Long Transaction

2001-10-22 Thread Keith Chew
ed. Regards Keith C -Original Message- From: Thomas Yip [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 23 October 2001 4:07 p.m. To: [EMAIL PROTECTED] Subject: Re: [castor-dev] Long Transaction See inline. -Original Message- >From: Keith Chew [mailto:[EMAIL PROTECTED]] >Sent: Mon

Re: [castor-dev] Long Transaction

2001-10-22 Thread Thomas Yip
See inline. -Original Message- >From: Keith Chew [mailto:[EMAIL PROTECTED]] >Sent: Monday, October 22, 2001 7:21 PM >To: [EMAIL PROTECTED] >Subject: Re: [castor-dev] Long Transaction > >Hi > >Ok, there are 2 ways to do this. The hard way is to simulate a short

Re: [castor-dev] Long Transaction

2001-10-22 Thread Keith Chew
because you have to ensure that the dependent objects are loaded in the same transaction. Regards Keith C -Original Message- From: Keith Chew [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 23 October 2001 3:21 p.m. To: [EMAIL PROTECTED] Subject: Re: [castor-dev] Long Transaction Hi Ok, there

Re: [castor-dev] Long Transaction

2001-10-22 Thread Keith Chew
ode. Maybe I might find some other hints. Keith C -Original Message- From: Toni Charlot [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 23 October 2001 1:40 p.m. To: [EMAIL PROTECTED] Subject: Re: [castor-dev] Long Transaction Hello Keith, can you share that, por favor. -Original Mes

Re: [castor-dev] Long Transaction

2001-10-22 Thread Toni Charlot
Hello Keith, can you share that, por favor. -Original Message- From: Keith Chew [mailto:[EMAIL PROTECTED]] Sent: Monday, October 22, 2001 7:42 PM To: [EMAIL PROTECTED] Subject: Re: [castor-dev] Long Transaction Ignore this mail. I know a way to fix my problem. Regards Keith C

Re: [castor-dev] Long Transaction

2001-10-22 Thread Keith Chew
Ignore this mail. I know a way to fix my problem. Regards Keith C -Original Message- From: Keith Chew [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 23 October 2001 11:34 a.m. To: [EMAIL PROTECTED] Subject: [castor-dev] Long Transaction Hi Same scenarion Product and ProductGroup example

[castor-dev] Long Transaction

2001-10-22 Thread Keith Chew
Hi Same scenarion Product and ProductGroup example. Creation and lookup is working fine now (all I needed to do was to load ProductGroup in the same transaction as the one used to create the Product). Now I am testing long transaction support. When I assign a new ProductGroup to the product and