You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Thomas Dudziak <to...@first.gmd.de> on 2003/08/04 15:27:57 UTC

IllegalStateException in DelegatingPersistenceBroker.getBroker

While doing a OMDG query like this (after some other committed
transactions):

OQLQuery queryObj = _odmg.newOQLQuery();
String   query    = ... // some basic select

_tx.begin();
queryObj.create(query);
DList result = (DList)queryObj.execute();
_tx.commit();

I get an IllegalStateException thrown in
DelegatingPersistenceBroker.getBroker() while the query executes. When
debugging I can see that in the execute method the collection is correctly
retrieved but the following locking (performLockingIfRequired) seemingly
tries to use an already closed broker.
Any idea what might cause this ?

BTW, I use the CVS version from August 1st with MySQL.

Thanks,
Tom 



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: IllegalStateException in DelegatingPersistenceBroker.getBroker

Posted by Thomas Dudziak <to...@first.fhg.de>.
Armin Waibel wrote:

>Hi Tom,
>
>do all odmg junit tests pass?
>Now OJB is more strict in handling PB instances.
>If PB.close() was called on a given instance no further
>method calls can be done. Your sample
>code seems ok, thus it sounds like a bug.
>  
>

Well, yes the tests pass (with hsqldb that is), sort of (see my other 
mail from yesterday). But I'll check whether I can reproduce it in a test.

Tom



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: IllegalStateException in DelegatingPersistenceBroker.getBroker

Posted by Armin Waibel <ar...@code-au-lait.de>.
Hi Tom,

do all odmg junit tests pass?
Now OJB is more strict in handling PB instances.
If PB.close() was called on a given instance no further
method calls can be done. Your sample
code seems ok, thus it sounds like a bug.

regards,
Armin

----- Original Message -----
From: "Thomas Dudziak" <to...@first.gmd.de>
To: "OJB Users List" <oj...@db.apache.org>
Sent: Monday, August 04, 2003 3:27 PM
Subject: IllegalStateException in DelegatingPersistenceBroker.getBroker


> While doing a OMDG query like this (after some other committed
> transactions):
>
> OQLQuery queryObj = _odmg.newOQLQuery();
> String   query    = ... // some basic select
>
> _tx.begin();
> queryObj.create(query);
> DList result = (DList)queryObj.execute();
> _tx.commit();
>
> I get an IllegalStateException thrown in
> DelegatingPersistenceBroker.getBroker() while the query executes. When
> debugging I can see that in the execute method the collection is
correctly
> retrieved but the following locking (performLockingIfRequired)
seemingly
> tries to use an already closed broker.
> Any idea what might cause this ?
>
> BTW, I use the CVS version from August 1st with MySQL.
>
> Thanks,
> Tom
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org