org.hibernate.exception.GenericJDBCException: could not insert: [org.cn.com.wceb.entity.Order]

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 daimami.com by Unknown author, 1 year ago
via Stack Overflow by AdiB
, 2 years ago
could not initialize a collection: [.......]
via Spring JIRA by Vitaliy Geraymovych, 1 year ago
could not initialize a collection: [blah#1]
via Spring JIRA by Vitaliy Geraymovych, 1 year ago
could not initialize a collection: [blah#1]
via Pentaho BI Platform Tracking by gunter rombauts, 1 year ago
could not update: [com.pentaho.repository.dbbased.solution.RepositoryFile#c6107913-ca68-11dc-98dc-5d7c50ee1b1e]
via Pentaho BI Platform Tracking by gunter rombauts, 1 year ago
could not update: [com.pentaho.repository.dbbased.solution.RepositoryFile#c6107913-ca68-11dc-98dc-5d7c50ee1b1e]
org.hibernate.exception.GenericJDBCException: could not insert: [org.cn.com.wceb.entity.Order]
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:114)
at org.hibernate.exception.Helper.convert(JDBCExceptionHelper.java:66)
at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:64)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2176)
at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:71)
at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:321)
at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:204)
at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:130)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:210)
at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:56)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:195)
at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:50)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:93)
at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:563)
at org.hibernate.impl.SessionImpl.save(SessionImpl.java:551)
at org.hibernate.impl.SessionImpl.save(SessionImpl.java:547)
at org.cn.com.wceb.test.TestService.saveCustomerAndOrder(TestService.java:25)
at org.cn.com.wceb.test.TestService.main(TestService.java:31)

Users with the same issue

4 times, 1 year ago
551 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.