Re: AW: Duplicate key error when inserting a new record

2004-06-15 Thread Armin Waibel
Hi, > 14.06.2004 09:41:31 ch.eugster.pos.db.Table describeError > SCHWERWIEGEND: Can not init Identity for given object > [EMAIL PROTECTED] ok, this means that the Identity object couldn't be created. You do an insert, thus I assume that the sequence manager has a problem in lookup the next seque

AW: Duplicate key error when inserting a new record

2004-06-15 Thread Christian Eugster
Hi Armin, > hmm difficult to say what's going wrong. I can't find metadata for > 'ch.eugster.pos.db.DBResult' class or what does this entry mean? DBResult is just an object that capsulate the information a transaction is providing me. As following: DBResult result = receipt.store(); if receipt.

Re: New Warnings in Managed Environment with RC7

2004-06-15 Thread Armin Waibel
Gary wrote: Armin: Thanks for the quick reply. Do you guys have a "contribute" site like SourceForge so I could buy you a beer? Think I should avoid to drink alcohol, because your problem seems really sophisticated ;-) No, I wasn't using the "Sync" factory. When I change to it, I get a new err

Re: New Warnings in Managed Environment with RC7

2004-06-15 Thread Gary
Armin: Thanks for the quick reply. Do you guys have a "contribute" site like SourceForge so I could buy you a beer? No, I wasn't using the "Sync" factory. When I change to it, I get a new error: 2004-06-15 15:19:29,798 ERROR [TCP Connection(7)-172.24.54.129] Connection is in local transaction,

Re: New Warnings in Managed Environment with RC7

2004-06-15 Thread Armin Waibel
Hi Gary, Gary wrote: I am now getting the following warnings in a JTA environment (this worked fine, no messages, before RC7): 2004-06-15 13:32:26,728 WARN [Servlet.Engine.Transports : 0] No running tx found, please only delete objects in context of an PB-transaction, to avoid side-effects - e.g.

New Warnings in Managed Environment with RC7

2004-06-15 Thread Gary
I am now getting the following warnings in a JTA environment (this worked fine, no messages, before RC7): 2004-06-15 13:32:26,728 WARN [Servlet.Engine.Transports : 0] No running tx found, please only delete objects in context of an PB-transaction, to avoid side-effects - e.g. when rollback of com

Re: RE : OJB and RMI

2004-06-15 Thread Bradford Pielech
No, we didnt see any error messages relating to this, probably because the logging configuration is set in OJB.properties. Did you get a log message about that ? If not, then I should add one to make this easier for the next person with the same problem. No problem! Just for the record: do yo

Re: RE : OJB and RMI

2004-06-15 Thread Thomas Dudziak
Bradford Pielech wrote: No, we didnt see any error messages relating to this, probably because the logging configuration is set in OJB.properties. Well not exactly for two reasons: in rc7 and newer, logging settings can (and should) be specified in a separate file OJB-logging.properties. Also, a

Re: RE : OJB and RMI

2004-06-15 Thread Thomas Dudziak
Bradford Pielech wrote: Tom: Thanks for all your help. Sometimes a fresh set of eyes can really help. The problem was a misspelled path on the OJB.properties location. Did you get a log message about that ? If not, then I should add one to make this easier for the next person with the

Re: RE : OJB and RMI

2004-06-15 Thread Bradford Pielech
Tom: Thanks for all your help. Sometimes a fresh set of eyes can really help. The problem was a misspelled path on the OJB.properties location. Now you can get back to your usual task of helping solve real OJB problems. thanks again. Brad At 06:31 PM 6/15/2004 +0200, you wrote

Re: [ANN] OJB 1.0rc7 Released

2004-06-15 Thread Edson Carlos Ericksson Richter
To me, default doesn't matters... Just be really clear in DOCS that the changes are made, because I've a near to 265000 loc here that uses either RemovalAware and Non-RemovalAware behaviour... Best regards, Edson Richter Armin Waibel wrote: Steve Clark wrote: Armin Waibel writes: Armin> oo

Re: Duplicate key error when inserting a new record

2004-06-15 Thread Armin Waibel
Hi Christian, hmm difficult to say what's going wrong. I can't find metadata for 'ch.eugster.pos.db.DBResult' class or what does this entry mean? regards, Armin Christian Eugster wrote: Hi! I use OJB-1.0rc5 with a mysql (innodb) as backend. When we insert concurrently objects that have two 1:n-re

Re: RE : OJB and RMI

2004-06-15 Thread Thomas Dudziak
Bradford Pielech wrote: Tom: Thanks for the pointer, but it still isn't working. Here is some sample code inside the RMI server that illustrates the failure: String s = RMIClassLoader.getClassAnnotation(PersistenceBrokerFactory.class); ClassLoader cl = RMIClassLoader.getClas

Re: RE : OJB and RMI

2004-06-15 Thread Bradford Pielech
Tom: Thanks for the pointer, but it still isn't working. Here is some sample code inside the RMI server that illustrates the failure: String s = RMIClassLoader.getClassAnnotation(PersistenceBrokerFactory.class); ClassLoader cl = RMIClassLoader.getClassLoader(s); org.ap

Re: Three level inheritance problem - Null data from the mostly nested table

