merikbest / OnlineShop

:hibiscus: Java Spring Boot web store
169 stars 50 forks source link

Server side Spring boot error #8

Open lllakshay opened 3 years ago

lllakshay commented 3 years ago

2021-03-28 00:51:58.151 INFO 1336 --- [ restartedMain] org.hibernate.tuple.PojoInstantiator : HHH000182: No default (no-argument) constructor for class: com.ecommerce.pojos.Order (class must be instantiated by Interceptor) 2021-03-28 00:51:58.722 WARN 1336 --- [ restartedMain] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.tool.schema.spi.SchemaManagementException: Schema-validation: missing table [hibernate_sequence] 2021-03-28 00:51:58.723 INFO 1336 --- [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated... 2021-03-28 00:51:58.727 INFO 1336 --- [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed. 2021-03-28 00:51:58.730 INFO 1336 --- [ restartedMain] o.apache.catalina.core.StandardService : Stopping service [Tomcat] 2021-03-28 00:51:58.745 INFO 1336 --- [ restartedMain] ConditionEvaluationReportLoggingListener :

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2021-03-28 00:51:58.758 ERROR 1336 --- [ restartedMain] o.s.boot.SpringApplication : Application run failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.tool.schema.spi.SchemaManagementException: Schema-validation: missing table [hibernate_sequence]

sugoinaman commented 6 months ago

your database is either not properly setup or connection isnt successful.

gaurav637 commented 4 months ago

The error message you're encountering indicates that Hibernate is unable to find the hibernate_sequence table, which is required for schema validation. This can happen for several reasons, including a missing or misconfigured database schema.