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 Mariusz Wójcik <wo...@okno.pw.edu.pl> on 2004/09/02 13:20:07 UTC
Related object is neither persistent, nor otm-depentent: - What is
the reason ???????
Hi
During inserting some of my objects to the db, sometimes I get this
Exception ( StackTrace under my email-message): What could be the reason
of it ???? I know that it connects with otm-dependent, and
auto-retrieve parameters in my repository.xml file, but I don't
understand in which way. What they are designed for ? What is their
role during inserting and deleting objects?
I will be very greatful for every help in undestanding it.
best regards
mario
[org.apache.ojb.broker.core.PersistenceBrokerImpl] ERROR: Broker is
still in PB-transaction, do automatic abort before close!
java.lang.IllegalStateException: Related object is neither persistent,
nor otm-depentent: mojPakiet.uzytkownicy.Pracownik{946}
at
org.apache.ojb.otm.core.ConcreteEditingContext.insertInternal(ConcreteEditingContext.java:202)
at
org.apache.ojb.otm.core.ConcreteEditingContext.lockReachableObjects(ConcreteEditingContext.java:322)
at
org.apache.ojb.otm.core.ConcreteEditingContext.insertInternal(ConcreteEditingContext.java:275)
at
org.apache.ojb.otm.core.ConcreteEditingContext.insert(ConcreteEditingContext.java:129)
at
org.apache.ojb.otm.core.BaseConnection.makePersistent(BaseConnection.java:338)
at pw.coi.portal.dao.AdmObiektDAO.addElement(AdmObiektDAO.java:143)
at pw.coi.portal.test.Start.stworzStruktureTEST(Start.java:691)
at pw.coi.portal.test.Start.main(Start.java:52)
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org