Re: LockManagerInMemoryImpl memory leak

2007-03-12 Thread Bruno CROS
useless lists at last cleanup. Modification have been tested with millions of locks / thousands of keys. May you post the code with a little comments cleanup ;-) Regards. On 3/9/07, Armin Waibel <[EMAIL PROTECTED]> wrote: Hi Bruno, Bruno CROS wrote: > Hi all, > > Well, ou

LockManagerInMemoryImpl memory leak

2007-03-06 Thread Bruno CROS
Hi all, Well, our team experiment some memory leaks using the LockManager in remote mode, with the servlet and so, the LockManagerRemoteImpl. It seems that, after a while, in the LockManagerInMemoryImpl (use by LMRemoteImpl), some LockObject instances are stored in the static HashMap keyLockMap

Re: Which class to modify to clock sql statements ?

2006-12-15 Thread Bruno CROS
ment itself. Cheers, Charles. > -Original Message- > From: Armin Waibel [mailto:[EMAIL PROTECTED] > Sent: 15 December 2006 01:24 > To: OJB Users List > Subject: Re: Which class to modify to clock sql statements ? > > Bruno CROS wrote: > > Hi, > > > > Wel

Re: DB dead lock issue with deletePersistent calls

2006-12-15 Thread Bruno CROS
JIRA is post. On 12/15/06, Armin Waibel <[EMAIL PROTECTED]> wrote: Hi Bruno, Bruno CROS wrote: > Hi, > > Ye, we get rid of those dead locks. Congratulation! > > Actually, OJB does not cause anything to have Oracle dead locks!! Phew! > Many > applications

Which class to modify to clock sql statements ?

2006-12-14 Thread Bruno CROS
Hi, Well, i just want to mesure the time a sql statement takes to be post (sql commit too). I looked a bit in broker.accesslayer package and in StatementForClassImpl.java. Is it the right place to do this ? May be someone wrote an implementation? Working with 1.0.4 Thanks for advices. Re

Re: DB dead lock issue with deletePersistent calls

2006-12-14 Thread Bruno CROS
to figure in documentation. Regards. Thanks for help. On 12/8/06, Armin Waibel <[EMAIL PROTECTED]> wrote: Bruno CROS wrote: > No. I don't known how to write such a test. But i have an idea where it > occurs in the persistent graph. > > I use locks on OJB master object (at

Re: DB dead lock issue with deletePersistent calls

2006-12-08 Thread Bruno CROS
Hi, On 12/8/06, Armin Waibel <[EMAIL PROTECTED]> wrote: Hi Bruno, Bruno CROS wrote: > Hi, > > I'm experiencing some troubles about deletePersistent usage when running > ODMG transactions. The most of the issues is an Oracle dead lock. > ORA-00060. > > I'

Re: ODMG Delete : markDelete or deletePersistent

2006-12-08 Thread Bruno CROS
help. On 12/8/06, Bruno CROS <[EMAIL PROTECTED]> wrote: Hi, Just one question. Using ODMG, if deletePersistent(o) is called from the Impl.getDatabase(), how "SQL DELETE" query post can be done with the other "INSERT/UPDATE" in the same SQL transaction without ref

ODMG Delete : markDelete or deletePersistent

2006-12-08 Thread Bruno CROS
Hi, Just one question. Using ODMG, if deletePersistent(o) is called from the Impl.getDatabase(), how "SQL DELETE" query post can be done with the other "INSERT/UPDATE" in the same SQL transaction without refering THE transaction? Why ODMG delete object tutorial talk about deletePersitent way,

Re: Want do query Object width no 1-n reference

2006-12-06 Thread Bruno CROS
query. On 12/7/06, Vasily Ivanov <[EMAIL PROTECTED]> wrote: Hello, I usually do criteria.addNotExists(subQuery) with ReportQueryByCriteria subQuery and set subQuery.setAttributes(new String[] { "1" }), it should be even faster than "anything ligth of Group (key field by

Re: Re: Circular references issue

2006-12-06 Thread Bruno CROS
ork. Else, find out how to flush with PB API (post queries without commit). Regards On 6 Dec 2006 18:15:07 -, Virgo Smart <[EMAIL PROTECTED]> wrote: Hello, Is there a way to do the same using Persistence Broker APIs ? Thanks and Regards, Gautam. On Wed, 06 Dec 2006 Bruno C

Re: Want do query Object width no 1-n reference

2006-12-06 Thread Bruno CROS
Well, try notExists criteria and a subquery on Group returning anything ligth of Group (key field by example) Bruno. On 12/6/06, Josef Wagner <[EMAIL PROTECTED]> wrote: Hello List, I want to have all "Users", which are not in a "Group" Here my repository: How

Re: Circular references issue

2006-12-06 Thread Bruno CROS
The circular references have to be build in 2 steps : First, create instances and link one relation. Flush (write SQL insert and update) Second, link with the second relation (in back side). Commit. Your example : tx.begin(); d = new Drawer(); f = new Finish(); tx.lock(d); tx.lock(f); d.setFini

DB dead lock issue with deletePersistent calls

2006-12-06 Thread Bruno CROS
Hi, I'm experiencing some troubles about deletePersistent usage when running ODMG transactions. The most of the issues is an Oracle dead lock. ORA-00060. I'm looking for what can be wrong, and don't find. Error occurs on production server, never on developpement servers !! To summarize, the tra

Re: How to release cached objects ?

2006-11-14 Thread Bruno CROS
n. Thanks again, and again... Regards Now, my need would be to getAllBroker from On 11/13/06, Armin Waibel <[EMAIL PROTECTED]> wrote: Hi Bruno, Bruno CROS wrote: > Hi, > > Just about a little question. > > Does PersistenceBrokerFactory.releaseAllInstances() release all

How to release cached objects ?

2006-11-13 Thread Bruno CROS
Hi, Just about a little question. Does PersistenceBrokerFactory.releaseAllInstances() release all cached objects? I'm using PersistenceBrokerFactoryDefaultImpl and ObjetCacheDefaultImpl (and OJB 1.0.4.) The goal is to force server to reload all OJB mapped objects. Is there a proper foreseen me

Re: Reflexive reference relation

2006-10-30 Thread Bruno CROS
Well, do not care about last mail. Reflexive relation works fine if you don't forget the flush or checkpoint absolutely necessary. OJB is really a great tool. Thanks. On 10/30/06, Bruno CROS <[EMAIL PROTECTED]> wrote: Hi, At start of my project, I remember i did a wo

Reflexive reference relation

2006-10-30 Thread Bruno CROS
Hi, At start of my project, I remember i did a workaround to translate the mapping of reflexive relation, but i'm not sure why... so I did it again, and obtained a PK_VIOLATED exception ! Even i don't known why this couldn't be possible ( i mean without "simulated" indirection table, so refere

Re: Monitoring DB cursor leaks

2006-10-10 Thread Bruno CROS
eone already do ? Thanks On 10/10/06, Bruno CROS <[EMAIL PROTECTED]> wrote: Hi, Here is my connector, Oracle9i yet... May be i have to set the jdbc-level at 3.0 ? Referring to this article, it seems that it is a hard to resolve trouble. http://www.orafaq.com/node/758 Except look

Re: Monitoring DB cursor leaks

2006-10-10 Thread Bruno CROS
. The Oracle9i Platform should not make use of the local PreparedStatements cache. Furhtermore the 'Oracle9i' offers better performance and correct handling for BLOBs > 4kB, for 9i or later Oracle versions. Good luck cheers Danilo Bruno CROS wrote: Hi all, Experiencing some MAX OPE

Monitoring DB cursor leaks

2006-10-09 Thread Bruno CROS
Hi all, Experiencing some MAX OPEN CURSOR oracle errors (ORA -01000) , i'm looking for the cursors leaks ( unclosed ResultSet it seems) in code. I guess that broker queries well close the result set. So when report queries results iteration are closed ? on HasNext()==false ? Is it possible to

Re: LockManagerRemoteImpl EOFException on URL

2006-09-29 Thread Bruno CROS
than a big one with InMemory. Depends on application...yes. But what do you think about that ? Best regards. Bruno On 9/28/06, Bruno CROS <[EMAIL PROTECTED]> wrote: Hi, I updated from SVN LockManagerFactory and configure is well called now, thanks. the EOFException still remains

Re: LockManagerRemoteImpl EOFException on URL

2006-09-29 Thread Bruno CROS
Hi Armin, I think the classpath (jar) i give for servlet is wrong (server side). Can you list the jars to be with LockManagerServlet? Thanks On 9/29/06, Bruno CROS <[EMAIL PROTECTED]> wrote: the EOF is the cause on the client (RemoteImpl client) the resulting exceptio

Re: LockManagerRemoteImpl EOFException on URL

2006-09-28 Thread Bruno CROS
l.java:383) at org.apache.ojb.broker.locking.LockManagerRemoteImpl.performRequest( LockManagerRemoteImpl.java:335) at org.apache.ojb.broker.locking.LockManagerRemoteImpl.releaseLock( LockManagerRemoteImpl.java:193) ... 41 more On 9/29/06, Armin Waibel <[EMAIL PROTECTED]> wrote: Bruno CR

Re: LockManagerRemoteImpl EOFException on URL

2006-09-28 Thread Bruno CROS
what is it really. I know what serialization is , i did it (with file), but i can't see where something is wrong in LockManagerRemoteImpl. Thanks for any help. OJB 1.0.4. Sun JVM 1.4 On 9/28/06, Bruno CROS <[EMAIL PROTECTED]> wrote: Hi, Once i'va modified constructor of Loc

LockManagerRemoteImpl EOFException on URL

2006-09-28 Thread Bruno CROS
Hi, Once i'va modified constructor of LockManagerRemoteImpl to initialize lockserver variable, i started to test LockManagerRemoteImpl and get into an EOFException. URL sun implementation , release 1.0.4 Thanks Caused by: java.io.EOFException at java.io.ObjectInputStream$PeekInputStream.re

Re: Configurable interface for LockManagers

2006-09-28 Thread Bruno CROS
Hello, While waiting for the 1.0.5 release, which files should i get in CVS to get LockManagerRemoteImpl work? Thanks Armin On 1/28/06, Armin Waibel <[EMAIL PROTECTED]> wrote: Hi, is fixed in SVN and will be included in upcoming 1.0.5 maintenance release. regards, Armin Armin Waibel w

Re: Xdoclet proxy values

2006-07-06 Thread Bruno CROS
Done On 7/6/06, Thomas Dudziak <[EMAIL PROTECTED]> wrote: On 7/5/06, Bruno CROS <[EMAIL PROTECTED]> wrote: > I noticed that the "proxy" keyword can't accept "dynamic" value. "dynamic" > is an accepted value in repository file and see

