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 Emmanuel DUPONT <em...@jwaretechnologies.com> on 2004/06/15 13:11:55 UTC

Pb on jdo.getCol and Delete

All,

 

I retrieve a jdo collection with the jdo.getCol method. I'm using dynamic
proxy. 

 

I'm using an iterator on this col and delete eatch object retrieve.

 

Later (not all time but 50% time) I commit and I have an Unmaterialized
proxy error !!

 

 

 

It seems that after a certain time (??) the proxy is unmaterialized and the
commit could not order to delete the object ..

 

Database db = impl.getDatabase(product);
Collection col = jdo.getCol();
Iterator iter = col.iterator();
 
While (iter.hasNext()) {
   Jdoxx myxx = iter.next();
   db.deletePersistent(myxx);
}

 

 

blablablablablablabla.later on....

 

commit();

 

 

What wrong in my logic ???

 

Any help would be appreciated ! Tx !!