org.hibernate.exception.GenericJDBCException

could not insert: [pip.Xydata]


Solutions on the web1372

Solution icon of coderanch
via Coderanch by Baktha Elumalai, 1 year ago
could not insert: [pip.Xydata]

Solution icon of web
could not insert: [pip.Xydata]

Solution icon of coderanch
via Coderanch by naresh kumar gupta kapilavai, 8 months ago
could not insert: [my.pack.Book]

Solution icon of coderanch
via Coderanch by saurav sarkar, 8 months ago
could not insert: [roseindia.tutorial.hibernate.Book]

Solution icon of coderanch
could not insert: [test.Fm4Featuress]

Solution icon of github
could not insert: [com.xpn.xwiki.doc.XWikiDeletedDocument]

Solution icon of googlegroups
via Google Groups by Chris Haus, 1 year ago
could not insert: [com.doculibre.constellio.entities.ParsedContent]

Solution icon of googlegroups
via Google Groups by grimmpat, 1 year ago
could not insert: [models.Service]

Solution icon of jboss
via JBoss Issue Tracker by Robin Caldairou, 1 year ago
could not insert: [org.apache.ode.dao.jpa.bpel.MessageDAOImpl]

Solution icon of hibernate
via Hibernate JIRA by Matt Young, 1 year ago
could not insert: [org.hibernate.example.entity.Guitar]

Stack trace

  • org.hibernate.exception.GenericJDBCException: could not insert: [pip.Xydata] at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103) at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:40) at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2158) at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2638) at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:48) at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:250) at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:298) at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:181) at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:107) at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:187) at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:33) at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:172) at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:27) at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70) at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:535) at org.hibernate.impl.SessionImpl.save(SessionImpl.java:523) at org.hibernate.impl.SessionImpl.save(SessionImpl.java:519) at tcplistener.Alldatabase.Database(Alldatabase.java:155) at tcplistener.ModuleHandler.run(ModuleHandler.java:181) at java.lang.Thread.run(Thread.java:619) Caused by: java.sql.SQLException: You can't operate on a closed connection!!! at com.mchange.v2.c3p0.impl.C3P0PooledConnection$ProxyConnectionInvocationHandler.invoke(C3P0PooledConnection.java:952) at com.mchange.v2.c3p0.impl.$Proxy112.prepareStatement(Unknown Source) at sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.hibernate.util.GetGeneratedKeysHelper.prepareStatement(GetGeneratedKeysHelper.java:49) at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:495) at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:94) at org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate.prepare(IdentityGenerator.java:69) at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:30) ... 18 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.