Advertisement
Qatya

Untitled

Sep 10th, 2021
793
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.45 KB | None | 0 0
  1. Hibernate: delete from facility where id=?
  2. 2021-09-11 02:43:39.384  WARN 7 --- [nio-8080-exec-6] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: 23503
  3. 2021-09-11 02:43:39.384 ERROR 7 --- [nio-8080-exec-6] o.h.engine.jdbc.spi.SqlExceptionHelper   : ERROR: update or delete on table "facility" violates foreign key constraint "fk_borehole_facility_id" on table "borehole"
  4.   Detail: Key (id)=(117) is still referenced from table "borehole".
  5. 2021-09-11 02:43:39.384  INFO 7 --- [nio-8080-exec-6] o.h.e.j.b.internal.AbstractBatchImpl     : HHH000010: On release of batch it still contained JDBC statements
  6. 2021-09-11 02:43:39.388 ERROR 7 --- [nio-8080-exec-6] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a]; constraint [fk_borehole_facility_id]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement] with root cause
  7.  
  8. org.postgresql.util.PSQLException: ERROR: update or delete on table "facility" violates foreign key constraint "fk_borehole_facility_id" on table "borehole"
  9.   Detail: Key (id)=(117) is still referenced from table "borehole".
  10.         at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2505) ~[postgresql-42.2.9.jar!/:42.2.9]
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement