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

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 org.apache.openjpa.kernel.BrokerImpl.delete(BrokerImpl.java:2496)	at kodo.kernel.KodoBroker.delete(KodoBroker.java:167)