• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Database Save error

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic