• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Database Save error

 
Namrita Mohanty
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"2010-10-14 10:55:14,750 WARN [http-8080-1] org.hibernate.util.JDBCExceptionReporter:357 - SQL Error: 1, SQLState: 23000
2010-10-14 10:55:14,750 ERROR [http-8080-1] org.hibernate.util.JDBCExceptionReporter:454 - ORA-00001: unique constraint (KUNALB.SYS_C0071113) violated

2010-10-14 10:55:14,750 WARN [http-8080-1] org.hibernate.util.JDBCExceptionReporter:357 - SQL Error: 1, SQLState: 23000
2010-10-14 10:55:14,750 ERROR [http-8080-1] org.hibernate.util.JDBCExceptionReporter:454 - ORA-00001: unique constraint (KUNALB.SYS_C0071113) violated

2010-10-14 10:55:14,750 ERROR [http-8080-1] org.hibernate.event.def.AbstractFlushingEventListener:532 - Could not synchronize database state with session
org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:94)"


The above error is thrown though I do not have the record that am trying to save in the Database.

Any suggestions?
 
Sridhar Santhanakrishnan
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unique constraint violation means just that - there is already a value in that column. So check what column is constrained by KUNALB.SYS_C0071113 and see if you already have the same value.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic