Iterating the cache?

2006-02-06 Thread Bernd Laengerich
Hi, maybe a stupid question: Is there a way to iterate through the ObjectCache? I didn't find it in the Javadoc. With kind regards Bernd Längerich - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Migrating to 1.0.4

2006-02-06 Thread Bruno CROS
Well, step by step, i hope that anything will be fine soon. DB Connections are well mounted, thank you very much again. So, I tested my batch processes and i noted that log4j trace disappeared. I think it's no so hard to resolve (just redirect to my commons logging setup). But the most

Re: Migrating to 1.0.4

2006-02-06 Thread Bruno CROS
Trace is working now. May be i have i start of explanation. I saw that 1:n relations are all read ( checked ) , even if no getter (getCollections) exists on mapped object. That's because my process is running slower i think. I don't known why this occurs. I guess you're going to tell me that i

Re: Iterating the cache?

2006-02-06 Thread Armin Waibel
Hi Bernd, Bernd Laengerich wrote: Hi, maybe a stupid question: Is there a way to iterate through the ObjectCache? I didn't find it in the Javadoc. sorry, this is not possible. If you really need this functionality please add a feature request in JIRA and the reason why this was useful.

Re: Migrating to 1.0.4

2006-02-04 Thread Armin Waibel
Hi Bruno, Bruno CROS wrote: i already have patch torque3.1.1.jar. thanks for advice. I've done since start with the build.xml of ojb-blank.jar (so torque). I have the right database generated now. That's a good point and i thank you all. On the other hand, i have 2 database connections and it

Re: Super class record not being deleted.

2006-02-04 Thread Armin Waibel
Hi Chris, Christopher Lowe wrote: Hi Armin, Thanks for the quick turn-around on this bug. How do I download the source from svn ojb_1_0_release branch? Do I have to use my browser and click on each file to download everything, I'm sure there is a better way, please advise. Currently the

Migrating to 1.0.4

