org.hibernate.exception.GenericJDBCException: could not insert: [pip.Xydata]

Coderanch | Baktha Elumalai | 6 years ago
  1. 0

    org.hibernate.exception.GenericJDBCException: could not insert:

    Coderanch | 6 years ago | Baktha Elumalai
    org.hibernate.exception.GenericJDBCException: could not insert: [pip.Xydata]
  2. 0

    GitHub comment 1060#219345802

    GitHub | 7 months ago | mitsuba-clover
    java.sql.SQLException: You can't operate on a closed Connection!!!
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.sql.SQLException

      You can't operate on a closed connection!!!

      at com.mchange.v2.c3p0.impl.C3P0PooledConnection$ProxyConnectionInvocationHandler.invoke()
    2. c3p0:JDBC DataSources/Resource Pools
      $Proxy112.prepareStatement
      1. com.mchange.v2.c3p0.impl.C3P0PooledConnection$ProxyConnectionInvocationHandler.invoke(C3P0PooledConnection.java:952)
      2. com.mchange.v2.c3p0.impl.$Proxy112.prepareStatement(Unknown Source)
      2 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:597)
      3 frames
    4. Hibernate
      GetGeneratedKeysHelper.prepareStatement
      1. org.hibernate.util.GetGeneratedKeysHelper.prepareStatement(GetGeneratedKeysHelper.java:49)
      1 frame
    5. Hibernate
      AbstractEntityPersister.insert
      1. org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:495)
      2. org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:94)
      3. org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate.prepare(IdentityGenerator.java:69)
      4. org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:30)
      5. org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2158)
      6. org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2638)
      6 frames
    6. Hibernate
      EntityIdentityInsertAction.execute
      1. org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:48)
      1 frame
    7. Hibernate
      ActionQueue.execute
      1. org.hibernate.engine.ActionQueue.execute(ActionQueue.java:250)
      1 frame
    8. Hibernate
      SessionImpl.save
      1. org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:298)
      2. org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:181)
      3. org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:107)
      4. org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:187)
      5. org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:33)
      6. org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
      7. org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:27)
      8. org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
      9. org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:535)
      10. org.hibernate.impl.SessionImpl.save(SessionImpl.java:523)
      11. org.hibernate.impl.SessionImpl.save(SessionImpl.java:519)
      11 frames
    9. tcplistener
      ModuleHandler.run
      1. tcplistener.Alldatabase.Database(Alldatabase.java:155)
      2. tcplistener.ModuleHandler.run(ModuleHandler.java:181)
      2 frames
    10. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:619)
      1 frame