facebook

Errors Occured during Executing

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #254366 Reply

    vamsi_t
    Member

    Exception in thread “main” org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
    at org.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java:74)
    at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
    at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:181)
    at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:226)
    at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:136)
    at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:274)
    at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
    at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:730)
    at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:324)
    at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:86)
    at org.student.First.main(First.java:22)
    Caused by: java.sql.BatchUpdateException: Duplicate key or integrity constraint violation message from server: “Duplicate entry ’45’ for key 1”
    at com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:1540)
    at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:57)
    at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:174)
    … 8 more

    any help would be appreciated..!

    thanks

    #254367 Reply

    vamsi_t
    Member

    Sorry for the Inconvenience ,I have found the Error and Solved it. thanks

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Errors Occured during Executing

You must be logged in to post in the forum log in