2006-02-03 Thread Bruno CROS
Following the Armin's advice, i'm currently migrating from 1.0.1 to 1.0.4 I started with the 1.0.4 ojb-blank.jar to replace all files. jar of course, and configuration ones too. I stop with Torque (to generate Oracle 9i database) with an UnkonwnHostException In 1.0.1 i was targeting with this (

Re: Migrating to 1.0.4

2006-02-03 Thread Thomas Dudziak
On 2/3/06, Bruno CROS [EMAIL PROTECTED] wrote: Following the Armin's advice, i'm currently migrating from 1.0.1 to 1.0.4 I started with the 1.0.4 ojb-blank.jar to replace all files. jar of course, and configuration ones too. I stop with Torque (to generate Oracle 9i database) with an

Re: Migrating to 1.0.4

2006-02-03 Thread Thomas Dudziak
On 2/3/06, Bruno CROS [EMAIL PROTECTED] wrote: sorry, can't see the link with the thread you gave me. Why not ? Alternatively, you could use the user mailing list archive link on the OJB site, and check the threads for 30 Jan. The Thread is called Problems upgrading to ojb1.04. There is

Re: Migrating to 1.0.4

2006-02-03 Thread Thomas Dudziak
On 2/3/06, Bruno CROS [EMAIL PROTECTED] wrote: First you will find the ant trace of setup-db task, the torque error is painted in red. Second, you will find my build.properties used by the task. [torque-sql] 2006-02-03 13:21:48,578 [main] INFO

RE: Super class record not being deleted.

2006-02-03 Thread Christopher Lowe
Hi Armin, Thanks for the quick turn-around on this bug. How do I download the source from svn ojb_1_0_release branch? Do I have to use my browser and click on each file to download everything, I'm sure there is a better way, please advise. How soon will the bug OJB-94 be assigned and fixed. It is

Problem in retrieving data

2006-02-03 Thread Vagula
Hi, I'm facing a problem. The problem description is as follows: I insert a record (if the record does not exists for a particular combination) into a table in a (broker) transaction and try to access the same record in a different (broker) transaction.

Re: Migrating to 1.0.4

2006-02-03 Thread Bruno CROS
Bang in the bull 's eye!! the embedded dtd was not 3_0_1 but 3_1. I just change the value and it find the database.dtd file included en torque.jar Then i have to add to my build.properties torque.database.user= and torque.database.password=x and the famous torque.delimiter=/

Re: Migrating to 1.0.4

2006-02-03 Thread Armin Waibel
Bruno CROS wrote: Bang in the bull 's eye!! the embedded dtd was not 3_0_1 but 3_1. I just change the value and it find the database.dtd file included en torque.jar Then i have to add to my build.properties torque.database.user= and torque.database.password=x and the famous

Re: Problem in retrieving data

2006-02-03 Thread Armin Waibel
Hi Vagula, I insert a record (if the record does not exists for a particular combination) into a table in a (broker) transaction and try to access the same record in a different (broker) transaction. Could you give us more details. OJB version? Did the second broker instance try to read the

Re: Migrating to 1.0.4

2006-02-03 Thread Bruno CROS
Thanks. i 'm afraid i need to repatch distributed torque-gen-3.1.1.jar to have TIMESTAMP jdbc type created for java.sql.Date and java.sql.timestamp as i wrote in an old old post. (specific to oracle 9i and older ) Does someone confirm that ? On 2/3/06, Armin Waibel [EMAIL PROTECTED] wrote:

Re: Migrating to 1.0.4

2006-02-03 Thread Thomas Dudziak
On 2/3/06, Bruno CROS [EMAIL PROTECTED] wrote: i 'm afraid i need to repatch distributed torque-gen-3.1.1.jar to have TIMESTAMP jdbc type created for java.sql.Date and java.sql.timestamp as i wrote in an old old post. (specific to oracle 9i and older ) You might want to try DdlUtils

RE: Problem in retrieving data

2006-02-03 Thread Vagula
Hi, After the insert transaction is committed, I try to read the same record. Actually it's like this: In for loop TRANSACTION1 BEGIN I check to see if there is Record for a

Re: Problem in retrieving data

2006-02-03 Thread Armin Waibel
Vagula wrote: Hi, After the insert transaction is committed, I try to read the same record. Actually it's like this: In for loop TRANSACTION1 BEGIN I check to see if there is Record for a particular combination (let's say record for

Re: Migrating to 1.0.4

2006-02-03 Thread Bruno CROS
i already have patch torque3.1.1.jar. thanks for advice. I've done since start with the build.xml of ojb-blank.jar (so torque). I have the right database generated now. That's a good point and i thank you all. On the other hand, i have 2 database connections and it seems they do not work

Re: Migrating to 1.0.4

2006-02-03 Thread Bruno CROS
Note that my OJB_DMAP_ENTRIES has not been created !! On 2/3/06, Bruno CROS [EMAIL PROTECTED] wrote: i already have patch torque3.1.1.jar. thanks for advice. I've done since start with the build.xml of ojb-blank.jar (so torque). I have the right database generated now. That's a good point

1-n Auto-retrieve troubles

2006-02-02 Thread Bruno CROS
Hello, I now have spent a lot of time debugging 2 batch processing. First processing creates a simple 1-n couple of object (consider that class UnityCar refers a class Unity with 1-n relation) . Creation is done like this : - tx.begin() - Unity u = new Unity() - tx.lock(u, Transaction.WRITE); -

RE: Super class record not being deleted.

2006-02-02 Thread Christopher Lowe
Hi All, I ran the junit test suite for the broker api and got the same result. When a base class object is deleted the corresponding record in the database is removed but not the super class object record. I ran only the testDelete() method in the InheritanceMultipleTableTest class. I'm

Re: Super class record not being deleted.

2006-02-02 Thread Armin Waibel
Hi Chris, Christopher Lowe wrote: Hi All, I ran the junit test suite for the broker api and got the same result. When a base class object is deleted the corresponding record in the database is removed but not the super class object record. I ran only the testDelete() method in the

Re: 1-n Auto-retrieve troubles

2006-02-02 Thread Armin Waibel
Hi Bruno, in OJB 1.0.2 we fixed a bug with partially materialized objects under heavy load. Assume that this bug cause your problem. http://db.apache.org/ojb/release-notes.txt I would recommend the migration to OJB 1.0.4. But take care of changes between 1.0.1 and 1.0.4 (e.g. complete

Re: Super class record not being deleted.

2006-02-02 Thread Armin Waibel
Hi Chris, I checked in a fix for OJB-93. If possible please test latest version from SVN OJB_1_0_RELEASE branch. This fix will be included in next upcoming version (OJB 1.0.5). regards, Armin Armin Waibel wrote: Hi Chris, Christopher Lowe wrote: Hi All, I ran the junit test suite

Exception in buildSuperJoinTree() - java.lang.NullPointerException

2006-02-02 Thread Christopher Lowe
Hi All, I have the following relationship. A Supplier has several products (Rooms) and each product has several rates. Room is a Product hence an inheritance relationship between them. The mappings are defined below. I'm trying to perform a simple query to return the suppliers with

Re: Exception in buildSuperJoinTree() - java.lang.NullPointerException

2006-02-02 Thread Armin Waibel
Hi Chris, Christopher Lowe wrote: Hi All, I have the following relationship. A Supplier has several products (Rooms) and each product has several rates. Room is a Product hence an inheritance relationship between them. The mappings are defined below. I'm trying to perform a simple

Re: ArrayIndexOutOfBoundsException at 1:N relationship

2006-02-01 Thread Guido Beutler
Hi, please forget all I wrote :) I had a error at the definition of the pk of A. A second row was defined as primary key too. I think that I ran in this problem during my tests. This maybe why the autoload was working when I started. With the invalid pk definition the test case wouldn't

