[
https://issues.jboss.org/browse/JBIDE-10497?page=com.atlassian.jira.plugi...
]
Juergen Zimmermann commented on JBIDE-10497:
--------------------------------------------
1) L2C isn't used because I'm setting hibernate.cache.use_second_level_cache =
false and hibernate.cache.use_query_cache = false.
2) I was setting >>hibernate.cache.region.factory_class = << in M4 to avoid
(unnecessary) warnings due to Infinispan. Now I tried to comment the property, but then
got this stacktrace when opening the Session Factory:
java.lang.NullPointerException
at
org.hibernate.annotations.CacheConcurrencyStrategy.fromAccessType(CacheConcurrencyStrategy.java:52)
at
org.hibernate.cfg.AnnotationBinder.determineCacheConcurrencyStrategy(AnnotationBinder.java:1042)
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)
"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