Xdoclet proxy values

2006-07-05 Thread Bruno CROS
Hi all, I noticed that the "proxy" keyword can't accept "dynamic" value. "dynamic" is an accepted value in repository file and seems to be different of "true". On my setup, "dynamic" values works fine with CGLib proxies and, proxy="true" seems to not... Does someone can confirm this? if it

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 ? priva

Re: Only one PB from second database

2006-05-11 Thread Bruno CROS
notifyAll(); // _numActive has changed if(shouldDestroy) { try { _factory.destroyObject(obj); } catch(Exception e) { // ignored } } } On 5/11/06, Armin Waibel <[EMAIL PROTECTED]> wrote: Bruno CROS wrote: &

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

Re: Only one PB from second database

2006-05-11 Thread Bruno CROS
good assumption, it looks like that, but if code only reads, i don't known at all how to produce dead lock. I'm going to look at common-pool settings, if maxIdle is common-pool setting. regards On 5/11/06, Armin Waibel <[EMAIL PROTECTED]> wrote: Bruno CROS wrote: > Hi Armin,

Re: Only one PB from second database

2006-05-11 Thread Bruno CROS
On 5/6/06, Armin Waibel <[EMAIL PROTECTED]> wrote: Hi Bruno, Bruno CROS wrote: > Hi Armin, > > In fact, i looked at the DB connections in the DB console. It was a bad > idea, because connection disappear !! I looked with netstat -a , and i saw > sever

Re: Avoiding Persistence Broker Leak

2006-05-06 Thread Bruno CROS
t for this. Check many methods without such a technique, is very long... OJB developpements are shorter !! Best regards, Best regards. Edson Richter Bruno CROS escreveu: > Hi Armin, > > Thanks for the idea to detect broker leak. It will show some bad coded > methods, even they ha