Re: Problems upgrading to ojb1.04

2006-02-01 Thread Thomas Dudziak
On 2/1/06, Milisic Aleksandar [EMAIL PROTECTED] wrote: Problem solved. For future reference if anybody runs into this problem, the torque.delimiter in build-torque.xml needs to be set to / since the generated SQL uses the / to separate sql statements. Perhaps this should be somewhere in

Problem with signed applet.

2006-02-01 Thread alessandro olivieri
Hi, I'm using ojb 1.0 rc1 in a signed applet. Without warning, this applet is not working when I try to modify repository.xml. The error message is: [BOOT] ERROR: Error in instantiation of PersistenceBrokerFactory class Could not read repository class descriptor data, using repository:

Re: Problem with signed applet.

2006-02-01 Thread Dennis Bekkering
the applet can propbably not find the repository in it's class path. Try to stuff everything in a jar and use that jar instead of a single class. 2006/2/1, alessandro olivieri [EMAIL PROTECTED]: Hi, I'm using ojb 1.0 rc1 in a signed applet. Without warning, this applet is not working when I

Re: Problem with signed applet.

2006-02-01 Thread alessandro olivieri
I have create a jar with my applet and all business function, including or not my repository.xml, i have signed this jar, but the result is always the same: [BOOT] ERROR: It seems that the problem happens only if I change my repository. From: Dennis Bekkering [EMAIL PROTECTED] Reply-To:

RE: solution for subqueries returning values

2006-02-01 Thread Manukyan, Sergey
Hi Jacob, Every relation is defined. But in the report queries I can only specify the columns in String[] {}, I wish I could specify the queries as well and pass it in Object[] {}, just like it is done for Criteria methods. F.e : Query qB = QueryFactory.newReportQuery(B.class); // SELECT

ArrayIndexOutOfBoundsException at 1:N relationship

2006-02-01 Thread gbeutler
Hi, I have a problem with a java.lang.ArrayIndexOutOfBoundsException: 1 I have the following: class A { Integer pkA }; class B { Integer pkA // is PK Integer pkB // is PK too Integer otherField; }; B has 2 primary key fields and A only one. So the first field pkA of Class (and table ) B is

newbie can't get started

2006-01-31 Thread eweek
I'm a newbie trying to get into OJB. I downloaded 1.0.4 src and unzipped it When I run bin\build.bat from command window, it fails with over 100 duplicate class errors, example: duplicate class: org.apache.ojb.broker.Identity I have JAVA_HOME set to a java5 jdk. What is wrong? Can anyone point

Re: newbie can't get started

2006-01-31 Thread Thomas Franke
[EMAIL PROTECTED] wrote: Can anyone point me to a getting started kind of document? Only follow the link: http://db.apache.org/ojb/docu/getting-started.html regards, Thomas - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: newbie can't get started

2006-01-31 Thread Armin Waibel
Hi, [EMAIL PROTECTED] wrote: I'm a newbie trying to get into OJB. I downloaded 1.0.4 src and unzipped it When I run bin\build.bat from command window, it fails with over 100 duplicate class errors, example: duplicate class: org.apache.ojb.broker.Identity I have JAVA_HOME set to a java5 jdk.

Super class record not being deleted.

2006-01-31 Thread Christopher Lowe
Hi All, I have an inheritance relationship between my Product and Car objects. New inserts of car objects work fine. The problem I'm experiencing is that when I remove a car the corresponding product record is not being removed from the product table. The mappings are shown below. I'm

Re: Super class record not being deleted.

2006-01-31 Thread Armin Waibel
Hi Chris, which api do you use? Armin Christopher Lowe wrote: Hi All, I have an inheritance relationship between my Product and Car objects. New inserts of car objects work fine. The problem I'm experiencing is that when I remove a car the corresponding product record is not being

Re: Problems upgrading to ojb1.04

2006-01-31 Thread Milisic Aleksandar
But why would Torque not work? It is contained in the ojb-blank.jar and throughout the ojb documentation and in the examples I can only see Torque in use. Has anybody else had problems using the new version of Torque in ojb1.04, because if there is a solution I would like to continue using

Re: solution for subqueries returning values

2006-01-31 Thread Jakob Braeuchi
hi sergey, this looks like a report query to me. do you have relationships defined between A, B, C, D ? jakob Manukyan, Sergey schrieb: Folks, Could you please advice an OJB solution for this SQL query: SELECT A.F, (SELECT COUNT(*) FROM B INNER JOIN A ON A.F = B.F),

RE: Super class record not being deleted.

2006-01-31 Thread Christopher Lowe
Hi Armin, I'm using the PersistenceBroker API. Chris. -Original Message- From: Armin Waibel [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 4:08 PM To: OJB Users List Subject: Re: Super class record not being deleted. Hi Chris, which api do you use? Armin Christopher Lowe

Re: Problems upgrading to ojb1.04

2006-01-31 Thread Milisic Aleksandar
Problem solved. For future reference if anybody runs into this problem, the torque.delimiter in build-torque.xml needs to be set to / since the generated SQL uses the / to separate sql statements. Perhaps this should be somewhere in documentation, since it's definitely a change compared to the

Re: Problems upgrading to ojb1.04

2006-01-30 Thread Armin Waibel
Hi, did you replace the repository_internal.xml or OJB's internal metadata mapping (at least the mapping for HighLowSequence if you don't use odmg-api)? http://db.apache.org/ojb/docu/guides/platforms.html#OJB+internal+tables But I think the real problem is that you still have an old OJB

Re: Problem with OJB and Oracle9i

2006-01-30 Thread Thomas Dudziak
FWIW, DBCP seems to have some problems with Oracle (at least I had some issues where the poolable connection waited forever for a new connection). You might be better of using the datasource supplied by the Oracle jdbc driver. Tom

solution for subqueries returning values

2006-01-30 Thread Manukyan, Sergey
Folks, Could you please advice an OJB solution for this SQL query: SELECT A.F, (SELECT COUNT(*) FROM B INNER JOIN A ON A.F = B.F), (SELECT AVG(C.FF) FROM C INNER JOIN A ON A.F = C.F), (SELECT MAX(D.FFF) FROM D INNER JOIN A ON A.F = D.F) FROM A The OJB

Re: Problems upgrading to ojb1.04

2006-01-30 Thread Milisic Aleksandar
Thanks, Armin. That was the problem (i.e. old ojb in my classpath). Do you Yahoo!? The New Yahoo! Movies: Check out the Latest Trailers, Premiere Photos and full Actor Database. http://au.movies.yahoo.com

Re: Problems upgrading to ojb1.04

2006-01-30 Thread Milisic Aleksandar
--- Milisic Aleksandar [EMAIL PROTECTED] wrote: Thanks, Armin. That was the problem (i.e. old ojb in my classpath). Unfortunately, I have run into a different problem. I am so bewildered by it that I started another small project in one of the ojb-blank environments for ojb1.04 to test

Re: Problems upgrading to ojb1.04

2006-01-30 Thread Thomas Dudziak
On 1/31/06, Milisic Aleksandar [EMAIL PROTECTED] wrote: Unfortunately, I have run into a different problem. I am so bewildered by it that I started another small project in one of the ojb-blank environments for ojb1.04 to test this out and make sure it has nothing to do with my environment.

Problems upgrading to ojb1.04