2004-06-15 Thread Armin Waibel
Hi Mariusz, did you try latest release (rc7)? Jakob fix a problem with inheritance between rc6 and rc7. regards, Armin Mariusz Wójcik wrote: Hi I try to realize three level of inheritance in OJB. My Class C extends Class B extends Class A each data are stored in separate tables (Table A, Table B

Re: [ANN] OJB 1.0rc7 Released

2004-06-15 Thread Armin Waibel
Hi Gary, Gary wrote: Can someone please clarify exactly what property changed in OJB.properties as mentioned below? Thanks. OJB.properties file new properties: -ListProxyClass -IndirectionHandlerClass -SetProxyClass -RowReaderDefaultClass odmg specific -ImplementationClass The logging properties m

Re: [ANN] OJB 1.0rc7 Released

2004-06-15 Thread Armin Waibel
Steve Clark wrote: Armin Waibel writes: Armin> ooh, seems I made a mistake in the test cases repository I Armin> don't specified a "non-removeaware" collection-class. Maybe Armin> I should read the docs before I start writing the next test Armin> cases ;-). Not to beat a dead horse

Re: [ANN] OJB 1.0rc7 Released

2004-06-15 Thread Steve Clark
> Armin Waibel writes: Armin> ooh, seems I made a mistake in the test cases repository I Armin> don't specified a "non-removeaware" collection-class. Maybe Armin> I should read the docs before I start writing the next test Armin> cases ;-). Not to beat a dead horse, but I thin

Re: RE : OJB and RMI

2004-06-15 Thread Thomas Dudziak
Bradford Pielech wrote: The problem occurs the very first time we call anything to do with PersistenceBroker. Another thing of note is that the RMI server and OJB / MySQL libraries are all on the same machine. This seems to be a classloader problem, perhaps the thread's context classloader is th

Pb on jdo.getCol and Delete

2004-06-15 Thread Emmanuel DUPONT
All, I retrieve a jdo collection with the jdo.getCol method. I'm using dynamic proxy. OJB RC7 same pb in RC6 I'm using an iterator on this col and delete each object retrieve. Later (not all time but 50% time) I commit and I have an Unmaterialized proxy error !! It seems that after a

RE : OJB and RMI

2004-06-15 Thread Bradford Pielech
The problem occurs the very first time we call anything to do with PersistenceBroker. Another thing of note is that the RMI server and OJB / MySQL libraries are all on the same machine. Brad At 04:36 PM 6/15/2004 +0200, you wrote: A thread problem ? Does your problem occurs the first call or on

RE : OJB and RMI

2004-06-15 Thread Jean-Baptiste BRIAUD
A thread problem ? Does your problem occurs the first call or only next one ? Jean-Baptiste BRIAUD SYSDEO www.sysdeo.com software engineer www.eclipsetotale.com > -Message d'origin

OJB and RMI

2004-06-15 Thread Bradford Pielech
Hello all: I am having running into a problem. I have an RMI server which intends to make calls to MySQL, using PersistencBroker. It fails when I call: PersistenceBroker pbroker = PersistenceBrokerFactory.defaultPersistenceBroker(); with: - [BOOT] ERROR: Creation o

Re: [ANN] OJB 1.0rc7 Released

2004-06-15 Thread Gary
Can someone please clarify exactly what property changed in OJB.properties as mentioned below? Thanks. > - OJB.properties file has changed, don't forget to > replace on update! > One new property > to set in managed environments. --- Brian McCallister <[EMAIL PROTECTED]> wrote: > The OJB team w

Re: [ANN] OJB 1.0rc7 Released

2004-06-15 Thread Armin Waibel
Hi Steve, Steve Clark wrote: Brian> - odmg-api: Creation of m:n relation only works when Brian> objects created step by step (or use PB-api as workaround), Brian> persist a whole object graph doesn't work. On delete of Brian> collection objects from a m:n relation objects will be

Re: Cascading anonymous keys

2004-06-15 Thread Armin Waibel
Hi Brian, Brian Latimer wrote: Armin, I have tried my code with rc7 and I still have the problem I described. Looking at the test case you have written, it seems to produce the results I would like. That is, your code does not return null objects for objects that should be retrieved via anonymou

Re: Launching a statement SQL fom OJB

2004-06-15 Thread Armin Waibel
Hi Paolo, Paolo Salvan wrote: Hi! Suppose I've to do something in the DB launching directly an SQL statement, bypassing OJB how can I do it? Please see http://db.apache.org/ojb/docu/faq.html#performSQL http://db.apache.org/ojb/docu/connection.html#obtain-connection And how to prevent problems

Re: RC7 contains JBoss TX fix? was Re: [ANN] OJB 1.0rc7 Released

2004-06-15 Thread Armin Waibel
Hi Guido, Guido Beutler wrote: Hi, does RC7 contains the JBoss transaction fix Armin build for me? The problem was to return the JDBC Connection earlyer to avoid "returning unknown connection" exceptions yep! It also include another fix: PersistenceBrokerFactorySyncImpl.java now always use the same

RC7 contains JBoss TX fix? was Re: [ANN] OJB 1.0rc7 Released

2004-06-15 Thread Guido Beutler
Hi, does RC7 contains the JBoss transaction fix Armin build for me? The problem was to return the JDBC Connection earlyer to avoid "returning unknown connection" exceptions best regards, Guido - To unsubscribe, e-mail: [EMAIL PROTE

Three level inheritance problem - Null data from the mostly nested table

2004-06-15 Thread Mariusz Wójcik
Hi I try to realize three level of inheritance in OJB. My Class C extends Class B extends Class A each data are stored in separate tables (Table A, Table B, Table C) . I've implemented it. Inserts work fine. Inheritance is OK, all data are stored in tables.All references are OK. I have problems

Duplicate key error when inserting a new record

2004-06-15 Thread Christian Eugster
Hi! I use OJB-1.0rc5 with a mysql (innodb) as backend. When we insert concurrently objects that have two 1:n-relations into the same table pos_receipt from e.g. 4 clients, we get the following duplicate-primary-key-message: 14.06.2004 09:40:47 ch.eugster.pos.db.DBResult log SCHWERWIEGEND: 23000: