lazy materialization problem

2005-04-27 Thread Maksimenko Alexander
Hi! I have tree like structure (with parent,children relationships). I'm using proxies to lazy materialize them. Everything works well but in particular cases I have to materialize the whole tree because folder.getChildren().get(0).getParent() is not the same as folder and sometimes it makes

MySQL communication link failure

2005-04-27 Thread Stijn de Witt
Hi, We have developed a web application using OJB. All seems to work fine, but after some hours of being deployed we run into a problem. We get the exception shown below (lots of lines snipped for brevity). at org.apache.ojb.broker.accesslayer.JdbcAccessImpl.executeQuery(Unknown

1-1 Relationship Both ways

2005-04-27 Thread Lemke, Wesley
We have a 1-1 Relationship between GenericGroup and ClientBillingInfo. We have the client_billing_id in the generic_group table and the generic_grp_id in the client_billing table, because we need to traverse this relationship in both directions. Our problem occurs when we save a GenericGroup. It

Re: MySQL communication link failure

2005-04-27 Thread Danilo Tommasina
Hi, (...) Now I am getting a bit lost in all these options, and testing them is very hard. Does anyone here have experience with this issue and know of an easy way to fix it? Option 1) with autoReconnect seems most attractive to me, but how should I set such a connection parameter using OJB?

MetadataManager.copyOfGlobalRepository problem

2005-04-27 Thread Stas Ostapenko
Hi! I have problem with this very simple code. When I try to run it I have an strange exception. import org.apache.ojb.broker.metadata.DescriptorRepository; import org.apache.ojb.broker.metadata.MetadataManager; public class test_copyOfGlobalRepository { public static void main(String

Re: MySQL communication link failure

2005-04-27 Thread Stijn de Witt
Danilo Tommasina wrote: Now I am getting a bit lost in all these options, and testing them is very hard. Does anyone here have experience with this issue and know of an easy way to fix it? Option 1) with autoReconnect seems most attractive to me, but how should I set such a connection parameter

MetadataManager.copyOfGlobalRepository problem

2005-04-27 Thread Stas Ostapenko
Hi! I have problem with this very simple code. When I try to run it I have an strange exception. import org.apache.ojb.broker.metadata.DescriptorRepository; import org.apache.ojb.broker.metadata.MetadataManager; public class test_copyOfGlobalRepository { public static void main(String

Re: MetadataManager.copyOfGlobalRepository problem

2005-04-27 Thread Armin Waibel
Hi, could it be a class-loader problem (your test run in appServer with a specific class-loader hierarchy)? http://www.mail-archive.com/ojb-user@db.apache.org/msg11050.html Could it be a package problem? Domain.class directory doesn't match package name? In OJB test-suite this method was used

Re: Proxy, Prefetching, Memory Usage

2005-04-27 Thread Jakob Braeuchi
hi andreas, i just comitted a patch (OJB 1.1) to solve this problem. please have a look at it. jakob Andreas Bohnert schrieb: hello jakob, I just have choosen 'Article' as an example. I don't need to prefetch a relation from there. This problem here is related with my posting: Out of Memory on

Which Object Cache am I using?

2005-04-27 Thread Lemke, Wesley
I seem to be having problems with our object cache. Items are getting updated in the database even when nothing has changed. I am using oscache, as described in the OptimisitcLocking tutorial, and this is what I have in OJB.properties:

Re: Which Object Cache am I using?

2005-04-27 Thread Armin Waibel
Hi Wes, which version of OJB do you use? In OJB 1.0.2 the setting of ObjectCache is moved to repository file (see release note and caching docs). regards, Armin Lemke, Wesley wrote: I seem to be having problems with our object cache. Items are getting updated in the database even when nothing

RE: Which Object Cache am I using?

2005-04-27 Thread Lemke, Wesley
I am using 1.0.2. I'll look into the docs, thanks! -Original Message- From: Armin Waibel [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 27, 2005 2:40 PM To: OJB Users List Subject: Re: Which Object Cache am I using? Hi Wes, which version of OJB do you use? In OJB 1.0.2 the setting

Problems with collections in ODMG - just upgraded to OJB 1.0.3

2005-04-27 Thread Steve_Clark
Now I remember why I'm always hesitant to upgrade OJB - it seems like there is some fundamental change to how things work. I hope things are getting more stable, 'cause in the in-between times when I don't have to rework, it's a great tool. Here's where I'm stuck now. I just upgraded from