[jbosstools-issues] [JBoss JIRA] (JBIDE-8192) Could not instantiate dialect class HibernateException when Database in CC is expanded

Dmitry Geraskov (JIRA) jira-events at lists.jboss.org
Thu Aug 16 11:07:15 EDT 2012


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

Dmitry Geraskov resolved JBIDE-8192.
------------------------------------

    Fix Version/s: 3.4.0.M1
                       (was: LATER)
       Resolution: Out of Date


I made a research here. Now the code is dead. But my guess is to reproduce you had to use Hiberante3.6 or Hiberante 4.0 or if to use jdbc jar which was compiled with newer Dialect class. Anyway it should not appear again as the code is not called anymore.
                
> Could not instantiate dialect class HibernateException when Database in CC is expanded
> --------------------------------------------------------------------------------------
>
>                 Key: JBIDE-8192
>                 URL: https://issues.jboss.org/browse/JBIDE-8192
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Help
>    Affects Versions: 3.1.x
>         Environment: JBDS 4.0.0.CR1 H88, Linux 64
>            Reporter: Jiri Peterka
>            Assignee: Dmitry Geraskov
>             Fix For: 3.4.0.M1
>
>
> For example when creating dynamic web project and hibernate console (for precise steps see JBIDE-8189) when trying to expand HB CC -> Database for the FIRST TIME there  is an HibernateException (see below). After "Rebuild Configuration" everything goes to normal. Exception is not always here but I saw it several times during few days.
> org.hibernate.HibernateException: Could not instantiate dialect class
> at org.hibernate.dialect.resolver.DialectFactory.constructDialect(DialectFactory.java:163)
> at org.hibernate.dialect.resolver.DialectFactory.buildDialect(DialectFactory.java:109)
> at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:146)
> at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2163)
> at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2155)
> at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter$2.execute(LazyDatabaseSchemaWorkbenchAdapter.java:110)
> at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
> at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:72)
> 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)
> Caused by: java.lang.ClassCastException: org.hibernate.dialect.HSQLDialect cannot be cast to org.hibernate.dialect.Dialect
> at org.hibernate.dialect.resolver.DialectFactory.constructDialect(DialectFactory.java:157)
> ... 12 more
> rebuild

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list