[jbosstools-issues] [JBoss JIRA] (JBIDE-10497) "could not instantiate RegionFactory" due to CNFE
Dmitry Geraskov (Commented) (JIRA)
jira-events at lists.jboss.org
Mon Dec 19 06:00:12 EST 2011
[ https://issues.jboss.org/browse/JBIDE-10497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12651906#comment-12651906 ]
Dmitry Geraskov commented on JBIDE-10497:
-----------------------------------------
I mean create class with main method and in the method create configuration and call config#buildSessionFactory() there.
> "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/2011-12-14_19-42-13-H61. 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
More information about the jbosstools-issues
mailing list