panagiotappl / kinderplan

0 stars 1 forks source link

Add events detailed page #14

Closed Panos512 closed 7 years ago

Panos512 commented 7 years ago

Issues with add event:

error:

could not execute statement; SQL [n/a]; constraint [uk5ky4frjmcobbiayt5jyx53mff]; 
nested exception is org.hibernate.exception.ConstraintViolationException: 
could not execute statement

and on the backend:

Hibernate: insert into categories (category) values (?)
2017-06-17 19:40:51.296  WARN 31929 --- [nio-8080-exec-1] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: 23505
2017-06-17 19:40:51.297 ERROR 31929 --- [nio-8080-exec-1] o.h.engine.jdbc.spi.SqlExceptionHelper   : ERROR: duplicate key value violates unique constraint "uk5ky4frjmcobbiayt5jyx53mff"
  Detail: Key (category)=(team) already exists.
2017-06-17 19:40:51.329 ERROR 31929 --- [nio-8080-exec-1] 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 [uk5ky4frjmcobbiayt5jyx53mff]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement] with root cause