[jbosstools-issues] [JBoss JIRA] (JBIDE-14305) Error popup when runing schema ddl with Hibernate Configurations

Andrei Ivanov (JIRA) issues at jboss.org
Tue Sep 16 07:48:02 EDT 2014


     [ https://issues.jboss.org/browse/JBIDE-14305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrei Ivanov updated JBIDE-14305:
----------------------------------
    Attachment: workspace.zip


I've attached the workspace directly, to have access to the configs too.
It contains the project as well.

Switching to Hibernate 4.0 (and persistence.xml to 2.0) reproduces the initial error:
{noformat}
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.info(SLF4JLocationAwareLog.java:159)
	at org.hibernate.tool.Version.<clinit>(Version.java:15)
	at org.hibernate.tool.hbm2x.TemplateHelper.setupContext(TemplateHelper.java:215)
	at org.hibernate.tool.hbm2x.AbstractExporter.setupContext(AbstractExporter.java:147)
	at org.hibernate.tool.hbm2x.POJOExporter.setupContext(POJOExporter.java:44)
	at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:94)
	at org.jboss.tools.hibernate.proxy.ExporterProxy.start(ExporterProxy.java:70)
	at org.hibernate.eclipse.console.common.ConsoleExtension$1.execute(ConsoleExtension.java:219)
	at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
	at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:108)
	at org.hibernate.eclipse.console.common.ConsoleExtension.runExporters(ConsoleExtension.java:182)
	at org.hibernate.eclipse.console.common.ConsoleExtension.launchExporters(ConsoleExtension.java:110)
	at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.launch(CodeGenerationLaunchDelegate.java:266)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:883)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:731)
	at org.jboss.tools.hibernate.jpt.ui.wizard.GenerateEntitiesWizard$1.runInWorkspace(GenerateEntitiesWizard.java:98)
	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
{noformat}

> Error popup when runing  schema ddl with Hibernate Configurations
> -----------------------------------------------------------------
>
>                 Key: JBIDE-14305
>                 URL: https://issues.jboss.org/browse/JBIDE-14305
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: hibernate
>            Reporter: labdoui labdoui
>            Assignee: Koen Aers
>            Priority: Critical
>             Fix For: 4.2.0.CR2
>
>         Attachments: workspace.zip
>
>
> Using Hibernate 4, and slf4j 1.7.2, I can't runing my ddl schema
> to reproduce the problem just explore the database from hibernate console 
> 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.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter$2.execute(LazyDatabaseSchemaWorkbenchAdapter.java:116)
> at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
> at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter.readDatabaseSchema(LazyDatabaseSchemaWorkbenchAdapter.java:107)
> at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter.getChildren(LazyDatabaseSchemaWorkbenchAdapter.java:63)
> 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)



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the jbosstools-issues mailing list