"IllegalArgumentException: attempt to create saveOrUpdate event with null entity" in Hibernate
Issue
-
Encountering the exception below when saving an entity
java.lang.IllegalArgumentException: attempt to create saveOrUpdate event with null entity at org.hibernate.event.SaveOrUpdateEvent.<init>(SaveOrUpdateEvent.java:63) at org.hibernate.event.SaveOrUpdateEvent.<init>(SaveOrUpdateEvent.java:46) at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:529) at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:525) at org.my.co.MyDAO.createDAO(MyDAO.java:99) ...
Environment
- Red Hat JBoss Enterprise Application Platform (EAP) 5
- Red Hat JBoss Service Oriented Architecture Platform (SOAP) 5
- Hibernate 3
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