Avoiding Persistence Broker Leak

2006-05-05 Thread Bruno CROS
Hi Armin, Thanks for the idea to detect broker leak. It will show some bad coded methods, even they have been checked : commit never reached, broker not closed... no commit/abort !!! (find one, arghh ) Meanwhile, there was still some "open broker detected". When i look into code, i found some

Re: Only one PB from second database

2006-05-05 Thread Bruno CROS
didn't find any documentation on that value. What i known is that, when i put 0 (no limit), it seems there is no more freeze. Can you ligth up me about that. Thanks. Regards. On 5/5/06, Armin Waibel <[EMAIL PROTECTED]> wrote: Hi Bruno, Bruno CROS wrote: > Hi, > > I have

Only one PB from second database

2006-05-05 Thread Bruno CROS
Hi, I have a strange behaviour about the second database i use. It seems that using "broker = PersistenceBrokerFactory.createPersistenceBroker("rushDb");" always return the same broker/connection. My connection pool is setup as it have to keep 2 idle connections available, and it never occu

Re: standalone getDefaultBroker auto-retrieve

2006-04-28 Thread Bruno CROS
be close by the method) whereas there is no open transaction? I do not have idea at all. I will have a lokk Tuesday. Thanks for your help. Again. On 4/28/06, Bruno CROS <[EMAIL PROTECTED]> wrote: > > Yep. I did something like... with an immediate catched exception!! it > wo

Re: standalone getDefaultBroker auto-retrieve

2006-04-28 Thread Bruno CROS
if(brokerLeakDetection) > { > logger.error(msg + " Broker caller stack is: " >+ SystemUtils.LINE_SEPARATOR + brokerStackTrace); > } > else > { > logger.warn(msg); >

Re: standalone getDefaultBroker auto-retrieve

2006-04-25 Thread Bruno CROS
that will be so great. Imagine : broker xxx, time-out 120 s, borrowed by --- stacktrace --- I will try it tomorrow, thanks a lot. Armin. Regards On 4/25/06, Armin Waibel <[EMAIL PROTECTED]> wrote: > > Bruno CROS wrote: > > using proxies ? > > > > Oh, i see now.

Re: standalone getDefaultBroker auto-retrieve

2006-04-25 Thread Bruno CROS
r may be someone else now ;-) ) Thanks again. Bye. On 4/25/06, Armin Waibel <[EMAIL PROTECTED]> wrote: > > Hi Bruno, > > Bruno CROS wrote: > > Hi Armin, > > > > Here's is a schematic example : > > > > Consider a service method that returns

Re: standalone getDefaultBroker auto-retrieve

2006-04-24 Thread Bruno CROS
.. how does it close ? return product; } return null; } I tried to wrap the code of first method with a tx.open() and tx.abort(), to be sure that broker is released at the end with the abort(). thanks regards. On 4/25/06, Armin Waibel <[EMAIL PROTECTED]> wrote: > > Hi Brun

standalone getDefaultBroker auto-retrieve

2006-04-24 Thread Bruno CROS
Hi, It seems that read objects with a broker, can read related objects by auto-retrieve set to "true" despite broker is closed. I suppose that a getDefaultBroker is done, and the borrowed broker is never closed (because no reference on it). Note : This occurred because, application has been writt

Re: Question about two-level cache

2006-04-22 Thread Bruno CROS
Hi, I experienced Two Level Cache Impl. Have a look to mail archives about TwoLevelCacheImpl. Beware of checkpoints inside batch loops. Using checkpoints make cached objects quantity growing until commit. If you have to, replace checkpoints by commit/begin. Did you try the ObjectCacheDefaultI

Re: Brokers leak

2006-04-20 Thread Bruno CROS
eption, ServletException { > >aChain.doFilter(aRequest, aResponse); > >/* Check for unclosed broker and log url path here!! */ > } > > Jon French > Programmer > ECOS Development Team > [EMAIL PROTECTED] > 970-226-9290 > > Fort Collins Science Center &

Brokers leak

2006-04-19 Thread Bruno CROS
Hi all, I experienced brokers leaks. I checked all the open / close broker methods and the leaks still remains. ODMG transaction have been checked too. Those leaks result in PersistentBroker I/O Exception, freezing application. I would be very happy to known which methods take my brokers