2006-01-29 Thread Milisic Aleksandar
Hi, guys! I've recently upgraded to OJB1.04 or should I say *I tried*. I've copied over the new files from src/resources/* and src/schema/* from the ojb_blank for 1.04 to my current project with ojb schemas and resources. The problem I am getting is the following: - whenever I want to insert

Re: Configurable interface for LockManagers

2006-01-28 Thread Armin Waibel
Hi, is fixed in SVN and will be included in upcoming 1.0.5 maintenance release. regards, Armin Armin Waibel wrote: Armin Waibel wrote: A workaround will be to configure once LockManagerRemoteImpl by hand before the first use of odmg-api: LockManager lm =

Re: lazy loading and the ObjectReferenceDescriptor

2006-01-28 Thread Armin Waibel
Hi Phil, DiCorpo, Phillip wrote: I'm debugging an application that uses OJB 1.0.4 and when looking at the ObjectReferenceDescriptor the lazy boolean data member is set to 'false' even though the collection-descriptor this reference refers to has proxy set to 'true'. Does this seem right or

Save Data with Default Database Column

2006-01-27 Thread Robert Einsle
Hy List, We have an Database-Table with an default-Column (now()), and want to save data in it. How can i configure OJB to insert Data in this table to use the Database-Funktion to create the Data of this field? The Table is created like this: --- cut --- CREATE TABLE import_log ( log_tst

Re: Save Data with Default Database Column

2006-01-27 Thread Armin Waibel
Hi Robert, Robert Einsle wrote: Hy List, We have an Database-Table with an default-Column (now()), and want to save data in it. How can i configure OJB to insert Data in this table to use the Database-Funktion to create the Data of this field? The Table is created like this: --- cut ---

Re: big data postgres platform

2006-01-27 Thread Jean-Yves Sironneau
In fact i'am able to persist my data using an array of bytes like that : /** * @ojb.field */ private byte[] primaryContent; But my problem is that when i retrieve a lot of objects having this type of attribute, i get an OutOfMemory error, and the blob , has i understand it allow to have a

Jon French is out of the office.

2006-01-27 Thread Jon_French
I will be out of the office starting 01/27/2006 and will not return until 01/31/2006. I will respond to your message when I return. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

R: [SPAM_KeyWord_] - Re: Problem with OJB and Oracle9i - Found word(s) list error in the Text body

2006-01-26 Thread Fabbri Michele
I'm using Tomcat 5.0.x which use DBCP, I set accessToUnderlyingConnectionAllowed in server.xml but doesn't work: ResourceParams name=people/LegacyDB parameter nameaccessToUnderlyingConnectionAllowed/name valuetrue/value /parameter parameter

OJB locking on tables and views

2006-01-26 Thread Ferrer, Eric
I wanted to know if when OJB generates the sql to get back requested data, how does OJB handle the locking of records?

Re: Tomcat 5, JNDI, Perm Gen Memory leak

2006-01-26 Thread Thomas Dudziak
Hi folks, after some serious profiling (and finding a bug in the Mustang b68 VM), I've added some additional cleanup calls to OJB (SVN of the stable branch). Please give it a try to see whether that suffices. However, you also need to do some work in your own webapp to ensure proper cleanup. The

Re: Removing objects from 1:N relationships in OJB 1.0.4

2006-01-25 Thread Armin Waibel
Hi Phil, DiCorpo, Phillip wrote: I'm having a problem removing objects in a 1:N relationship in OJB 1.0.4 using OMDG. Assume you have an object Role that can have one or more Permission objects. If I lock just the Role object for WRITE, remove a Permission object from this Role, and then

Re: Tomcat 5, JNDI, Perm Gen Memory leak

2006-01-25 Thread Danilo Tommasina
mmmh, yep I forget to say the following: we use the client VM and not the server VM. I am using JDK 1.5.0_04 on a gentoo linux, we also have deployments on Windows XP, Mac OSX, Solaris and Debian linux, with different JDK Versions also of JDK 1.4.2, however all quite up-to-date. No PermGen

Re: Tomcat 5, JNDI, Perm Gen Memory leak

2006-01-25 Thread Rick Roman
I am using Java 1.5.0_01 and Tomcat 5.5.4 on my home machine and 1.5.0_05 / 5.5.9 on my remote developement server. I use jconsole on the home machine to watch the leak. The remote has the problem too as evidenced that it runs out of memory after about 15 reloads. Danilo Tommasina wrote:

big data postgres platform

