Anuj Kumar
Sep 5, 2018 · 1 min read

Hello,

Thanks for this valuable tutorial.

I faced one problem at time of “Register new user”

Please help me to resolve the problem.

userRole Set sucessfully.$2a$10$tJfyS/qVNULBLMybh.lZQe9S7ZKHyrAZF9GFn5a3oiHBeU/G/DDP6
Hibernate: select next_val as id_val from hibernate_sequence for update
Hibernate: update hibernate_sequence set next_val= ? where next_val=?
Hibernate: insert into user (active, email, last_name, name, user_id) values (?, ?, ?, ?, ?)
2018–09–05 12:51:11.988 WARN 4676 — — [nio-8080-exec-5] o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Error: 1364, SQLState: HY000
2018–09–05 12:51:11.988 ERROR 4676 — — [nio-8080-exec-5] o.h.engine.jdbc.spi.SqlExceptionHelper : Field ‘password’ doesn’t have a default value
2018–09–05 12:51:11.990 ERROR 4676 — — [nio-8080-exec-5] o.h.i.ExceptionMapperStandardImpl : HHH000346: Error during managed flush [org.hibernate.exception.GenericJDBCException: could not execute statement]
2018–09–05 12:51:12.006 ERROR 4676 — — [nio-8080-exec-5] 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.orm.jpa.JpaSystemException: could not execute statement; nested exception is org.hibernate.exception.GenericJDBCException: could not execute statement] with root cause

java.sql.SQLException: Field ‘password’ doesn’t have a default value