Re: Im desperated

2006-04-13 Thread Bruno CROS
, Helder Gaspar Rodrigues <[EMAIL PROTECTED]> wrote: > > i tinhk that i have understaood your point of view, but how can i > compare A with B if they are diferents object types? > > Thank you > Bruno CROS wrote: > > Take in consideration fields with null value. Test &l

Re: Im desperated

2006-04-13 Thread Bruno CROS
Take in consideration fields with null value. Test <> ou = cannot be correctly done with nulls. In this case you have to write : A isNull OR A<>B or A NotNULL AND A==B Hope this may help you. Regards. On 4/13/06, Helder Gaspar Rodrigues <[EMAIL PROTECTED]> wrote: > > Hello everyone, i know th

Re: reflexive collections

2006-04-08 Thread Bruno CROS
Hi, Take care about the loading behaviour with auto-retrieve=true on a reflexive collection. Without this consideration, then, querying with alias normally will help to your error. ++ On 4/7/06, Daniel Perry <[EMAIL PROTECTED]> wrote: > > Is it possible for an object to have a reflexive colle

Re: Next Release

2006-04-05 Thread Bruno CROS
Hi, Great . thanks On 4/5/06, Tino Schöllhorn <[EMAIL PROTECTED]> wrote: > > Hi, > > thanks. That would be great. > > Tino > > Armin Waibel wrote: > > Hi Tino, > > > > Tino Schöllhorn wrote: > >> Hi, > >> > >> we are currently using OJB 1.0.1 and are thinking about updating to > >> the lates

rownum causes order by trouble

2006-04-04 Thread Bruno CROS
Hi, Inserting a criteria as "rownum < 2" causes the ORDER BY #n DESC to be ORDER BY #n . DESC has been lost !! Anyone confirm ? Have a workaround ? What's the best way to read only first resultset (or Object) without iterating the whole collection ? I suspect some broker-connections troubles on

Re: ReportQuery bug 1.0.4

2006-03-31 Thread Bruno CROS
Hello. Does someone find a free alternative to P6SPY, ( or a fix to mixed alias bug) ? thank you On 2/20/06, Bruno CROS <[EMAIL PROTECTED]> wrote: > > Yes, I confirm. > > it's P6SPY. I have no idea why, at all. > > It's gonna be hard to debug queries w

Re: Report query right outer join

2006-03-27 Thread Bruno CROS
Auto-reply : SQL again. On 3/27/06, Bruno CROS <[EMAIL PROTECTED]> wrote: > > > >Hi, > > A new challenge : build a left and a right outer join. In fact, i think > it's describe as a full outer join in a single reportquery. > > Does someone think it&#x

Report query right outer join

2006-03-27 Thread Bruno CROS
Hi, A new challenge : build a left and a right outer join. In fact, i think it's describe as a full outer join in a single reportquery. Does someone think it's possible with OJB or do i go SQL again ? Regards

Re: Reflexive ReportQuery

2006-03-27 Thread Bruno CROS
Auto reply : Final solution done with normal SQL query. Solution includes sub queries attribute as well. ++ On 3/22/06, Bruno CROS <[EMAIL PROTECTED]> wrote: > > > Hi again, > > I 'm desesperatly searching how to produce ReportQuery with a reflexive > virtual re

Reflexive ReportQuery

2006-03-22 Thread Bruno CROS
: p1, _LOOPBACK.p1 class : Table.class criteria : p2=_LOOPBACK.p3 this would be traduced by : select A0.p1, A1.p1 FROM table A0, table A1 where A0.p2 =A1.p3 Regards On 3/21/06, Bruno CROS <[EMAIL PROTECTED]> wrote: > > > Hi all, > > first, thanks Armin for the patch, i t

Join on the same table

2006-03-21 Thread Bruno CROS
Hi all, first, thanks Armin for the patch, i think will wait 1.0.5 if it will be released in the month, because i need CLOB changes too. I'm asking me if it's possible to build an auto join ReportQuery such as : select A0.id, A1.id FROM table1 A1, table1 A2 where A1.joinColumn1 = A2.joincolu

Re: ODMG and markDelete behaviour

