[JBoss JIRA] Created: (JBIDE-9536) JPA: take into account hibernate @Column#name or @Columns(*) on attribute column validation
by Dmitry Geraskov (JIRA)
JPA: take into account hibernate @Column#name or @Columns(*) on attribute column validation
-------------------------------------------------------------------------------------------
Key: JBIDE-9536
URL: https://issues.jboss.org/browse/JBIDE-9536
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: Hibernate
Affects Versions: 3.3.0.M2
Reporter: Dmitry Geraskov
Assignee: Dmitry Geraskov
Fix For: 3.3.0.M3
Test Case:
1. Create a database table x with column columnOne
2. Create enity for the table with attribute columnTwo
Connect dtp connection and check error near the field appeared (Column 'columnTwo' cannot be resolved on table 'x')
3. Add @javax.persistence.Column(name="columnOne")
OBSERVE: error should disappear
4. change annotation to @org.hibernate.Column(name="columnOne")
FAILURE: error appear again
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 12 months
[JBoss JIRA] (JBIDE-10497) "could not instantiate RegionFactory" due to CNFE
by Juergen Zimmermann (Created) (JIRA)
"could not instantiate RegionFactory" due to CNFE
-------------------------------------------------
Key: JBIDE-10497
URL: https://issues.jboss.org/browse/JBIDE-10497
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: hibernate
Affects Versions: 3.3.0.M4, 3.3.0.M5
Reporter: Juergen Zimmermann
Assignee: Dmitry Geraskov
I upgraded from M4 to M5a using http://download.jboss.org/jbosstools/builds/development/3.3.0.M5a.core/20.... When opening the "Session Factory" in the Hibernate Console I get the following stacktrace:
!ENTRY org.hibernate.eclipse.console 4 4 2011-12-16 10:24:32.898
!MESSAGE Problems while creating sessionfactory
!SUBENTRY 1 org.hibernate.eclipse.console 4 150 2011-12-16 10:24:32.898
!MESSAGE org.hibernate.HibernateException: could not instantiate RegionFactory []
!STACK 0
org.hibernate.HibernateException: could not instantiate RegionFactory []
at org.hibernate.cfg.SettingsFactory.createRegionFactory(SettingsFactory.java:432)
at org.hibernate.cfg.AnnotationBinder.determineCacheConcurrencyStrategy(AnnotationBinder.java:1039)
at org.hibernate.cfg.AnnotationBinder.buildCacheMock(AnnotationBinder.java:1009)
at org.hibernate.cfg.AnnotationBinder.determineCacheSettings(AnnotationBinder.java:966)
at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:576)
at org.hibernate.cfg.Configuration$MetadataSourceQueue.processAnnotatedClassesQueue(Configuration.java:3395)
at org.hibernate.cfg.Configuration$MetadataSourceQueue.processMetadata(Configuration.java:3349)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1323)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1713)
at org.jboss.tools.hibernate4_0.HibernateExtension4_0$1.execute(HibernateExtension4_0.java:143)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
at org.jboss.tools.hibernate4_0.HibernateExtension4_0.execute(HibernateExtension4_0.java:248)
at org.jboss.tools.hibernate4_0.HibernateExtension4_0.buildSessionFactory(HibernateExtension4_0.java:135)
at org.hibernate.console.ConsoleConfiguration.buildSessionFactory(ConsoleConfiguration.java:273)
at org.hibernate.eclipse.console.workbench.LazySessionFactoryAdapter.getChildren(LazySessionFactoryAdapter.java:43)
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.ClassNotFoundException:
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:186)
at org.hibernate.internal.util.ReflectHelper.classForName(ReflectHelper.java:192)
at org.hibernate.cfg.SettingsFactory.createRegionFactory(SettingsFactory.java:417)
... 18 more
!SUBENTRY 2 org.hibernate.eclipse.console 4 150 2011-12-16 10:24:32.898
!MESSAGE org.hibernate.HibernateException: could not instantiate RegionFactory []
!STACK 0
org.hibernate.HibernateException: could not instantiate RegionFactory []
at org.hibernate.cfg.SettingsFactory.createRegionFactory(SettingsFactory.java:432)
at org.hibernate.cfg.AnnotationBinder.determineCacheConcurrencyStrategy(AnnotationBinder.java:1039)
at org.hibernate.cfg.AnnotationBinder.buildCacheMock(AnnotationBinder.java:1009)
at org.hibernate.cfg.AnnotationBinder.determineCacheSettings(AnnotationBinder.java:966)
at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:576)
at org.hibernate.cfg.Configuration$MetadataSourceQueue.processAnnotatedClassesQueue(Configuration.java:3395)
at org.hibernate.cfg.Configuration$MetadataSourceQueue.processMetadata(Configuration.java:3349)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1323)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1713)
at org.jboss.tools.hibernate4_0.HibernateExtension4_0$1.execute(HibernateExtension4_0.java:143)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
at org.jboss.tools.hibernate4_0.HibernateExtension4_0.execute(HibernateExtension4_0.java:248)
at org.jboss.tools.hibernate4_0.HibernateExtension4_0.buildSessionFactory(HibernateExtension4_0.java:135)
at org.hibernate.console.ConsoleConfiguration.buildSessionFactory(ConsoleConfiguration.java:273)
at org.hibernate.eclipse.console.workbench.LazySessionFactoryAdapter.getChildren(LazySessionFactoryAdapter.java:43)
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.ClassNotFoundException:
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:186)
at org.hibernate.internal.util.ReflectHelper.classForName(ReflectHelper.java:192)
at org.hibernate.cfg.SettingsFactory.createRegionFactory(SettingsFactory.java:417)
... 18 more
!SUBENTRY 2 org.hibernate.eclipse.console 4 150 2011-12-16 10:24:32.898
!MESSAGE java.lang.ClassNotFoundException:
!STACK 0
java.lang.ClassNotFoundException:
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:186)
at org.hibernate.internal.util.ReflectHelper.classForName(ReflectHelper.java:192)
at org.hibernate.cfg.SettingsFactory.createRegionFactory(SettingsFactory.java:417)
at org.hibernate.cfg.AnnotationBinder.determineCacheConcurrencyStrategy(AnnotationBinder.java:1039)
at org.hibernate.cfg.AnnotationBinder.buildCacheMock(AnnotationBinder.java:1009)
at org.hibernate.cfg.AnnotationBinder.determineCacheSettings(AnnotationBinder.java:966)
at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:576)
at org.hibernate.cfg.Configuration$MetadataSourceQueue.processAnnotatedClassesQueue(Configuration.java:3395)
at org.hibernate.cfg.Configuration$MetadataSourceQueue.processMetadata(Configuration.java:3349)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1323)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1713)
at org.jboss.tools.hibernate4_0.HibernateExtension4_0$1.execute(HibernateExtension4_0.java:143)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
at org.jboss.tools.hibernate4_0.HibernateExtension4_0.execute(HibernateExtension4_0.java:248)
at org.jboss.tools.hibernate4_0.HibernateExtension4_0.buildSessionFactory(HibernateExtension4_0.java:135)
at org.hibernate.console.ConsoleConfiguration.buildSessionFactory(ConsoleConfiguration.java:273)
at org.hibernate.eclipse.console.workbench.LazySessionFactoryAdapter.getChildren(LazySessionFactoryAdapter.java:43)
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)
--
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
11 years, 12 months
[JBoss JIRA] (JBIDE-11996) Persistence unit not found for default JPA project with DB connection string
by Jiri Peterka (JIRA)
Jiri Peterka created JBIDE-11996:
------------------------------------
Summary: Persistence unit not found for default JPA project with DB connection string
Key: JBIDE-11996
URL: https://issues.jboss.org/browse/JBIDE-11996
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: hibernate
Affects Versions: 3.3.0.CR1
Environment: JBT 3.3.CR1-trunk, L64, HSQL 1.8
Reporter: Jiri Peterka
Assignee: Dmitry Geraskov
Priority: Blocker
Fix For: 3.3.0.CR1
org.hibernate.console.HibernateConsoleRuntimeException: Persistence unit not found: 'null'.
at org.hibernate.console.ConfigurationFactory.buildJPAConfiguration(ConfigurationFactory.java:235)
at org.hibernate.console.ConfigurationFactory.buildConfiguration(ConfigurationFactory.java:174)
at org.hibernate.console.ConfigurationFactory.createConfiguration(ConfigurationFactory.java:96)
at org.hibernate.console.ConsoleConfiguration$3.execute(ConsoleConfiguration.java:240)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:107)
at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:237)
at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:188)
at org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:42)
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)
--
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
11 years, 12 months