When setting up the hibernate console file (Hibernate tool), I was able to successfully ping my database. So I assume that my driver version is ok.
p>
After setting up the hibernate console file, when I try to generate the Hibernate Reverse Engineering file (reveng.xml), I receive the following error –
An internal error occurred during: "Fetching children of Database".
I can see the following stack trace in the error log of STS –
java.lang.NoSuchMethodError : org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V
at org .apache.commons.logging.impl.SLF4JLocationAwareLog.debug(SLF4JLocationAwareLog.java:133)
at org.hibernate.cfg.reveng.dialect.JDBCMetaDataDialect.getTables(JDBCMetaDataDialect.java:26)
at org .hibernate.cfg.reveng.JDBCReader.processTables(JDBCReader.java:476)
at org.hibernate.cfg.reveng.JDBCReader.readDatabaseSchema(JDBCReader.java:74)< br /> at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter$2.execute(LazyDatabaseSchemaWorkbenchAdapter.java:126)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:107)
at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter.readDatabaseSchema(LazyDatabaseSchemaWorkbenchAdapter.java:115)
at org .hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter.getChildren(LazyDatabaseSchemaWorkbenchAdapter.java:65)
at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:106)
at org .eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:235)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
I am using these steps to use the Hibernate tool described in this link.
Thank you very much Ren Any help or pointers to solve this problem. Thank you.
UPDATE
I went to STS 3.2.0 and installed JBoss Tools 4.0.0
I created I made a simple maven to quickly start the project and follow all the steps mentioned in the link
In this setting, I can successfully generate the DAO class of the entity & database table. I also did not restart the STS. It worked very well in the first attempt.
This applies to MySQL 5.5 and Oracle 11g.
commons-logging
commons-logging
I’m talking about creating a new project from scratch and I encountered this problem at the same point.
I found very little content on this issue, which seems strange to me, just create a new project with hibernate and copy it easily.
p>
Of course I need to record, so I plan to solve this problem by recording. I will reply when I post. If you find a feasible solution, can you post? Thanks!
I am using Eclipse STS 3.1.0 and Hibernate Tools 3.6.0. I am trying to connect to a MySQL 5.5 database to generate my DAO classes. I am using the MySQL driver mysql-connector-java-5.1.21.jar
When setting up the hibernate console file (Hibernate tool), I can successfully ping my database. So I assume that my driver version is not Problem.
After setting up the hibernate console file, when I try to generate the Hibernate Reverse Engineering file (reveng.xml), I receive the following error –
An internal error occurred during: "Fetching children of Database".
I can see the following stack trace in the error log of STS –
java .lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V
at org.apache.commons.logging.impl.SLF4JLocationAwareLog.debug(SLF4JLocationAwareLog.java:133)
at org.hibernate.cfg.reveng.dialect.JDBCMetaDataDialect.getTables(JDBCMetaDataDialect.java:26)
at org.hibernate.cfg.reveng.JDBCReader.processTables(JDBCReader.java:476)
at org.hibernate.cfg.reveng.JDBCReader.readDatabaseSchema(JDBCReader.java:74)
at org .hib ernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter$2.execute(LazyDatabaseSchemaWorkbenchAdapter.java:126)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
at org.hibernate .console.ConsoleConfiguration.execute(ConsoleConfiguration.java:107)
at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter.readDatabaseSchema(LazyDatabaseSchemaWorkbenchAdapter.java:115)
at org.hibernate.eclipse.console .workbench.LazyDatabaseSchemaWorkbenchAdapter.getChildren(LazyDatabaseSchemaWorkbenchAdapter.java:65)
at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:106)
at org.eclipse.ui.progress .DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:235)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
I am using these steps to Use the Hibernate tool described in this link.
Any help or pointers to solve this problem are greatly appreciated. Thank you.
UPDATE
I went to STS 3.2.0 and installed JBoss Tools 4.0.0
I created a simple maven quick start project and followed the link mentioned
In this setting, I can successfully generate DAO classes for entity & database tables. I also did not restart STS. It worked very well in the first attempt.
This applies to MySQL 5.5 and Oracle 11g.
I have this problem twice now. In the past two weeks… I had to Moved everything to a known machine, so I encountered it again. I fixed it for the first time by literally removing references to public logging anywhere in pom.xml. I’m not sure if you Use Maven, but I have solved this problem for it before.
WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 4473 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC