0 Replies Latest reply: May 14, 2014 1:42 AM by pranahata RSS

    "java.lang.InterruptedException: sleep interrupted" | when copying object

    pranahata

      Hi,

       

      We are randomly getting the below exception when copying an object (via copygroups).

       

      Does anyone understand the reason for this exception?

       

      java.lang.InterruptedException: sleep interrupted

        at java.lang.Thread.sleep(Native Method)

        at org.eclipse.persistence.internal.helper.ConcurrencyManager.releaseDeferredLock(ConcurrencyManager.java:445)

        at org.eclipse.persistence.internal.identitymaps.CacheKey.releaseDeferredLock(CacheKey.java:424)

        at org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:923)

        at org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:631)

        at org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildObjectsInto(ObjectBuilder.java:1177)

        at org.eclipse.persistence.queries.ReadAllQuery.executeObjectLevelReadQuery(ReadAllQuery.java:497)

        at org.eclipse.persistence.queries.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:1155)

        at org.eclipse.persistence.queries.DatabaseQuery.execute(DatabaseQuery.java:899)

        at org.eclipse.persistence.queries.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:1114)

        at org.eclipse.persistence.queries.ReadAllQuery.execute(ReadAllQuery.java:402)

        at org.eclipse.persistence.internal.sessions.AbstractSession.internalExecuteQuery(AbstractSession.java:3207)

        at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1797)

        at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1779)

        at org.eclipse.persistence.internal.indirection.QueryBasedValueHolder.instantiate(QueryBasedValueHolder.java:115)

        at org.eclipse.persistence.internal.indirection.QueryBasedValueHolder.instantiate(QueryBasedValueHolder.java:102)

        at org.eclipse.persistence.internal.indirection.DatabaseValueHolder.getValue(DatabaseValueHolder.java:88)

        at org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder.instantiateImpl(UnitOfWorkValueHolder.java:165)

        at org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder.instantiate(UnitOfWorkValueHolder.java:226)

        at org.eclipse.persistence.internal.indirection.DatabaseValueHolder.getValue(DatabaseValueHolder.java:88)

        at org.eclipse.persistence.indirection.IndirectList.buildDelegate(IndirectList.java:252)

        at org.eclipse.persistence.indirection.IndirectList.getDelegate(IndirectList.java:423)

        at org.eclipse.persistence.indirection.IndirectList$1.<init>(IndirectList.java:551)

        at org.eclipse.persistence.indirection.IndirectList.listIterator(IndirectList.java:550)

        at org.eclipse.persistence.indirection.IndirectList.iterator(IndirectList.java:514)

        at org.eclipse.persistence.internal.queries.CollectionContainerPolicy.iteratorFor(CollectionContainerPolicy.java:150)

        at org.eclipse.persistence.mappings.CollectionMapping.buildCopy(CollectionMapping.java:256)

        at org.eclipse.persistence.internal.descriptors.ObjectBuilder.copyObject(ObjectBuilder.java:2479)

        at org.eclipse.persistence.internal.sessions.AbstractSession.copyInternal(AbstractSession.java:1089)

        at org.eclipse.persistence.mappings.CollectionMapping.buildCopy(CollectionMapping.java:262)

        at org.eclipse.persistence.internal.descriptors.ObjectBuilder.copyObject(ObjectBuilder.java:2479)

        at org.eclipse.persistence.internal.sessions.AbstractSession.copyInternal(AbstractSession.java:1089)

        at org.eclipse.persistence.mappings.CollectionMapping.buildCopy(CollectionMapping.java:262)

        at org.eclipse.persistence.internal.descriptors.ObjectBuilder.copyObject(ObjectBuilder.java:2479)

        at org.eclipse.persistence.internal.sessions.AbstractSession.copyInternal(AbstractSession.java:1089)

        at org.eclipse.persistence.mappings.CollectionMapping.buildCopy(CollectionMapping.java:262)

        at org.eclipse.persistence.internal.descriptors.ObjectBuilder.copyObject(ObjectBuilder.java:2479)

        at org.eclipse.persistence.internal.sessions.AbstractSession.copyInternal(AbstractSession.java:1089)

        at org.eclipse.persistence.mappings.ObjectReferenceMapping.buildCopy(ObjectReferenceMapping.java:131)

        at org.eclipse.persistence.internal.descriptors.ObjectBuilder.copyObject(ObjectBuilder.java:2479)

        at org.eclipse.persistence.internal.sessions.AbstractSession.copyInternal(AbstractSession.java:1089)

        at org.eclipse.persistence.internal.sessions.AbstractSession.copy(AbstractSession.java:1073)

        at org.eclipse.persistence.internal.jpa.EntityManagerImpl.copy(EntityManagerImpl.java:2797)

        at com.anahata.yam.service.media.AbstractDomainService.copy(AbstractDomainService.java:140)

        at com.anahata.yam.service.media.AbstractDomainService.copy(AbstractDomainService.java:121)

        at com.anahata.yam.service.media.AbstractDomainService.copyFull(AbstractDomainService.java:107)

        at com.tbi.bms.service.InspectionServiceImpl.find(InspectionServiceImpl.java:224)