2006-03-16 Thread Bruno CROS
rieve A1, retrieve B1 with A1.getB() > > 2. instantiation and lock of A2 > 3. lock A1, B1 (depends on the configuration settings, implicit locking) > > 4. A2.setB(B1) > 5. B1.setA(null) > > 6. delete A1 (markDelete) > > 7. commit > > regards, > Armin > > Br

Re: ODMG and markDelete behaviour

2006-03-15 Thread Bruno CROS
> > 2. instantiation and lock of A2 > 3. lock A1, B1 (depends on the configuration settings, implicit locking) > > 4. A2.setB(B1) > 5. B1.setA(null) > > 6. delete A1 (markDelete) > > 7. commit > > regards, > Armin > > Bruno CROS wrote: > >Hi

ODMG and markDelete behaviour

2006-03-11 Thread Bruno CROS
Hi Armin, Hi all. Well, with a little confusion, we believed that our bug of complex update was not one. But it remains. I'm suspecting a bug of OJB concerning the transcription of the "markDelete" in SQL operations. If I have time, I will try to assemble a demonstrative case of test with

Re: ODMG ordering with circular pairs

2006-03-07 Thread Bruno CROS
Oups, a type error at the end of my mail. "I don't think i will test this deeper, because you warned me about doing this (get object from other broker). " That explains the strange behaviour we had. Regards. Sorry for mistake. On 3/7/06, Bruno CROS <[EMAIL PROTECTED]>

Re: ODMG ordering with circular pairs

2006-03-07 Thread Bruno CROS
your help. Regards. On 3/6/06, Armin Waibel <[EMAIL PROTECTED]> wrote: > > Hi Bruno, > > Bruno CROS wrote: > > >>> Our first problem was, that, after commit, P1 was not referencing M in > > >>> database. I deduced that after a flush(), new locked

Re: ODMG ordering with circular pairs

2006-03-05 Thread Bruno CROS
Thanks. Response is in red. I'm suspecting a bug. Regards. On 3/5/06, Armin Waibel <[EMAIL PROTECTED]> wrote: > > Hi Bruno, > > whew! Sounds really complex, I try my best... > > The first problem is the bidirectional reference between P1, P2. To > establish the FK (e.g. in P1 from P2) the re

ODMG ordering with circular pairs

2006-03-04 Thread Bruno CROS
Hi all, hi Armin, I believe i noted a strange behaviour behaviour of new 1.0.4 ODMG ordering. Consider JIRA OJB-18. Before 1.0.4 , we used the given workaround. This means, that we put some flush() in "strategical" place to avoid all FK constraints. It worked fine. Now, with the OJB 1.0.

Re: OJB CLOB Support

2006-02-28 Thread Bruno CROS
sing hard references (object cloning). But why would we clone this kind of object, since this is not a primitive type. Am i on the rigth way ? Regards. On 2/28/06, Armin Waibel <[EMAIL PROTECTED]> wrote: > > Hi Bruno, > > Bruno CROS wrote: > > Hi, > > > &g

Re: OJB CLOB Support

