[
https://issues.jboss.org/browse/JBIDE-8027?page=com.atlassian.jira.plugin...
]
Jiri Peterka commented on JBIDE-8027:
-------------------------------------
Vitali there are stacktraces for both cases. I guess you have difficulties to replicate
this. I'm unable to replicate unless there are many various projects in workspace as
you can see at screencast, so it's not a general case.
org.hibernate.console.HibernateConsoleRuntimeException: Could not create JPA based
Configuration
at
org.hibernate.console.ConfigurationFactory.buildJPAConfiguration(ConfigurationFactory.java:242)
at
org.hibernate.console.ConfigurationFactory.buildConfiguration(ConfigurationFactory.java:172)
at
org.hibernate.console.ConfigurationFactory.createConfiguration(ConfigurationFactory.java:94)
at org.hibernate.console.ConsoleConfiguration$3.execute(ConsoleConfiguration.java:213)
at
org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:72)
at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:210)
at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:166)
at
org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:40)
at
org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:100)
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.cfg.AnnotationConfiguration cannot
be cast to org.hibernate.cfg.Configuration
at
org.hibernate.console.ConfigurationFactory.buildJPAConfiguration(ConfigurationFactory.java:236)
... 12 more
org.hibernate.console.HibernateConsoleRuntimeException: Persistence unit not found:
'null'.
at
org.hibernate.console.ConfigurationFactory.buildJPAConfiguration(ConfigurationFactory.java:233)
at
org.hibernate.console.ConfigurationFactory.buildConfiguration(ConfigurationFactory.java:172)
at
org.hibernate.console.ConfigurationFactory.createConfiguration(ConfigurationFactory.java:94)
at org.hibernate.console.ConsoleConfiguration$3.execute(ConsoleConfiguration.java:213)
at
org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:72)
at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:210)
at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:166)
at
org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:40)
at
org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:100)
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)
ClassCastException during work in Hibernate Configurations View
---------------------------------------------------------------
Key: JBIDE-8027
URL:
https://issues.jboss.org/browse/JBIDE-8027
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Hibernate
Affects Versions: 3.2.0.Beta2
Reporter: Maxim Areshkau
Assignee: Vitali Yemialyanchyk
Priority: Critical
Fix For: 3.2.0.CR1
Attachments: hib-ex.png, hib-ex2.png, hib.log,
hibernate-clast-cast-exception.png, jpa project creation 1.jpg, jpa project creation
2.jpg, mareshkau-smb-search.tar
#1 import attached project into Workspace;
#2 switch to hibernate perspective;
#3 open hibernate configurations
#4 try to close and open configuration couple times.
Class Cast Error will occur.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira