[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-7985) NoSuchMethodError Trying to explore a DB from Hibernate Configurations

Angus Mezick (JIRA) jira-events at lists.jboss.org
Thu Dec 23 09:55:17 EST 2010


    [ https://issues.jboss.org/browse/JBIDE-7985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12572195#comment-12572195 ] 

Angus Mezick commented on JBIDE-7985:
-------------------------------------

Wow, you guys were busy last night!  

It was the classpath of my project conflicting with the plugin's classpath.

I didn't realize that this classpath also included the libraries in the plugin.  I have removed my entire project (Yes, I am using the newer logging jars) and added back in the jdbc driver jar individually.  I am now able to get into my databases.  I hope this is the correct way to fix this issue and not an ugly hack that will bite me later.

Does the plugin's classpath have to be included here?  Can the error message be improved in some way?


> NoSuchMethodError Trying to explore a DB from Hibernate Configurations
> ----------------------------------------------------------------------
>
>                 Key: JBIDE-7985
>                 URL: https://issues.jboss.org/browse/JBIDE-7985
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Hibernate
>    Affects Versions: 3.2.0.Beta2
>            Reporter: Angus Mezick
>            Assignee: Vitali Yemialyanchyk
>            Priority: Critical
>         Attachments: screenshot-1.jpg
>
>
> What steps will reproduce the problem?
> 1. Create a new hibernate configuration
> 2. Use the "Hibernate Configurations" view to explore the database
> 3. Notice the error popup.
> -- Error Details --
> Date: Wed Dec 22 12:47:27 EST 2010
> Message: An internal error occurred during: "Fetching children of Database".
> Severity: Error
> Product: Eclipse 1.3.1.20100913-1228 (org.eclipse.epp.package.jee.product)
> Plugin: org.eclipse.core.jobs
> Session Data:
> eclipse.buildId=M20100909-0800
> java.version=1.6.0_22
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
> Framework arguments:  -product org.eclipse.epp.package.jee.product
> Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product
> Exception Stack Trace:
> 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 is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list