memory leak

2004-07-29 Thread ZZZ Liu
Hi, I am writing a tool to import data into database and I am using OJB 1.0 as the persistence layer to do the actual insertion/update into database. I found that I will get OutOfMemoryError problem if I load a large number (over 100, will commit for each file) of files' data. It works fine if I

Found unclosed resources while finalize

2004-07-29 Thread ZZZ Liu
Hi, I am using OJB 1.0. I found following message appeared a lot of times in my log file. Could anybody tell me what does that mean and what would cause that problem? 29 Jul 2004 20:27:43 5408 INFO [Finalizer] accesslayer.ReportQueryRsIterator - Found unclosed resources while finalize (causer

Re: Negative Sequence Numbers?

2004-07-29 Thread Robert Crawford
Charles N. Harvey III said: > It means that something isn't set correctly in the database. > This has happened to me many times. It always happens when I turn on "native" sequencing (IDENTITY in MSSQL or AUTOINCREMENT in MySql). Check the PK of your database, it might not be properly set to incre

Re: OJB/JDO

2004-07-29 Thread Brian McCallister
On Jul 29, 2004, at 5:53 PM, Artur Z wrote: thanks form reply correct me if i'm wrong, but if everything will go as planed the apache JDO implementation will be ready by november ? That is my personal plan, not an official one, and is subject to the whims of the JDO expert group changing everythi

Re: OJB/JDO

2004-07-29 Thread Artur Z
thanks form reply correct me if i'm wrong, but if everything will go as planed the apache JDO implementation will be ready by november ? Artur - Original Message - From: "Brian McCallister" <[EMAIL PROTECTED]> To: "OJB Users List" <[EMAIL PROTECTED]> Sent: Thursday, July 29, 2004 11:27 P

Re: OJB/JDO

2004-07-29 Thread Brian McCallister
On Jul 29, 2004, at 4:42 PM, Artur Z wrote: hello I searched the archive and I have not found answers so please tell me: - is it still impossible to use OJB/JDO in production (because of the sun's JDORI license) ? Yes - when apache implementation of JDO will be ready ? Good question. We are workin

RE: Negative Sequence Numbers?

2004-07-29 Thread Vesely, Maxim [IT]
I'm using rc6.0 for now thinking of going to 1.0.0. What version did you upgrade with to make it work? Thank you, Max. -Original Message- From: Jin Bal [mailto:[EMAIL PROTECTED] Sent: Thursday, July 29, 2004 9:19 AM To: OJB Users List Subject:Re: Negative Sequence Num

OJB/JDO

2004-07-29 Thread Artur Z
hello I searched the archive and I have not found answers so please tell me: - is it still impossible to use OJB/JDO in production (because of the sun's JDORI license) ? - when apache implementation of JDO will be ready ? - why JDO api is better than ODMG (I mean functionality, usability) ? onl

Re: Negative Sequence Numbers?

2004-07-29 Thread Jin Bal
I've been experiencing the same problem but running on just Tomcat. what version of OJB are you using What DB. I was using RC5 and MySQL i've upgragded and have stopped getting the error in my dev env but have yert to test on the integration server. Cheers Jin - Original Message - Fro

auto-retrieve across jdbc-connections

2004-07-29 Thread Ian Hunter
I'm using the PB API, and I have data in two separate databases (on two separate machines). I have an object class in one database that contains another object class from another database. The problem comes when I set auto-retrieve on for the containing class -- OJB doesn't seem to realize that t

RE: Negative Sequence Numbers?

2004-07-29 Thread Vesely, Maxim [IT]
DB2 UDB also supports "GENERATED BY DEFAULT AS IDENTITY" columns. How can I make it work with OJB? The implementation I'm looking for is the one that leaves PK as null at the time of insert. I realize that it might be impossible to do in the framework that tries to manage object's identity eve

Re: Negative Sequence Numbers?

2004-07-29 Thread Armin Waibel
Vesely, Maxim [IT] wrote: Does anyone know how to turn "native" sequencing in DB2? I do get -1 and -2 as values for that column and at some point(when application is restarted) it complaints that an attempt was made to insert non-unique primary key. As far as I know DB2 support DB generated seque

RE: Negative Sequence Numbers?

2004-07-29 Thread Vesely, Maxim [IT]
Does anyone know how to turn "native" sequencing in DB2? I do get -1 and -2 as values for that column and at some point(when application is restarted) it complaints that an attempt was made to insert non-unique primary key. Thanks in advance. Max. -Original Message- From: Charles N. Har

Report queries and converted fields

2004-07-29 Thread Sami Altundağ
Hi, I am using RC7. Report queries do not convert fields as specified in the mapping. For example, the field shown here returns as BigDecimal in the query result. Is there a way to get it converted? Sami

Re: Negative Sequence Numbers?

2004-07-29 Thread Charles N. Harvey III
It means that something isn't set correctly in the database. This has happened to me many times. It always happens when I turn on "native" sequencing (IDENTITY in MSSQL or AUTOINCREMENT in MySql). Check the PK of your database, it might not be properly set to increment. Whenever this isn't set

RE: Negative Sequence Numbers?

2004-07-29 Thread Vesely, Maxim [IT]
I experienced exactly the same problem running in managed environment with JTA transaction. Max. -Original Message- From: Armin Waibel [mailto:[EMAIL PROTECTED] Sent: Thursday, July 29, 2004 8:35 AM To: OJB Users List Subject: Re: Negative Sequence Numbers? Robert Crawford wrote: > Ar

Re: Negative Sequence Numbers?

2004-07-29 Thread Robert Crawford
Armin Waibel said: > Robert Crawford wrote: > >> Armin Waibel said: >> >>>Robert Crawford wrote: >>> >>> Armin Waibel said: >Do you only use the PB-api? This bug is odmg-api related. I only use the PB-api. >>> >>>Then you shouldn't get problems with negative se

Re: Negative Sequence Numbers?

2004-07-29 Thread Armin Waibel
Robert Crawford wrote: Armin Waibel said: Robert Crawford wrote: Armin Waibel said: Do you only use the PB-api? This bug is odmg-api related. I only use the PB-api. Then you shouldn't get problems with negative sequence numbers. Can you describe me with some pseudo code an test case to reproduce

Re: Negative Sequence Numbers?

2004-07-29 Thread Robert Crawford
Armin Waibel said: > Robert Crawford wrote: > >> Armin Waibel said: >> >>>Do you only use the PB-api? This bug is odmg-api related. >> >> >> I only use the PB-api. >> > > Then you shouldn't get problems with negative sequence numbers. > Can you describe me with some pseudo code an test case to rep

Re: Negative Sequence Numbers?

2004-07-29 Thread Armin Waibel
Robert Crawford wrote: Armin Waibel said: Do you only use the PB-api? This bug is odmg-api related. I only use the PB-api. Then you shouldn't get problems with negative sequence numbers. Can you describe me with some pseudo code an test case to reproduce your problem? regards, Armin ---

Re: Negative Sequence Numbers?

2004-07-29 Thread Robert Crawford
Armin Waibel said: > Do you only use the PB-api? This bug is odmg-api related. I only use the PB-api. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Query results have all fields null, and log msg 'object is a proxy'

2004-07-29 Thread Stijn de Witt
Can anyone help me with this? I have made some changes in my code, and I got one object of two currently in the db to load correctly. I don't know why the other one does not load. I'm having the feeling that I am missing something here. Here is my code below. I have copied the relevant part of the

Re: Negative Sequence Numbers?

2004-07-29 Thread Armin Waibel
Robert Crawford wrote: Armin Waibel said: Hi Robert, there is bug in ODMG-api FK assignment when using SequenceManagerNativeImpl (using DB Identity columns). Test case is in CVS and we will try to fix this problem asap. workaround: use the PB-api to insert new object with 1:1 reference I'm not sur

Re: Negative Sequence Numbers?

2004-07-29 Thread Robert Crawford
Armin Waibel said: > Hi Robert, > > there is bug in ODMG-api FK assignment when using > SequenceManagerNativeImpl (using DB Identity columns). > Test case is in CVS and we will try to fix this problem asap. > > workaround: use the PB-api to insert new object with 1:1 reference I'm not sure I unde

Re: how to postinitialize...even with getCollectionByQuery

2004-07-29 Thread Thomas Dudziak
David Zejda wrote: What do you recommend - should I redesign my model to make it not dependent on being informed whenewer an object completely materialized? I guess, that would make a lot of things easier. In my experience, if you can get away with POJOs in your app (e.g. the domain is not aware

Re: how to postinitialize...even with getCollectionByQuery

2004-07-29 Thread David Zejda
What do you recommend - should I redesign my model to make it not dependent on being informed whenewer an object completely materialized? Thanks. David David Zejda wrote: Mhmm, two things: * Are you sure that the thing object is actually stored in the db, i.e. is there a row for it after the sto

Re: how to change auto-retrieve for a query?

2004-07-29 Thread Armin Waibel
Maksimenko Alexander wrote: Armin Waibel wrote: Use collection proxy for child objects http://db.apache.org/ojb/docu/guides/basic-technique.html#Using+a+Single+Proxy+for+a+Whole+Collection or set auto-retrieve of your collection-descriptor to "none/false". But be careful when using this setting

Re: how to change auto-retrieve for a query?

2004-07-29 Thread Maksimenko Alexander
Armin Waibel wrote: Use collection proxy for child objects http://db.apache.org/ojb/docu/guides/basic-technique.html#Using+a+Single+Proxy+for+a+Whole+Collection or set auto-retrieve of your collection-descriptor to "none/false". But be careful when using this setting in combination with auto-up

Re: ODMG and primary key assignment

2004-07-29 Thread Armin Waibel
Saleem Shafi wrote: Hello, i have a quick question about when a primary key is assigned to an object using the ODMG interface provided by OJB.. i realize that the PersistentBroker.store() method will set the primary key property on the object, but the .lock() method on the ODMG transaction doesn't

Re: how to change auto-retrieve for a query?

2004-07-29 Thread Armin Waibel
Ji Joose, Joose Vettenranta wrote: Hi, I want to retrieve lot's of data and not to retrieve it's childs (1:n relationship). I'm using like: PersistenceManager persistenceManager = pmf.getPersistenceManager(); PersistenceBroker broker = PersistenceBrokerFactory.defaultPersistence

Re: Tutorial

2004-07-29 Thread lasse . lambrecht
Return Receipt Your Re: Tutorial document :

Re: Tutorial

2004-07-29 Thread lasse . lambrecht
Return Receipt Your Re: Tutorial document :

Re: Negative Sequence Numbers?

2004-07-29 Thread Armin Waibel
Hi Robert, there is bug in ODMG-api FK assignment when using SequenceManagerNativeImpl (using DB Identity columns). Test case is in CVS and we will try to fix this problem asap. workaround: use the PB-api to insert new object with 1:1 reference Transaction tx = odmg.newTransaction(); tx.begin();

Re: Tutorial

2004-07-29 Thread Patrick_Reyes
Return Receipt Your Re: Tutorial document :