Hi
I suspect the problem to be related to cyclic relations, any advice on how to deal with cyclic relations in JPA ?
We have two entites A and B, where B has ManytoOne relation to B – and in the code we have that we go from A->B and then afterwards from B->A on
the ManytoOne relation
Regards
Mejar
From: Singh, Mejar
Sent: 8. marts 2012 15:06
To: 'eclipselink-dev@xxxxxxxxxxx'
Subject: STUCK Threads + @Transient behaviour
Hi
We get STUCK threads, so would like to know if a JPA entity with:
@Transient
@XmlTransient
public boolean isExportEntity() {
return exportEntity;
}
when calling:
public void setExportEntity(boolean exportEntity) {
this.exportEntity = exportEntity;
}
will this entity be locked in the L2 cache if we call setExportEntity ?
our log is:
]", which is more than the configured time (StuckThreadMaxTime) of "600"
seconds. Stack trace:
Thread-2281 "[STUCK] ExecuteThread: '340' for queue: 'weblogic.kernel.Default
(self-tuning)'" <alive, suspended, sleeping, priority=1, DAEMON> {
java.lang.Thread.sleep(Thread.java:???)
org.eclipse.persistence.internal.helper.ConcurrencyManager.releaseDeferredLock(ConcurrencyManager.java:429)
org.eclipse.persistence.internal.identitymaps.CacheKey.releaseDeferredLock(CacheKey.java:348)
org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:660)
org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildWorkingCopyCloneNormally(ObjectBuilder.java:587)
]", which is more than the configured time (StuckThreadMaxTime) of "600"
seconds. Stack trace:
Thread-2287 "[STUCK] ExecuteThread: '346' for queue: 'weblogic.kernel.Default
(self-tuning)'" <alive, suspended, blocked, priority=1, DAEMON> {
-- Blocked trying to get lock:
java.util.Vector@19ddf650[fat lock]
java.util.Vector$1.nextElement(Vector.java:300)
org.eclipse.persistence.internal.helper.ConcurrencyManager.isBuildObjectOnThreadComplete(ConcurrencyManager.java:347)
org.eclipse.persistence.internal.helper.ConcurrencyManager.isBuildObjectOnThreadComplete(ConcurrencyManager.java:347)
Reproducible: Sometimes