2006-02-27 Thread Bruno CROS
Hi, I need a little documentation on CLOB too. To start, does someone can tell me which java type i have to use (to map) with a jdbc-type CLOB ? java.sql.Clob? as the OJB types mapping board shows it. but java.sql.Clob is only an interface. What object to create so ? ( is there a Clob implemen

Re: Oracle 10g compliance

2006-02-21 Thread Bruno CROS
OK. Fine. I supposed that it was good. It was just to be sure. Thanks Thomas. On 2/21/06, Thomas Dudziak <[EMAIL PROTECTED]> wrote: > > On 2/21/06, Bruno CROS <[EMAIL PROTECTED]> wrote: > > > Apparently, 1.0.4 does not support Oracle 10g platform (torque does bu

Oracle 10g compliance

2006-02-21 Thread Bruno CROS
Hi all, Apparently, 1.0.4 does not support Oracle 10g platform (torque does but not the OJB runtime) So, i go on with oracle 9i settings. Does anyone report experience (good or bad) of that ? Thanks.

Re: ReportQuery bug 1.0.4

2006-02-20 Thread Bruno CROS
> > SELECT A0.NUMBER,A1.NUMBER FROM PHONE_NUMBER A0 INNER JOIN CALLS A1 ON > > A0.PHONE_NUMBER_ID=A1.PHONE_NUMBER_ID WHERE A1.NUMBER LIKE '%66%' > > > > but the data retrieved from the resultset is wrong: > > > > number and calls.numberCalled contain the same

ReportQuery bug 1.0.4

2006-02-17 Thread Bruno CROS
Hi all, It seems there is big problem on ReportQuery. Consider 2 classes, Class_A with property_a and Class_B with property_b. Consider that Class_A is 1:n related to Class_B. Build a ReportQuery on Class_B, requesting "property_b" and " classA.property_a". If database field names are the sa

SequenceManagerNextValImpl buildIdentity

2006-02-15 Thread Bruno CROS
Hi all, I just experienced a strange behaviour of SequenceManagerNextValIpl (I guess) following migration from OJB 1.0.1 to 1.0.4. To build an object, i need the value of the id before writing it to the database So i use Identity oid = broker.serviceIdentity().getIdentity(objectNewInstanciat

Re: TwoLevelCache troubles and get the running transaction

2006-02-11 Thread Bruno CROS
CGLib, convinced it's better, of course. I answered to you below in blue. On 2/11/06, Armin Waibel <[EMAIL PROTECTED]> wrote: > > Hi Bruno, > > Bruno CROS wrote: > > Hi all, hi Armin, > > > > Using TwoLevelCacheObjectImpl, i experienced some big trouble

TwoLevelCache troubles and get the running transaction

2006-02-10 Thread Bruno CROS
Hi all, hi Armin, Using TwoLevelCacheObjectImpl, i experienced some big troubles with a delete sequence containing some flush() to avoid FK constraints errors. Assume 2 classes A and B, with 1:n relation. We can resume sequence as this : - open tx - read object A - read collection of object

Re: Auto-retrieve or not ?

2006-02-09 Thread Bruno CROS
ache.ojb.odmg.TransactionImpl.doWriteObjects(Unknown Source) at org.apache.ojb.odmg.TransactionImpl.checkpoint(Unknown Source) at fr.gouv.finances.douane.dnsce.mathieu.application.tables.service.UnitesServ. majUnites(UnitesServ.java:110) On 2/9/06, Armin Waibel < [EMAIL PROTECTED]> wrote: > > Hi Bruno, > > Bruno C

Re: Auto-retrieve or not ?

2006-02-08 Thread Bruno CROS
something disappear ? even if Customer is never locked, just loaded and (re)referenced. Thanks very very much for the answers. I hope i will not request you anymore help. Regards. On 2/6/06, Armin Waibel <[EMAIL PROTECTED]> wrote: > > Hi Bruno, > > Bruno CROS wrote: &g

Re: Auto-retrieve or not ?

2006-02-07 Thread Bruno CROS
set proxy="true" on the reference-descriptor and proxy="dynamic" on referenced class. - I didn't see significant loading chain breaks using CGLib, with TwoLevelObjectCache. Tell me i'm wrong and that's the only fact of the cache manager.. Regards On 2/6

Re: Can't get default broker !!!

2006-02-07 Thread Bruno CROS
Discard my last mail !! During a while, i was into the body of a "bad" user. (nightmare) In fact, I did really change something, something in the setup of OJB even !! I was trying to install CGLib, without the jar (Idiot i am) Sorry. On 2/7/06, Bruno CROS <[EMAIL PROT

Can't get default broker !!!

2006-02-07 Thread Bruno CROS
Help ! Can't get any broker today. Yesterday, it was all right. And i swear, i didn't change anything !! I don't understand anything cause all other developpers can connect to the same instance/schema to work on. What did i miss again ? How can i tarce any jdbc connection troubles ? with log? w

Auto-retrieve or not ?

2006-02-06 Thread Bruno CROS
About my precedent batch troubles: In fact, a saw my model loaded from every where with all the actual auto-retrieve="true", this means, every where !! This means too, that "back" relations are read too, circling too much. This was the cause of my OutOfMemoryError. My model is a big one with a lo

Re: Migrating to 1.0.4

2006-02-06 Thread Bruno CROS
tell me that i have to check all my auto-retrieve !! ... On 2/6/06, Bruno CROS <[EMAIL PROTECTED]> wrote: > > > 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 ba

Re: Migrating to 1.0.4

2006-02-06 Thread Bruno CROS
. Best regards On 2/4/06, Armin Waibel <[EMAIL PROTECTED]> wrote: > > 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). > > > &

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 ge

Re: Migrating to 1.0.4

2006-02-03 Thread Bruno CROS
On 2/3/06, Thomas Dudziak <[EMAIL PROTECTED]> wrote: > > 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.times

Re: Migrating to 1.0.4

2006-02-03 Thread Bruno CROS
ROTECTED]> wrote: > > 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

Re: Migrating to 1.0.4

2006-02-03 Thread Bruno CROS
table needed ? why oracle does not want to cretae iot !!? It's amazing. Thanks for you help. On 2/3/06, Thomas Dudziak <[EMAIL PROTECTED]> wrote: > > On 2/3/06, Bruno CROS <[EMAIL PROTECTED]> wrote: > > > First you will find the ant trace of setup-db task, t

Re: Migrating to 1.0.4

2006-02-03 Thread Bruno CROS
.lib.dir=lib build.classes.dir=${build.dir}/classes/ build.resources.dir=${build.dir}/resources/ target.dir=target = ======= On 2/3/06, Thomas Dudziak <[EMAIL PROTECTED]> wrote: > > On 2/3/06, Bruno CROS &l

Re: Migrating to 1.0.4

2006-02-03 Thread Bruno CROS
EMAIL PROTECTED]> wrote: > > 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, > >

Migrating to 1.0.4

2006-02-03 Thread Bruno CROS
plementation done in 1.0.2/3, changed auto-xxx > settings for odmg, ...) it's listed in the release-notes and in the docs > (Caching, Inheritance, ...). > Strongly recommended: > http://db.apache.org/ojb/docu/guides/odmg-guide.html > > regards, > Armin > > > Bruno

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: OJB and temporary tables

