Home > Back-end >  Hhibernate configuration problem
Hhibernate configuration problem

Time:10-04


Java. Lang. ExceptionInInitializerError
At com. Itheima. Service. Impl. CustomerServiceImpl. A findAllCustomer (CustomerServiceImpl. Java: 29)
At com. Itheima. Test. ICustomerDaoTest. TestFindAllCustomer (ICustomerDaoTest. Java: 18)
At sun. Reflect. NativeMethodAccessorImpl. Invoke0 (Native Method)
At sun. Reflect. NativeMethodAccessorImpl. Invoke (NativeMethodAccessorImpl. Java: 62)
At sun. Reflect. DelegatingMethodAccessorImpl. Invoke (43) DelegatingMethodAccessorImpl. Java:
The at Java. Lang. Reflect. Method. Invoke (498) Method. The Java:
The at org. Junit. Runners. Model. FrameworkMethod $1. RunReflectiveCall (FrameworkMethod. Java: 47)
The at org. Junit. Internal. Runners. Model. ReflectiveCallable. Run (ReflectiveCallable. Java: 12)
The at org. Junit. Runners. Model. FrameworkMethod. InvokeExplosively (FrameworkMethod. Java: 44)
The at org. Junit. Internal. Runners. Statements. InvokeMethod. Evaluate (InvokeMethod. Java: 17)
The at org. Junit. Runners. ParentRunner. RunLeaf (ParentRunner. Java: 271)
The at org. Junit. Runners. BlockJUnit4ClassRunner. RunChild (BlockJUnit4ClassRunner. Java: 70)
The at org. Junit. Runners. BlockJUnit4ClassRunner. RunChild (BlockJUnit4ClassRunner. Java: 50)
The at org. Junit. Runners. ParentRunner $3. The run (ParentRunner. Java: 238)
The at org. Junit. Runners. ParentRunner $1. The schedule (ParentRunner. Java: 63)
The at org. Junit. Runners. ParentRunner. RunChildren (ParentRunner. Java: 236)
The at org. Junit. Runners. ParentRunner. Access the $000 (ParentRunner. Java: 53)
At org. Junit. Runners. ParentRunner $2. The evaluate (ParentRunner. Java: 229)
The at org. Junit. Runners. ParentRunner. Run (ParentRunner. Java: 309)
At org. Eclipse JDT. Internal. Takeup. Runner. JUnit4TestReference. Run (JUnit4TestReference. Java: 50)
At org. Eclipse JDT. Internal. Junit. Runner. TestExecution. Run (TestExecution. Java: 38)
At org. Eclipse JDT. Internal. Junit. Runner. RemoteTestRunner. RunTests (RemoteTestRunner. Java: 467)
At org. Eclipse JDT. Internal. Junit. Runner. RemoteTestRunner. RunTests (RemoteTestRunner. Java: 683)
At org. Eclipse JDT. Internal. Junit. Runner. RemoteTestRunner. Run (390) RemoteTestRunner. Java:
At org. Eclipse JDT. Internal. Junit. Runner. RemoteTestRunner. Main (197) RemoteTestRunner. Java:
Under Caused by: org. Hibernate. Exception. SQLGrammarException: Error creating DatabaseInformation for schema migration
The at org. Hibernate. Exception. Internal. SQLExceptionTypeDelegate. Convert (SQLExceptionTypeDelegate. Java: 63)
The at org. Hibernate. Exception. Internal. StandardSQLExceptionConverter. Convert (StandardSQLExceptionConverter. Java: 42)
The at org. Hibernate. Engine. JDBC. Spi. SqlExceptionHelper. Convert (SqlExceptionHelper. Java: 109)
The at org. Hibernate. Engine. JDBC. Spi. SqlExceptionHelper. Convert (SqlExceptionHelper. Java: 95)
The at org. Hibernate. Tool. Hbm2ddl. SchemaUpdate. Execute (SchemaUpdate. Java: 127)
The at org. Hibernate. Tool. Hbm2ddl. SchemaUpdate. Execute (SchemaUpdate. Java: 101)
The at org. Hibernate. Internal. SessionFactoryImpl. & lt; init> (SessionFactoryImpl. Java: 470)
The at org. Hibernate. Boot. Internal. SessionFactoryBuilderImpl. Build (SessionFactoryBuilderImpl. Java: 444)
At org. Hibernate. CFG. Configuration. BuildSessionFactory (708) Configuration. Java:
At org. Hibernate. CFG. Configuration. BuildSessionFactory (724) Configuration. Java:
At com. Itheima. Utils. HibernateUtil. & lt; clinit> (HibernateUtil. Java: 23)
. 25 more
Under Caused by: Java. SQL. SQLSyntaxErrorException: Table 'sysibm. Syssequences' doesn' t exist
At com. Mysql. Cj. JDBC. Exceptions. SQLError. CreateSQLException (SQLError. Java: 120)
At com. Mysql. Cj. JDBC. Exceptions. SQLError. CreateSQLException (SQLError. Java: 97)
At com. Mysql. Cj. JDBC. Exceptions. SQLExceptionsMapping. TranslateException (SQLExceptionsMapping. Java: 122)
At com. Mysql. Cj. JDBC. StatementImpl. ExecuteQuery (StatementImpl. Java: 1200)
The at org. Hibernate. Tool. Schema. Extract. Internal. SequenceInformationExtractorLegacyImpl. ExtractMetadata (SequenceInformationExtractorLegacyImpl. Java: 42)
The at org. Hibernate. Tool. Schema. Extract. Internal. DatabaseInformationImpl. InitializeSequences (DatabaseInformationImpl. Java: 64)
The at org. Hibernate. Tool. Schema. Extract. Internal. DatabaseInformationImpl. & lt; init> (DatabaseInformationImpl. Java: 60)
The at org. Hibernate. Tool. Hbm2ddl. SchemaUpdate. Execute (SchemaUpdate. Java: 123)
. 31 more

Using hibernate's jpa automatically create a table, but has been reported the error
  • Related