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 Hibernate JIRA by Stig Runar Vangen, 1 year ago
org.hibernate.action.internal.DelayedPostInsertIdentifier cannot be cast to java.lang.Long
via Hibernate JIRA by Stig Runar Vangen, 2 years ago
org.hibernate.action.internal.DelayedPostInsertIdentifier cannot be cast to java.lang.Long
via Stack Overflow by Lucas
, 2 years ago
via Stack Overflow by Binoy Babu
, 2 years ago
java.lang.String cannot be cast to java.lang.Long
java.lang.ClassCastException: org.hibernate.action.internal.DelayedPostInsertIdentifier cannot be cast to java.lang.Long at java.lang.Long.compareTo(Long.java:54) at org.hibernate.internal.util.compare.ComparableComparator.compare(ComparableComparator.java:41) at org.hibernate.internal.util.compare.ComparableComparator.compare(ComparableComparator.java:36) at org.hibernate.type.AbstractStandardBasicType.compare(AbstractStandardBasicType.java:225) at org.hibernate.action.internal.CollectionAction.compareTo(CollectionAction.java:172) at org.hibernate.engine.spi.ExecutableList.add(ExecutableList.java:222) at org.hibernate.engine.spi.ActionQueue.addAction(ActionQueue.java:250) at org.hibernate.event.internal.AbstractFlushingEventListener.flushCollections(AbstractFlushingEventListener.java:274) at org.hibernate.event.internal.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:103) at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:55) at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1222)