2006-01-25 Thread Jean-Yves Sironneau
Hello, I have a question regarding the handling of large data with ojb on the Postgres platform. - I think Blobs are not supported on this platform, is that true ? - What is the best way to tell ojb to fetch the data from a field on each access to the field ? - Is that better to manage that

Problem with OJB and Oracle9i

2006-01-25 Thread Fabbri Michele
Hi, I have a poblem using OJB 1.0.3 with Oracle9i, when I try to connect to datasource defined with jndi in tomcat 5, if I define the datasource in repository it works. Ojb returns: Class org.apache.ojb.broker.platforms.PlatformOracle9iImpl can not access a member of class

Re: big data postgres platform

2006-01-25 Thread Thomas Dudziak
On 1/25/06, Jean-Yves Sironneau [EMAIL PROTECTED] wrote: I have a question regarding the handling of large data with ojb on the Postgres platform. - I think Blobs are not supported on this platform, is that true ? - What is the best way to tell ojb to fetch the data from a field on each

Re: Problem with OJB and Oracle9i

2006-01-25 Thread Thomas Dudziak
On 1/25/06, Fabbri Michele [EMAIL PROTECTED] wrote: I have a poblem using OJB 1.0.3 with Oracle9i, when I try to connect to datasource defined with jndi in tomcat 5, if I define the datasource in repository it works. I'm no Oracle expert, so I'm not sure whether it helps, but you could try

Re: Tomcat 5, JNDI, Perm Gen Memory leak

2006-01-24 Thread Danilo Tommasina
Sorry I still did not update to 1.0.4 and was not able to test it out against the memory leak. We are using a patched version of OJB, patched by myself, but as long as I remember it is almost the same code as in the 1.0.4 version. what app- web-server are you using? version? note that in

Re: OJB Startup

2006-01-24 Thread Armin Waibel
Hi, k jee wrote: Is there a preferred way to initialized OJB when starting a web app? Currently, on my system, OJB doesn't really load up until the first DB related call. Was wondering if there were some call I could make to an OJB Factory class or whatever, to initialize OJB, other than

Re: OJB Startup

2006-01-24 Thread Rick Roman
I use a servlet to load some global values. This accesses a couple of tables and has the effect of initializing OJB, although that was not the intention. The servlet is invoked when Tomcat starts up using load-on-startup servlet attribute in web.xml servlet

Re: Tomcat 5, JNDI, Perm Gen Memory leak

2006-01-24 Thread Rick Roman
I am using Tomcat 5.5.4. I am almost certain it is OJB. I created a stripped down context with the minimum classes needed to run OJB and could pin the memory increase to touching anything that initiallized OJB. I have also chased down other known offenders such as deregistering the database

Re: Tomcat 5, JNDI, Perm Gen Memory leak

2006-01-24 Thread Thomas Dudziak
On 1/24/06, Rick Roman [EMAIL PROTECTED] wrote: I am using Tomcat 5.5.4. I am almost certain it is OJB. I created a stripped down context with the minimum classes needed to run OJB and could pin the memory increase to touching anything that initiallized OJB. I have also chased down other known

Re: Tomcat 5, JNDI, Perm Gen Memory leak

2006-01-24 Thread Danilo Tommasina
hi again, this is quite an old version of tomcat, we were not having trouble for sure since tomcat 5.5.9, no idea how it was with earlier versions. anyways, if this is not the problem, it could be still OJB that causes the leak. My patch fixed one situation but there may be other parts having

Re: Tomcat 5, JNDI, Perm Gen Memory leak

2006-01-24 Thread Rick Roman
I am only using the PB API too. Danilo Tommasina wrote: hi again, this is quite an old version of tomcat, we were not having trouble for sure since tomcat 5.5.9, no idea how it was with earlier versions. anyways, if this is not the problem, it could be still OJB that causes the leak. My

Re: Tomcat 5, JNDI, Perm Gen Memory leak

2006-01-24 Thread Craig A. Vanderborgh
Hello: Sun JDK has some quite terrible memory leaks that are known problems.Here are the pertinent Sun bug entries: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5033614 (fixed, but in 1.5, not 1.4!) http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4957990 (unfixed) Basically,

Removing objects from 1:N relationships in OJB 1.0.4

2006-01-24 Thread DiCorpo, Phillip
I'm having a problem removing objects in a 1:N relationship in OJB 1.0.4 using OMDG. Assume you have an object Role that can have one or more Permission objects. If I lock just the Role object for WRITE, remove a Permission object from this Role, and then commit the transaction I'll get the

Re: OJB Startup

2006-01-24 Thread k jee
Thank you Rick, and Armin. That is really help full. Thanks, Rick Roman [EMAIL PROTECTED] wrote: I use a servlet to load some global values. This accesses a couple of tables and has the effect of initializing OJB, although that was not the intention. The servlet is invoked when

RE: exception in JDBC driver

2006-01-23 Thread Manukyan, Sergey
Thank you Armin, Can I get a nightly build of 1.0.5 somehow? Sergey -Original Message- From: Armin Waibel [mailto:[EMAIL PROTECTED] Sent: Saturday, January 21, 2006 12:31 PM To: OJB Users List Subject: Re: exception in JDBC driver Armin Waibel wrote: Hi Sergey, Manukyan, Sergey

Re: SQL functions with multiple parameters OJB 1.0.x

2006-01-23 Thread Carlos Chávez
Harri Kaimio wrote: Hi, I am having problems with OJB query criterias that include SQL functions with several parameters. Here is an actual example that does not work: crit.addGreaterOrEqualThan( subdate(+dateField.getName() + , + accuracyField.getName() + ),

Re: exception in JDBC driver

2006-01-23 Thread Armin Waibel
Hi Sergey, Manukyan, Sergey wrote: Thank you Armin, Can I get a nightly build of 1.0.5 somehow? Currently the easiest way is to check out latest version from SVN OJB_1_0_RELEASE branch (we don't have a nightly build). http://svn.apache.org/repos/asf/db/ojb/branches/OJB_1_0_RELEASE/

Re: Tomcat 5, JNDI, Perm Gen Memory leak

2006-01-23 Thread Rick Roman
I upgraded to the new db-ojb-1.0.4 which has the method PersistenceBrokerFactoryFactory.instance().shutdown(); This results in exception: [ERROR] mffweb] - Exception sending context destroyed event to listener instance of class org.mff.web.listener.CleanupListener

Re: Tomcat 5, JNDI, Perm Gen Memory leak

2006-01-23 Thread Armin Waibel
Hi Rick, Rick Roman wrote: I upgraded to the new db-ojb-1.0.4 which has the method PersistenceBrokerFactoryFactory.instance().shutdown(); This results in exception: [ERROR] mffweb] - Exception sending context destroyed event to listener instance of class

Re: Tomcat 5, JNDI, Perm Gen Memory leak

2006-01-23 Thread Rick Roman
Hi Armin. I don't have all the jars from the distribution lib directory but I have all those with ojb in the name plus all the common- Should I have them all? I tried calling PersistenceBrokerFactory.shutdown() instead and got a similar error. Exception sending context destroyed event to

Re: Tomcat 5, JNDI, Perm Gen Memory leak

2006-01-23 Thread Armin Waibel
Rick Roman wrote: Hi Armin. I don't have all the jars from the distribution lib directory but I have all those with ojb in the name plus all the common- Should I have them all? I tried calling PersistenceBrokerFactory.shutdown() instead and got a similar error. Exception sending context

Re: Tomcat 5, JNDI, Perm Gen Memory leak

2006-01-23 Thread Antonio Gallardo
hi, Seems like an class loader issue. Can you check if there are not older ojb.jar in your classpath loaded before the ojb 1.0.4? Best Regards, Antonio Gallardo. Rick Roman wrote: I upgraded to the new db-ojb-1.0.4 which has the method

Error creating PersistentField v1.0.4

2006-01-23 Thread Rick Roman
In switching to 1.0.4 an error parsing repository.xml has popped up. At first I thought this was a problem with repository_internal but it turns out that I get this error on the first class-descriptor encountered, no matter what it is. If I switch back to 1.0.3, I don't see this problem. Any

Re: Error creating PersistentField v1.0.4

2006-01-23 Thread Carlos Chávez
Rick Roman wrote: In switching to 1.0.4 an error parsing repository.xml has popped up. At first I thought this was a problem with repository_internal but it turns out that I get this error on the first class-descriptor encountered, no matter what it is. If I switch back to 1.0.3, I don't see

OJB Startup

2006-01-23 Thread k jee
Is there a preferred way to initialized OJB when starting a web app? Currently, on my system, OJB doesn't really load up until the first DB related call. Was wondering if there were some call I could make to an OJB Factory class or whatever, to initialize OJB, other than making a call that

Re: Error creating PersistentField v1.0.4

2006-01-23 Thread Rick Roman
Thanks, that did the trick. I didn't read anything about updating the repository.dtd or OJB.properties in the release announcement. Is there some other place I should be looking for upgrade guidance? Carlos Chávez wrote: Rick Roman wrote: In switching to 1.0.4 an error parsing

Re: Tomcat 5, JNDI, Perm Gen Memory leak

2006-01-23 Thread Rick Roman
OK I'm really on version 1.0.4 now and all of these methods run without error. Unfortunately, none of them have any effect on the memory leak. PersistenceBroker broker = PersistenceBrokerFactory.defaultPersistenceBroker(); broker.clearCache(); broker.close();

Re: Error creating PersistentField v1.0.4

2006-01-23 Thread Carlos Chávez
Rick Roman wrote: Thanks, that did the trick. I didn't read anything about updating the repository.dtd or OJB.properties in the release announcement. Is there some other place I should be looking for upgrade guidance? Hi Rick, well, I only read the release-notes.txt. Cheers,

SQL functions with multiple parameters OJB 1.0.x

2006-01-22 Thread Harri Kaimio
Hi, I am having problems with OJB query criterias that include SQL functions with several parameters. Here is an actual example that does not work: crit.addGreaterOrEqualThan( subdate(+dateField.getName() + , + accuracyField.getName() + ), date );

Re: exception in JDBC driver

2006-01-21 Thread Armin Waibel
Armin Waibel wrote: Hi Sergey, Manukyan, Sergey wrote: Hi Everybody, We upgraded to 1.0.4 and using JT400-4.4 JDBC driver for AS400 data source. See now our JDBC driver throwing exceptions when OJB askes him for field named OJB_CLAZZ, that the result set doesn't have, and it happens for

Re: OJB_HL_SEQ

2006-01-21 Thread Dennis Bekkering
I had the same problem and fixed it by removing field-descriptor name=name column=FIELDNAME jdbc-type=VARCHAR primarykey=true / from class-descriptor class=org.apache.ojb.broker.util.sequence.HighLowSequence table=ojb_hl_seq in

store object without references

2006-01-20 Thread Manukyan, Sergey
Folks, I am using 1.0.4. Could you please advice if there is a way to store an object of some class without storing references although I defined in the descriptor of the class to store references as well. I am looking for a workaround that will enable me to do it in some cases... Something

Re: store object without references

2006-01-20 Thread Armin Waibel
Hi Sergey, Manukyan, Sergey wrote: Folks, I am using 1.0.4. Could you please advice if there is a way to store an object of some class without storing references although I defined in the descriptor of the class to store references as well. I am looking for a workaround that will enable me

exception in JDBC driver

2006-01-20 Thread Manukyan, Sergey
Hi Everybody, We upgraded to 1.0.4 and using JT400-4.4 JDBC driver for AS400 data source. See now our JDBC driver throwing exceptions when OJB askes him for field named OJB_CLAZZ, that the result set doesn't have, and it happens for every row. Is it possible to avoid OJB to check for this field

RE: store object without references

2006-01-20 Thread Manukyan, Sergey
Thank you Armin. -Original Message- From: Armin Waibel [mailto:[EMAIL PROTECTED] Sent: Friday, January 20, 2006 12:58 PM To: OJB Users List Subject: Re: store object without references Hi Sergey, Manukyan, Sergey wrote: Folks, I am using 1.0.4. Could you please advice if

Re: Bidirectional 1:1 relations

2006-01-20 Thread Gonçalo Luiz
Armin thank you for your reply, I came to a solution proposed to another OJB mailing poster (Luis Cruz) that works with me and suggested that I could invoke the getUniqueValue() in the DomainObject super class... its ugly but it works fine... and it happens to be a controlled ugliness. I was now

Re: Bidirectional 1:1 relations

2006-01-20 Thread Gonçalo Luiz
Hello again, Kindly forget my last e-mail I was looking to a old page of OJB that was cached somewere... I think that the http://db.apache.org/ojb/docu/guides/advanced-technique.html#nested-objects page wil serve my needs... if it doesn't I will let you know. Regards, Gonçalo Luiz On 1/20/06,

<    9   10   11   12   13   14   15   16   17   18   >