2005-06-27 Thread Bruno CROS
ossible to map to temporary tables in > OJB. > > However, it might be possible to dynamically change the repository > metadata > to point to the temporary table... > > > > -Original Message- > From: Bruno CROS [mailto:[EMAIL PROTECTED] > Sent: 27 June 2005

Re: OJB and temporary tables

2005-06-27 Thread Bruno CROS
Help, please, did someone try to use temporary table ? I'm asking me about a turn around, creating records in a ODMG transaction and rollback them systematically . Risky, isn't it ? I don't known exactly why, but i think there is a better way... Thanks for any ideas On 6/23

OJB and temporary tables

2005-06-23 Thread Bruno CROS
Hello, I did not find any concrete discussings about dealing with temporary tables with OJB. My aim is to check some values against records in OJB tables. The query is a complex join query, with multiple records entries. Make a query for each check will be too heavy and too long. My first idea

Re: repository.xml partially read

2005-03-18 Thread Bruno CROS
Waouh, was just an awful bad naming. I had forgotten than Windows is not case sensitive !!! Unix is... argh the xml "database" in my repository.xml was named repository_database_rushDB instead of repository_database_rushDb. So confuseD. So sorrY. Thanks again for your help. ++ On Fri, 18 Mar 2

Re: repository.xml partially read

2005-03-18 Thread Bruno CROS
is those who gave me Weblogic... On Fri, 18 Mar 2005 15:10:26 +0100, Martin Kalén <[EMAIL PROTECTED]> wrote: > Bruno CROS wrote: > > I setup a repository.xml as ojb-blank project > > description of my file is below. This file works very well on Tomcat > > over windows,

repository.xml partially read

2005-03-18 Thread Bruno CROS
Hello, I setup a repository.xml as ojb-blank project description of my file is below. This file works very well on Tomcat over windows, but not at all on AIX ! AIX log tells me that "No repository is loaded", the parsing seems to stop in a subfile !! (see below) so OJB starts with empty meta

Oracle 9i date-timestamp tip

2005-03-03 Thread Bruno CROS
Even if it has been already post, i just want to clarify the tip : - according to Oracle 9i notes http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm#08_01 it's important to note that mapping date attributes such as java.sql.Time java.util.Date (with hours ...) and even jav