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 Ashish Rangole <as...@vexcel.com> on 2004/10/21 04:58:02 UTC

Inconsistent retrieval behaviour ,please help

Hi!

I am using OJB rc6 in tomcat server. I have several m:n
relationships as well as some 1:n relationships.
I have mapped m:n relationships using decomposed mapping.

In collection-descriptors I am not using auto-retrieve
attribute, so I guess default is used. I use PB API in an
ODMG transcation to query and then update/write using ODMG
inside the transaction. I have set ImplicitLocking=false.

I am seeing an inconsistent query behaviour.Sometimes the
referenced objects are null, sometimes referenced collections are
empty. Sometimes they are retrieved properly. I have thousands of
entries however no single referenced collection is larger than 1000.
This inconsistent behaviour is very confusing and embarrasing. Any
advice will be greatly appreciated. Please help!

Thanks in advance for your time and help.

Regards
Ashish

"What hobbyist can put 3-man years into programming, finding all bugs,
  documenting his product and distribute for free?"
-- Bill Gates, An Open Letter to Hobbyists, 1976


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


Re: Inconsistent retrieval behaviour ,please help

Posted by Armin Waibel <ar...@apache.org>.
Hi Ashish,

there was an bug when concurrent threads try to materialize the same 
complex object.
http://nagoya.apache.org/eyebrowse/ReadMsg?listId=107&msgNo=14472

It's fixed in CVS and will be part of the next upcoming release.
Could this cause your problem?

regards,
Armin

Ashish Rangole wrote:

> Hi!
> 
> I am using OJB rc6 in tomcat server. I have several m:n
> relationships as well as some 1:n relationships.
> I have mapped m:n relationships using decomposed mapping.
> 
> In collection-descriptors I am not using auto-retrieve
> attribute, so I guess default is used. I use PB API in an
> ODMG transcation to query and then update/write using ODMG
> inside the transaction. I have set ImplicitLocking=false.
> 
> I am seeing an inconsistent query behaviour.Sometimes the
> referenced objects are null, sometimes referenced collections are
> empty. Sometimes they are retrieved properly. I have thousands of
> entries however no single referenced collection is larger than 1000.
> This inconsistent behaviour is very confusing and embarrasing. Any
> advice will be greatly appreciated. Please help!
> 
> Thanks in advance for your time and help.
> 
> Regards
> Ashish
> 
> "What hobbyist can put 3-man years into programming, finding all bugs,
>  documenting his product and distribute for free?"
> -- Bill Gates, An Open Letter to Hobbyists, 1976
> 
> 
> ---------------------------------------------------------------------
> 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