Re: JAVA_OBJECT and type mapping via OJB

2006-06-17 Thread Armin Waibel
Hi again, I checked in a first version of JAVA_OBJECT type support. I test it against hsql, mysql and maxDB. It could be the case that OJB need additional tweak to support other databases. If possible for you, please check out latest from SVN (OJB_1_0_RELEASE branch!). regards, Armin

RE: Bug : duplicate objects in resultset

2006-06-16 Thread Janssen, Roger
Hi, Thanx for the confirmation. Is it necessary to add the orderby column to the returned columns in the resultset, when the orderby column is a column of a joined table? This is what causes this behaviour. I personnaly do not think so, since for instantiating the objects, it is not required to

QueryByCriteria caching problem

2006-06-16 Thread filip filipov
I'm using my custom SQL paging. i have two new properties limit, offset in AbstractQueryImpl which i use in SqlQueryStatement class. the SQL paging is working, but there is a problem if i reuse the same QueryByCriteria object with different values for LIMIT, OFFSET is there a way to turn off

Re: Bug : duplicate objects in resultset

2006-06-16 Thread Jakob Braeuchi
hi roger, the following works for me. i use a set instead of a collection: public void testOrderByJoined2() { Criteria crit = new Criteria(); QueryByCriteria q = QueryFactory.newQuery(Project.class, crit, true); q.addOrderByAscending(persons.lastname);

Bug : duplicate objects in resultset

2006-06-15 Thread Janssen, Roger
Hi guys, I have come across a bug. I included a method to be added to org.apache.ojb.broker.QueryTest class in the OJB testsuite that reproduces that bug, for version 1.0.4! The test: Create a project, create two persons, the two persons are a member of the project, select all projects ordered

Re: Bug in OJB 1.0.3 (MS SQL violation constraint on cascaded table)

2006-06-15 Thread Edson Carlos Ericksson Richter
No news if this is confirmed against 1.0.4? Richter Edson Carlos Ericksson Richter escreveu: Hi! I discovered an interesting (bug?) behaviour in OJB 1.0.3. I am using auto-commit false for every connection. When I store an object that has an list with cascade all, but one object in the list

Re: Bug in OJB 1.0.3 (MS SQL violation constraint on cascaded table)

2006-06-15 Thread Armin Waibel
Hi Richter, Edson Carlos Ericksson Richter wrote: Hi! I discovered an interesting (bug?) behaviour in OJB 1.0.3. I am using auto-commit false for every connection. When I store an object that has an list with cascade all, but one object in the list fail to store, then I got Primary Key

Re: JAVA_OBJECT and type mapping via OJB

2006-06-15 Thread Armin Waibel
Hi Maxim, Maxim Kuleshov wrote: Hello! I've tried to use type-mapping feature of JDBC in apache OJB but failed. Broker reports the following error: ... Caused by: org.apache.ojb.broker.OJBRuntimeException: The type JAVA_OBJECT can not be handled by OJB. Please specify only types as defined

Re: Bug : duplicate objects in resultset

2006-06-15 Thread Jakob Braeuchi
hi roger, i can confirm this problem. this simple testcase shows the duplicates: /** * test OrderBy joined column */ public void testOrderByJoined2() { Criteria crit = new Criteria(); QueryByCriteria q = QueryFactory.newQuery(Project.class, crit);

JAVA_OBJECT and type mapping via OJB

2006-06-14 Thread Maxim Kuleshov
Hello! I've tried to use type-mapping feature of JDBC in apache OJB but failed. Broker reports the following error: ... Caused by: org.apache.ojb.broker.OJBRuntimeException: The type JAVA_OBJECT can not be handled by OJB. Please specify only types as defined by java.sql.Types. ... Are any

Using proxy and requirements for java-files

2006-06-14 Thread Joose Vettenranta
Hi, I want to use generic proxy for lazy loading 1:n connections. Say I have class Foo Do I need to have also Interface for class Foo to make proxy to work? Say like Interface IntFoo or does the generic proxy thingie work without that custom Interface? Thanks, Joose -- Always remember

Re: Using proxy and requirements for java-files

2006-06-14 Thread Thomas Dudziak
On 6/14/06, Joose Vettenranta [EMAIL PROTECTED] wrote: I want to use generic proxy for lazy loading 1:n connections. Say I have class Foo Do I need to have also Interface for class Foo to make proxy to work? Say like Interface IntFoo or does the generic proxy thingie work without that

Tutorial problem...

2006-06-11 Thread Younwook Jang
hello, folks. I have a problem during follow getting started document. The error message is like below.. append-shutdown-sql: [echo] [echo] Executing the create-db.sql script ... [echo] [sql] Executing file: /Users/younwook/ws/ojb/productmanager/

Jill Seaman is out of the office.

2006-06-11 Thread Jill Seaman
I will be out of the office starting 06/09/2006 and will not return until 06/12/2006. I will respond to your message when I return.

CRITERIA_SELECT_ALL is null

2006-06-11 Thread Abid Hussain
Hi everybody, I have a problem which I really can't figure out. Please look at following code: ... crit = QueryByCriteria.CRITERIA_SELECT_ALL; logger.debug(#2 Criteria is ( + crit + ).); ... Now look the output of log4j: DEBUG: [modulverwaltung.persistence.ModuleDAO] #2 Criteria is (null).

Re: CRITERIA_SELECT_ALL is null

2006-06-11 Thread Abid Hussain
Sorry, my fault. Seems to be that it value of CRITERIA_SELECT_ALL should be null. Best regards, Abid Abid Hussain schrieb: Hi everybody, I have a problem which I really can't figure out. Please look at following code: ... crit = QueryByCriteria.CRITERIA_SELECT_ALL; logger.debug(#2 Criteria

Re: Tutorial problem...

2006-06-11 Thread Thomas Dudziak
On 6/11/06, Younwook Jang [EMAIL PROTECTED] wrote: Would you please provide advice about it..? I tried to search this mailing list, but I couldn't find the solution... Any information or comment also highly appreciated. This error usually happens because either the database is not correctly

Re: OJB problem: reference-descriptor name=super

2006-06-08 Thread Ciprian Herman
Hi again! I just want to use OJB on this database structure and just seem to crash. It is canned of urgent for me. Maybe I just not approach wheel the problem, but if somebody have some suggestion or a solution to apply OJB over described tables please notify me. My approach works except that I

OJB problem: reference-descriptor name=super

2006-06-06 Thread Ciprian Herman
Hi all! I'm trying to work with OJB for a project and I think I discovered a bug. Or I misunderstand something. I have 3 MySQL tables A, B, C with the following SQL descriptor: CREATE TABLE `a` ( `idA` int(10) unsigned NOT NULL auto_increment, PRIMARY KEY (`idA`) ) ENGINE=InnoDB DEFAULT

Bug in OJB 1.0.3 (MS SQL violation constraint on cascaded table)

2006-06-02 Thread Edson Carlos Ericksson Richter
Hi! I discovered an interesting (bug?) behaviour in OJB 1.0.3. I am using auto-commit false for every connection. When I store an object that has an list with cascade all, but one object in the list fail to store, then I got Primary Key violation - attempt to insert duplicate key on

[Fwd: Returned mail: see transcript for details]

2006-06-02 Thread Edson Carlos Ericksson Richter
Could list admin kick off this guy? His mail doesn't exists anymore, and every time I send mails to the list I get auto-response saying domain changed... Richter Mensagem original Assunto:Returned mail: see transcript for details Data: Fri, 2 Jun 2006 14:45:40

Re: Using two mapping file in the same project ?

2006-05-31 Thread ABOU LINA
Hi, i need to use InputStream so i tested a lot but i got the same error repository.dtd not found. so i delete the DOCTYPE from the secondary repository file it work without problem. In your opinion is that a good things or this solution will have any impact on my application . ??? thx On

Re: Using two mapping file in the same project ?

2006-05-31 Thread ABOU LINA
It have a big impact !!! ; beacause in DTD they are lot of initialisation (default value) so here i tried all solutions :( if you can send me a example that work , i will be greatfull thx On 5/31/06, ABOU LINA [EMAIL PROTECTED] wrote: Hi, i need to use InputStream so i tested a lot but

Re: Using two mapping file in the same project ?

2006-05-31 Thread Armin Waibel
Hi, ABOU LINA wrote: It have a big impact !!! ; beacause in DTD they are lot of initialisation (default value) so here i tried all solutions :( if you can send me a example that work , i will be greatfull I just checked in a test MetadataTest#testReadRepository() which use a

Re: retrieving fields and collections by ReportQuery

2006-05-28 Thread Jakob Braeuchi
hi adid, as carlos said, reportQueries are used to retrieve 'rows' not objects. extending queryByCriteria to load only some attributes (fetch-groups in jdo) is imo rather complicated. hibernate for example supports such lazy attributes only by compiletime bytecode enhancement. jakob Abid

Re: retrieving fields and collections by ReportQuery

2006-05-25 Thread Jakob Braeuchi
hi abid, what about using distinct ? jakob Abid Hussain schrieb: Hallo again, thanks for the quick answer. When I add disciplines.moduleName and disciplines.disciplineName as attributes for the ReportQuery it somehow works: ReportQueryByCriteria q =

Re: Using two mapping file in the same project ?

2006-05-25 Thread ABOU LINA
i tested the two way but i got the same problem : dtd not found . InputStream input = this.getClass ().getClassLoader().getResourceAsStream(descriptor2); MetadataManager mm = MetadataManager.getInstance(); mm.setEnablePerThreadChanges(true);

Re: Using two mapping file in the same project ?

2006-05-25 Thread Armin Waibel
ABOU LINA wrote: i tested the two way but i got the same problem : dtd not found . InputStream input = this.getClass ().getClassLoader().getResourceAsStream(descriptor2); MetadataManager mm = MetadataManager.getInstance(); mm.setEnablePerThreadChanges(true);

Re: retrieving fields and collections by ReportQuery

2006-05-25 Thread Abid Hussain
Hi again, first of all thanks for help. Using distinct would lead to following SQL: SELECT DISTINCT A0.modul_Name,A0.Zuordnung,A0.Haeufigkeit,A1.MODUL_NAME,A1.BEREICH_NAME FROM MODUL A0 INNER JOIN MODUL_BEREICH A1 ON A0.modul_Name=A1.MODUL_NAME ORDER BY 1 I think this wouldn't solve the

Using two mapping file in the same project ?

2006-05-24 Thread ABOU LINA
Hi; i have two mapping file : repository1.xml and repository2.xml. the difference between these two file are the value of auto-* [auto-retrieve, auto-update ..] ; at runtime sometimes i need to use repository1.xml and somtimes the repository2.xml . what is the best and optimal solution about

Re: Using two mapping file in the same project ?

2006-05-24 Thread Armin Waibel
Hi, ABOU LINA wrote: Hi; i have two mapping file : repository1.xml and repository2.xml. the difference between these two file are the value of auto-* [auto-retrieve, auto-update ..] ; at runtime sometimes i need to use repository1.xml and somtimes the repository2.xml . what is the best and

Re: Using two mapping file in the same project ?

2006-05-24 Thread ABOU LINA
thx for your reply . looking the example : // get MetadataManager instance MetadataManager mm = MetadataManager.getInstance(); // enable per thread mode if not done before mm.setEnablePerThreadChanges(true); // Load additional object metadata by parsing an repository file DescriptorRepository

Re: Using two mapping file in the same project ?

2006-05-24 Thread ABOU LINA
That's very good idea using threadLocal :) , thx very much about these informations :). On 5/24/06, Armin Waibel [EMAIL PROTECTED] wrote: ABOU LINA wrote: thx for your reply . looking the example : // get MetadataManager instance (1) MetadataManager mm = MetadataManager.getInstance();

Re: Using two mapping file in the same project ?

2006-05-24 Thread Armin Waibel
ABOU LINA wrote: That's very good idea using threadLocal :) , thx very much about these informations :). My pleasure! All code for metadata profiles (by using ThreadLocale) is handled by class MetadataManager. If you have problems using metadata profiles look at this class.

Re: Using two mapping file in the same project ?

2006-05-24 Thread ABOU LINA
I have a problem to load the new profile : 1. i put the mapping2.xml in the classpath of the project 2. i use the mm.readDescriptorRepository(InputStream map) insteadof (String map) i get : java.io.FileNoteFound : c:\eclipse\repository.dtd ... ! if i used InputStream is beacause i want to

Re: Using two mapping file in the same project ?

2006-05-24 Thread Armin Waibel
ABOU LINA wrote: I have a problem to load the new profile : 1. i put the mapping2.xml in the classpath of the project 2. i use the mm.readDescriptorRepository(InputStream map) insteadof (String map) i get : java.io.FileNoteFound : c:\eclipse\repository.dtd ... ! if i used InputStream is

Re: Using two mapping file in the same project ?

2006-05-24 Thread ABOU LINA
is in the same place : project-name/appli-conf / mappin2.xml , repository.dtd and the project-name/appli-conf is in the classpath. the mappin2.xml is retrieved with success but the dtd is not found and ojb try to found it from c:\eclipse\ the base directory. !!! On 5/24/06, Armin Waibel

retrieving fields and collections by ReportQuery

2006-05-24 Thread Abid Hussain
Hallo everybody, for the following problem I didn't find a proper solution: I'm using the ReportQuery to retrieve data, because the table has about 25 columns and i only need a few. The problem is, in the ReportQuery I can only specifiy the fields which I want to retrieve, but no collections.

Re: retrieving fields and collections by ReportQuery

2006-05-24 Thread Abid Hussain
Hallo again, thanks for the quick answer. When I add disciplines.moduleName and disciplines.disciplineName as attributes for the ReportQuery it somehow works: ReportQueryByCriteria q = QueryFactory.newReportQuery(Module.class, crit);

Re: retrieving fields and collections by ReportQuery

2006-05-24 Thread Carlos Chávez
Abid Hussain escribió: Hallo again, thanks for the quick answer. When I add disciplines.moduleName and disciplines.disciplineName as attributes for the ReportQuery it somehow works: ReportQueryByCriteria q = QueryFactory.newReportQuery(Module.class, crit);

maybe bug in Criteria.addNotEqualToColumn()

2006-05-20 Thread Abid Hussain
Hi everybody, while executing a query there turned up an SQLException. I wonder if this is a bug or if I made a mistake. Here is the concerning section of my repository_user.xml: class-descriptor class=modulverwaltung.beans.ojb.Module table=MODUL field-descriptor name=name

Re: maybe bug in Criteria.addNotEqualToColumn()

2006-05-20 Thread Abid Hussain
Hi, I think it was my fault. when i replace the Line -- crit.addNotEqualToColumn(name, excludeModules[i]); to -- crit.addNotEqualTo(name, excludeModules[i]); everthing works. Sorry for making trouble. Best regards, Abid Abid Hussain schrieb: Hi everybody, while executing a query there

RE: AW: WG: OJB do delete and insert instead of update

2006-05-19 Thread Arnaud Maes
STOP THE SPAMMING PLEASE. EVEREY DAY, I HAVE 4 - 8 EMAILING FROM YOUR ADRESS !! I'M FED UP. thank, @sportmalin.com -Message d'origine- De : Armin Waibel [mailto:[EMAIL PROTECTED] Envoyé : vendredi 19 mai 2006 03:18 À : OJB Users List Objet : Re: AW: WG: OJB do delete and insert

RE: AW: WG: OJB do delete and insert instead of update

2006-05-19 Thread Guillaume DROUIN
Il suffit de se désinscrire de la mailing-list !! Envoi un message ici : [EMAIL PROTECTED] -Message d'origine- De : Arnaud Maes [mailto:[EMAIL PROTECTED] Envoyé : vendredi 19 mai 2006 10:30 À : OJB Users List Objet : RE: AW: WG: OJB do delete and insert instead of update STOP THE

Re: Clustering for OJB

2006-05-18 Thread Vamsi Atluri
Hi Charles, Thanks for the response. In our situation, the users do use the same database. Does doing a broker.clearCache() before every broker operation overcome the stale data issue? Also, we are running into some very strange errors on our non-clustered test environment which we are

Re: Clustering for OJB

2006-05-18 Thread Vamsi Atluri
Hello all, I just ran into an error just now like I mentioned below. Here's the trace from my logs: [5/18/06 10:25:24:171 EDT] 26650656 SystemOut O saving the work package [5/18/06 10:25:24:172 EDT] 26650656 SystemOut O beginning transaction [5/18/06 10:25:24:173 EDT] 26650656

Re: Clustering for OJB

2006-05-18 Thread Thomas Franke
Vamsi Atluri wrote: Thanks for the response. In our situation, the users do use the same database. Does doing a broker.clearCache() before every broker operation overcome the stale data issue? We don't use any cache to make sure that the user is working with the current data records. But yo

Re: problems width performance

2006-05-18 Thread Armin Waibel
Hi Josef, I have no idee, why my application takes 20 ms per object to store :o( OJB is shipped with a simple multi-threaded test similar to your test. Your can run this test out of the box against hsql, see

Re: AW: WG: OJB do delete and insert instead of update

2006-05-18 Thread Armin Waibel
Hi Josef, will try to setup a similar test case tomorrow - stay tuned ;-) regards, Armin Josef Wagner wrote: Hy Armin, here is my # # repository_rollen.xml # # class-descriptor class=de.on_ergy.lakon.data.model.Rollen table=rollen

AW: WG: OJB do delete and insert instead of update

2006-05-17 Thread Josef Wagner
Hy Armin, here is my # # repository_rollen.xml # # class-descriptor class=de.on_ergy.lakon.data.model.Rollen table=rollen field-descriptor name=objId column=obj_id jdbc-type=INTEGER

Re: Error in beginTransaction!

2006-05-17 Thread Danilo Tommasina
Hi, try to set also the following: jdbc-level=3.0 driver=com.mysql.jdbc.Driver and use the newest mysql JDBC driver cheers, danilo Armin Waibel wrote: Hi Marcel, Marcel Souza wrote: Hello folks, I am stucked in a problem using OJB. I am trying to use MySQL and OJB but it always happens

Re: updating the primary key of a table row

2006-05-17 Thread Abid Hussain
Hi Armin, For this special case you have to delete the old value/obj and then insert the new vale/obj. regards, Armin thanks a lot. I thought of this possibility, but wondered if there is another way to perform the update. Regards, Abid -- Abid Hussain Mail: [EMAIL PROTECTED] Web:

Re: generate global uid's

2006-05-17 Thread Dennis Bekkering
Sorry, nope! At the beginning of OJB some people plan to support beside RDBMS and other persistence datastores, but it was too complex to realize with a few OJB committer. Thanks for clearing out, where exactly lies the complexity, the quering i solved my own project. I have the biggest

RE: Error in beginTransaction!

2006-05-17 Thread Eric Kelm
I have used the Liferay Portal before. Here is a thought. I thought about trying this myself but never got around to it. Liferay portal creates a datasource is liferay.xml. In Tomcat this is /%LIFERAY_HOME/conf/Catalina/localhost/liferay.xml Why not have OJB use existing datasource for

Clustering for OJB

2006-05-17 Thread Vamsi Atluri
Hi all, I am getting some errors when I move from a non-clustered environment in our testbed to a clustered environment in QA. I have read the document about setting up OJBs in a clustered environment, however, in our cluster, there is no session sharing between various nodes in the cluster.

problems width performance

2006-05-17 Thread Josef Wagner
Hello Armin, you have written in the mailing list, that it takes around 20 sec. to store 1 objects (is 0,5 obj in 1 ms.). (http://mail-archives.apache.org/mod_mbox/db-ojb-user/200408.mbox/%3C411780E [EMAIL PROTECTED]) In my testszenario, when I logging width timestamp before calling store

WG: OJB do delete and insert instead of update

2006-05-16 Thread Josef Wagner
Hi, here an example of my DELETE and INSERT problem (OJB 1.0.3): ## # repository.xml # ## class-descriptor class=de.on_ergy.lakon.data.model.Gruppen table=gruppen field-descriptor name=objId column=obj_id jdbc-type=INTEGER

Error in beginTransaction

2006-05-16 Thread Marcel Souza
Hello folks, I am stucked in a problem using OJB. I am trying to use MySQL and OJB but it always happens an error during broker.beginTransaction() that says Can't lookup a connection. Anyone has a sugestion to solve it??? Thanks in advance, Marcel. 15:33:01,390 INFO [ObjectCacheFactory]

Re: Error in beginTransaction!

2006-05-16 Thread Edson Carlos Ericksson Richter
I don't know if this affects you, but I have serious trouble with maxIdle 2... So I always set it to 2 or greather... Since you configured to use TestOnBorrow, check query you are using to make this test. I use something like select 1 from DUAL in Oracle databases, and select 1 in MS SQL. I

Strange OJB error

2006-05-16 Thread Vamsi Atluri
Hello all, We have an application that does broker.store() on about 20 tables in one go in a single transaction using a single broker instance. We are using OJB 1.0.1 on WSAD 5.1 using JDK 1.3.1. On and off I see this error happen: org.apache.ojb.broker.core.proxy.ListProxyDefaultImpl not

Re: Error in beginTransaction!

2006-05-16 Thread Marcel Souza
I tried your suggestions but unfortunatelly it did not work. :( Thanks even though. intl lang='pt_BR' Carlos, Estou usando OJB em conjunto com portlets. Tudo tava funcionando bem em meus testes com o pluto + OJB + mysql. Ai quando coloquei no portal definitivo liferay + OJB + mysql não funcionou

Re: updating the primary key of a table row

2006-05-16 Thread Armin Waibel
Hi Abid, Abid Hussain wrote: Hi everybody, i wonder how to perform an update on a table where i changed the primary key. You can't change a PK value in OJB and at least OJB needs one PK field. Let's say i've got a table, where the only unique column is the primary key itself - like

Re: generate global uid's

2006-05-16 Thread Armin Waibel
Hi Denins, Dennis Bekkering wrote: Hi, I found out that the select IN problem had to do with different charsets on the column level, since my id's where varchars this problem occured suddenly , i checked all column charset but couldn't find a difference between them. The deeper i get into

Re: WG: OJB do delete and insert instead of update

2006-05-16 Thread Armin Waibel
Hi Josef, could you post the mapping for 'Rollen' too and a code snippet how you are store 'Gruppen'. Then I can try to reproduce your problem. regards, Armin Josef Wagner wrote: Hi, here an example of my DELETE and INSERT problem (OJB 1.0.3): ## # repository.xml #

Re: Utility for Forward engineering from repository.xml

2006-05-16 Thread Armin Waibel
Hi Tom, Tom Antony wrote: Armin, I have created issue OJB-112 and attached the sources to this issue. I have changed the sql output to Torque format. Many thanks for your contribution. I will try out this stuff ASAP (after preparation for OJB 1.0.5). Maybe it's possible to integrate it in

Re: Strange OJB error

2006-05-16 Thread Armin Waibel
Hi Vamsi, Vamsi Atluri wrote: Hello all, We have an application that does broker.store() on about 20 tables in one go in a single transaction using a single broker instance. We are using OJB 1.0.1 on WSAD 5.1 using JDK 1.3.1. On and off I see this error happen:

Re: generate global uid's

2006-05-15 Thread Dennis Bekkering
Hi, I found out that the select IN problem had to do with different charsets on the column level, since my id's where varchars this problem occured suddenly , i checked all column charset but couldn't find a difference between them. The deeper i get into mysql the more i find out why not

Error in beginTransaction!

2006-05-15 Thread Marcel Souza
Hello folks, I am stucked in a problem using OJB. I am trying to use MySQL and OJB but it always happens an error during broker.beginTransaction() that says Can't lookup a connection. Anyone has a sugestion to solve it??? Thanks in advance, Marcel. 15:33:01,390 INFO [ObjectCacheFactory]

Re: Utility for Forward engineering from repository.xml

2006-05-15 Thread Tom Antony
Armin, I have created issue OJB-112 and attached the sources to this issue. I have changed the sql output to Torque format. Regards, Tom. --- Armin Waibel [EMAIL PROTECTED] wrote: Hi Tom, thanks for OJB tool support. Tom Antony wrote: Hi All, Recently I started working on a

Re: generate global uid's

2006-05-13 Thread Dennis Bekkering
All, I converted all my int id's and refs to varchar id's and ref's, i offcourse updated the repository file also. Now it seems that OJB expects id's to be of type int in 1:N and M:N relations. I get errors regarding select where id IN (?,?,?,?,?). I did not really looked in the source yet at

updating the primary key of a table row

2006-05-12 Thread Abid Hussain
Hi everybody, i wonder how to perform an update on a table where i changed the primary key. Let's say i've got a table, where the only unique column is the primary key itself - like this: CREATE TABLE foo ( foo_name VARCHAR PRIMARY KEY ); Now I change the column foo_name of a row

Intermitter error ...

2006-05-11 Thread Vamsi Atluri
Hello all, I am getting this error when I am doing a broker.getCollectionByQuery() very intermittently. The same piece of code works some times and fails some times with this error: [5/11/06 10:02:15:498 EDT] 24df24df SystemErr R java.lang.NullPointerException [5/11/06 10:02:15:498 EDT]

Re: Intermitter error ...

2006-05-11 Thread Armin Waibel
Hi Vamsi, could post more details of the used OJB version and how you are using OJB? Could it be a concurrency issue, is it guaranteed that each thread use it's own PB instance? regards, Armin Vamsi Atluri wrote: Hello all, I am getting this error when I am doing a

Re: Only one PB from second database

2006-05-11 Thread Bruno CROS
Hi Armin, autoCommit set to 1 does not avoid freeze. The fact is that database is only used to be read, so rollbacks ( by disconnecting) will never be long. autocommit is however set to 1 now. Thanks for the advice. I dont' known why it freezes when maxIdle set to -1 and why it does not when

Re: Intermitter error ...

2006-05-11 Thread Vamsi Atluri
Hi Armin, I am using OJB1.0.1 on WSAD 5.1 using JDK1.3.1. I have a simple table of the form: TABLE: BOOK_VERSION_DEF BOOK_IDINTEGER (PK) BOOK_VERSION_IDINTEGER (PK) CREATION_DATEDATE And my query code is like this: Criteria bookVersionCriteria = new

Re: generate global uid's

2006-05-11 Thread Dennis Bekkering
Hello all, I am almost there with regards to asynq data merging based upon GUID. What i am looking for now is a way to have a creationdate field in indirectiontables. I am not sure how to do this since it is all handled by OJB. The case is like this, a local server has records that are not

Re: Intermitter error ...

2006-05-11 Thread Armin Waibel
Vamsi Atluri wrote: Hi Armin, I am using OJB1.0.1 on WSAD 5.1 using JDK1.3.1. I have a simple table of the form: TABLE: BOOK_VERSION_DEF BOOK_IDINTEGER (PK) BOOK_VERSION_IDINTEGER (PK) CREATION_DATEDATE And my query code is like this: Criteria

Re: Only one PB from second database

2006-05-11 Thread Armin Waibel
Bruno CROS wrote: Hi Armin, autoCommit set to 1 does not avoid freeze. The fact is that database is only used to be read, so rollbacks ( by disconnecting) will never be long. autocommit is however set to 1 now. Thanks for the advice. I dont' known why it freezes when maxIdle set to -1 and

Re: Intermitter error ...

2006-05-11 Thread Vamsi Atluri
Hi Armin, My broker factory is: PersistenceBrokerFactoryClass=org.apache.ojb.broker.core.PersistenceBrokerFactorySyncImpl Connection factory class is: ConnectionFactoryClass=org.apache.ojb.broker.accesslayer.ConnectionFactoryManagedImpl Persistence broker pool settings are:

Re: Only one PB from second database

2006-05-11 Thread Bruno CROS
when MaxIdle is set to 0, it works well, and the 5 maxActive are sufficient. No freeze at all. The whenExhaustedAction block is well what i want, no error. And it works with maxIdle set to 0. I don't see why no connection remaining in the pool leads to a serialization. Dead lock is a good

Re: Only one PB from second database

2006-05-11 Thread Armin Waibel
Bruno CROS wrote: when MaxIdle is set to 0, it works well, and the 5 maxActive are sufficient. No freeze at all. it's a moot point whether only one connection or five connections are used when maxIdle is 0. I think that maxIdle=0 will immediately close returned connections. The

Re: Only one PB from second database

2006-05-11 Thread Bruno CROS
No idea. All is ok on paper! http://jakarta.apache.org/commons/pool/apidocs/org/apache/commons/pool/impl/GenericObjectPool.html On 5/11/06, Bruno CROS [EMAIL PROTECTED] wrote: when MaxIdle is set to 0, it works well, and the 5 maxActive are sufficient. No freeze at all. The

Re: Only one PB from second database

2006-05-11 Thread Bruno CROS
Yep, i 'm affraid that _pool.size() is always than -1 !! (the maxIdle), so shouldDestroy is true, and no pool is added. May be it's me . Someone can confirm this ? private void addObjectToPool(Object obj, boolean decrementNumActive) throws Exception { boolean success = true;

Re: Only one PB from second database

2006-05-11 Thread Bruno CROS
Oops, it's me. Sorry On 5/11/06, Bruno CROS [EMAIL PROTECTED] wrote: Yep, i 'm affraid that _pool.size() is always than -1 !! (the maxIdle), so shouldDestroy is true, and no pool is added. May be it's me . Someone can confirm this ? private void addObjectToPool(Object obj, boolean

Re: generate global uid's

2006-05-11 Thread Armin Waibel
Hi Dennis, Dennis Bekkering wrote: Hello all, I am almost there with regards to asynq data merging based upon GUID. What i am looking for now is a way to have a creationdate field in indirectiontables. I am not sure how to do this since it is all handled by OJB. If you need an additional

Re: Only one PB from second database

2006-05-11 Thread Armin Waibel
Bruno CROS wrote: Yep, i 'm affraid that _pool.size() is always than -1 !! (the maxIdle), so shouldDestroy is true, and no pool is added. May be it's me . Someone can confirm this ? Yep! The pool is always empty. I would recommend first to try the connection-pool default settings shipped

Re: Utility for Forward engineering from repository.xml

2006-05-10 Thread Thomas Dudziak
On 5/10/06, Armin Waibel [EMAIL PROTECTED] wrote: Seems the apache server kills your attachment. Yep, ZIP attachements (among others) are not allowed for Apache mailing lists. You could open an issue in JIRA http://issues.apache.org/jira/browse/OJB and attach the source to this issue.

AW: OJB do delete and insert instead of update

2006-05-10 Thread Josef Wagner
Hi Armin, I'm working with OJB 1.0.3. Sorry, I have debugged again and see that m-n-handling is ok. Delete and insert instead of updating takes only affect by updating the primitive attributes of an object, not in the m-n relation tables. regards Josef Hi Josef, Josef Wagner wrote: Hello

Re: Utility for Forward engineering from repository.xml

2006-05-10 Thread Tom Antony
Hi Armin, I can work on the Turbine XML generation as time permits. Will let you know once I am done. Regards, Tom. --- Armin Waibel [EMAIL PROTECTED] wrote: Hi Tom, thanks for OJB tool support. Tom Antony wrote: Hi All, Recently I started working on a project using Apache

Re: auto-* in runtime ?

2006-05-09 Thread ABOU LINA
Thank you very much Armin for your reply. we dont have a ojb plugin eclipse ?? On 5/8/06, Armin Waibel [EMAIL PROTECTED] wrote: Hi, ABOU LINA wrote: Hi, Q1. We can change the value of auto-retrieve (-update) at the runtime ??? All direct object metadata changes are global, thus all

OJB do delete and insert instead of update

2006-05-09 Thread Josef Wagner
Hello list, why does ojb delete and insert when I'm updating an existing entry? Isn't this way negative in view of performance? I've seen this concept also by updating m-n relations. Thanks for your answers Josef Wagner, Germany

Re: Utility for Forward engineering from repository.xml

2006-05-09 Thread Armin Waibel
Hi Tom, thanks for OJB tool support. Tom Antony wrote: Hi All, Recently I started working on a project using Apache OJB. In the course of working on this project I developed a code generator tool which reads in the repository.xml and generates the Java bean stub source as well as schema

Re: OJB do delete and insert instead of update

2006-05-09 Thread Armin Waibel
Hi Josef, Josef Wagner wrote: Hello list, why does ojb delete and insert when I'm updating an existing entry? Isn't this way negative in view of performance? I've seen this concept also by updating m-n relations. Which version of OJB do you use? Beside the update of m-n relations when

auto-* in runtime ?

2006-05-08 Thread ABOU LINA
Hi, Q1. We can change the value of auto-retrieve (-update) at the runtime ??? Q2. if you have a list of suggestion about how to improve perfermance ojb / db2 , and methodologie of a best tuning ??? thx

Utility for Forward engineering from repository.xml

2006-05-08 Thread Tom Antony
Hi All, Recently I started working on a project using Apache OJB. In the course of working on this project I developed a code generator tool which reads in the repository.xml and generates the Java bean stub source as well as schema definitions for tables. OJB site mentions that there are no

Re: Utility for Forward engineering from repository.xml

2006-05-08 Thread Tom Antony
Hi, It seems the attachments have not gone through. If interested you can get the same from http://www.geocities.com/tomantony/codegenerator.zip Regards, Tom. --- Tom Antony [EMAIL PROTECTED] wrote: Hi All, Recently I started working on a project using Apache OJB. In the course of

Re: IllegalAccess error setting field in db-ojb-1.0.3

2006-05-08 Thread Rajesh T V
Hi Armin, I did see the more detailed error from OJB. The error happened on a different set of classes this time. [try to set 'object value' in 'target object' target obj class: com.cisco.ipce.engine.datamodel.CUEUserGroup target field name: lnkCUEPrivilege* target field type: class

Re: auto-* in runtime ?

2006-05-08 Thread Armin Waibel
Hi, ABOU LINA wrote: Hi, Q1. We can change the value of auto-retrieve (-update) at the runtime ??? All direct object metadata changes are global, thus all threads will see the changes immediately. Advanced user can define different object metadata profiles an can use these profiles in a per

Re: Avoiding Persistence Broker Leak

2006-05-06 Thread Bruno CROS
On 5/6/06, Edson Carlos Ericksson Richter [EMAIL PROTECTED] wrote: I've used a similar solution, but when I get a broker, first I check if one broker was already taken for this thread (and a usage counter is incremented). Then, when I start one operation, I just check if there is not already a

Re: Procedure based sequencence generator repeating values (SOLVED)

2006-05-06 Thread Armin Waibel
Hi Edson, congratulation for figure out this issue and thanks for detailed description and fixed procedure. I will add a link to your last post in sequence-manager documentation and update the procedure example for mssql. regards, Armin Edson Carlos Ericksson Richter wrote: Ok, this really

<    5   6   7   8   9   10   11   12   13   14   >