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 Emmanuel Bernard, 1 year ago
via Hibernate JIRA by Emmanuel Bernard, 2 years ago
via Stack Overflow by Greg Kopff
, 2 years ago
via Stack Overflow by MahmoudS
, 2 years ago
via GitHub by ewencp
, 1 year ago
This exception has no message.
java.lang.UnsupportedOperationException: 	at java.util.Collections$UnmodifiableCollection.clear(Collections.java:1037)	at org.hibernate.collection.PersistentSet.clear(PersistentSet.java:247)	at org.hibernate.type.CollectionType.replaceElements(CollectionType.java:404)	at org.hibernate.type.CollectionType.replace(CollectionType.java:449)	at org.hibernate.type.TypeFactory.replace(TypeFactory.java:437)	at org.hibernate.event.def.DefaultMergeEventListener.copyValues(DefaultMergeEventListener.java:282)	at org.hibernate.event.def.DefaultMergeEventListener.entityIsPersistent(DefaultMergeEventListener.java:132)	at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:105)	at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:51)	at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:677)	at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:661)	at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:665)	at org.hibernate.test.annotations.manytomany.ManyToManyTest.testUnmodifiableCollection(ManyToManyTest.java:102)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at org.hibernate.test.annotations.TestCase.runTest(TestCase.java:67)	at com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStarter.java:32)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)