org.apache.openjpa.persistence.ArgumentException: You cannot perform operation delete on detached object "com.git.oms.common.entity.UserSession-com.git.oms.common.entity.UserSession-com.git.oms.common.entity.UserSessionPK[sessionKey=GSDEALER11185529604676, userCode=ABC]". This operation only applies to managed objects. FailedObject: com.git.oms.common.entity.UserSession-com.git.oms.common.entity.UserSession-com.git.oms.common.entity.UserSessionPK[sessionKey=GSDEALER11185529604676, userCode=ABC]

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Oracle Community by 666705, 1 year ago
You cannot perform operation delete on detached object "com.git.oms.common.entity.UserSession-com.git.oms.common.entity.UserSession-com.git.oms.common.entity.UserSessionPK[sessionKey=GSDEALER11185529604676, userCode=ABC]". This operation only
org.apache.openjpa.persistence.ArgumentException: You cannot perform operation delete on detached object "com.git.oms.common.entity.UserSession-com.git.oms.common.entity.UserSession-com.git.oms.common.entity.UserSessionPK[sessionKey=GSDEALER11185529604676, userCode=ABC]". This operation only applies to managed objects. FailedObject: com.git.oms.common.entity.UserSession-com.git.oms.common.entity.UserSession-com.git.oms.common.entity.UserSessionPK[sessionKey=GSDEALER11185529604676, userCode=ABC]
at org.apache.openjpa.kernel.BrokerImpl.newDetachedException(BrokerImpl.java:2543)
at org.apache.openjpa.kernel.BrokerImpl.delete(BrokerImpl.java:2534)
at kodo.kernel.KodoBroker.delete(KodoBroker.java:167)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.