Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Bug with IndirectMap?
Bug with IndirectMap? [message #503989] Wed, 16 December 2009 17:43 Go to next message
Brendan Haverlock is currently offline Brendan HaverlockFriend
Messages: 46
Registered: July 2009

In my multithreaded WS call, I keep getting locked on the following line.

at java.lang.Object.wait(
at org.eclipse.persistence.internal.helper.WriteLockManager.acq uireLocksForClone(
- locked <0x9da44f68> (a org.eclipse.persistence.internal.helper.ConcurrencyManager)
at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.clo neAndRegisterObject(
at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.clo neAndRegisterObject(
at org.eclipse.persistence.internal.sessions.UnitOfWorkIdentity MapAccessor.getAndCloneCacheKeyFromParent(UnitOfWorkIdentity
at org.eclipse.persistence.internal.sessions.UnitOfWorkIdentity MapAccessor.getFromIdentityMap(UnitOfWorkIdentityMapAccessor .java:110)
at org.eclipse.persistence.internal.sessions.IdentityMapAccesso r.getFromIdentityMap(
at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.reg isterExistingObject(
at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.reg isterExistingObject(
at org.eclipse.persistence.mappings.CollectionMapping.buildElem entClone(
at org.eclipse.persistence.internal.queries.MapContainerPolicy. buildCloneForValue(
at org.eclipse.persistence.internal.queries.MapContainerPolicy. addNextValueFromIteratorInto(
at org.eclipse.persistence.mappings.CollectionMapping.buildClon eForPartObject(
at org.eclipse.persistence.internal.indirection.UnitOfWorkQuery ValueHolder.buildCloneFor( )
at org.eclipse.persistence.internal.indirection.UnitOfWorkValue Holder.instantiateImpl(
at org.eclipse.persistence.internal.indirection.UnitOfWorkValue Holder.instantiate(
at org.eclipse.persistence.internal.indirection.DatabaseValueHo lder.getValue(
- locked <0x9db159b0> (a org.eclipse.persistence.internal.indirection.UnitOfWorkQuery ValueHolder)
at org.eclipse.persistence.indirection.IndirectMap.buildDelegat e(
at org.eclipse.persistence.indirection.IndirectMap.getDelegate(
- locked <0x9db159e8> (a org.eclipse.persistence.indirection.IndirectMap)
at org.eclipse.persistence.indirection.IndirectMap.get(Indirect
- locked <0x9db159e8> (a org.eclipse.persistence.indirection.IndirectMap)

The postgres connection just says "Idle in transaction." I've tried synchronizing my code all t he way up to the highest level, and I still keep getting this lockup. Is this a bug with eclipselink?


[Updated on: Wed, 16 December 2009 17:43]

Report message to a moderator

Re: Bug with IndirectMap? [message #504176 is a reply to message #503989] Thu, 17 December 2009 15:11 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

Deadlocks are normally difficult issues to diagnose, so if you have an EclipseLink support contract with Oracle, and would recommend to contact technical support.

If you could include what the other threads are blocked on it would be helpful. Also some indication of what you are doing and how to recreate the issue. Does this issue only occur when using a Map?

Some things to try would be,
- disable the cache (shared=false)
- ensure you are using LAZY (indirection) on every relationship

There are also some debug methods on IdentityMapAccessor to print out locks, these may be of some use.

James : Wiki : Book : Blog : Twitter
Previous Topic:keeping a history: who done it?
Next Topic:FetchGroup help
Goto Forum:

Current Time: Tue Jun 19 18:48:44 GMT 2018

Powered by FUDForum. Page generated in 0.02077 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top