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 Alexander Pinske, 1 year ago
java.util.HashSet cannot be cast to org.hibernate.collection.spi.PersistentCollection
via Spring JIRA by Petar Tahchiev, 1 year ago
via Spring JIRA by Petar Tahchiev, 2 years ago
java.lang.ClassCastException: java.util.HashSet cannot be cast to org.hibernate.collection.spi.PersistentCollection	at org.hibernate.event.internal.FlushVisitor.processCollection(FlushVisitor.java:39)	at org.hibernate.event.internal.AbstractVisitor.processValue(AbstractVisitor.java:104)	at org.hibernate.event.internal.AbstractVisitor.processValue(AbstractVisitor.java:65)	at org.hibernate.event.internal.AbstractVisitor.processEntityPropertyValues(AbstractVisitor.java:59)	at org.hibernate.event.internal.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:155)	at org.hibernate.event.internal.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:216)	at org.hibernate.event.internal.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:85)	at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:38)	at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1397)	at eu.pinske.test.ThingTest.test(ThingTest.java:30)