[JBoss JIRA] Created: (JBIDE-9718) Multiple NamedQuery is not read by JPA details where there is NamedQueries after them
by Jiri Peterka (JIRA)
Multiple NamedQuery is not read by JPA details where there is NamedQueries after them
-------------------------------------------------------------------------------------
Key: JBIDE-9718
URL: https://issues.jboss.org/browse/JBIDE-9718
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: hibernate
Affects Versions: 3.3.0.M3
Environment: jbdevstudio-product-eap-linux-gtk-x86_64-5.0.0.v201109142301R-H31-M3.jar, Fedora 15, 64-bit
Reporter: Jiri Peterka
Assignee: Dmitry Geraskov
Fix For: 3.3.0.M4
Try this:
@NamedQuery(name = "query1", query = "select f from Dog f", readOnly = true, flushMode = ALWAYS,cacheable = true, cacheMode = GET, cacheRegion = "2", fetchSize = 2, timeout = 2)
@javax.persistence.NamedQuery(name = "query2", query = "select f from Dog f")
@NamedQueries({(a)javax.persistence.NamedQuery(name = "query3", query = "abcd"),(a)javax.persistence.NamedQuery(name = "query4")})
See in JPA Details, there is only query1, query3, query4. query2 is missing. When last row commented, query2 appears
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 1 month
[JBoss JIRA] (JBIDE-11107) IllegalStateException while connecting multiple datbases via Hibernate configuration view
by Jiri Peterka (JIRA)
Jiri Peterka created JBIDE-11107:
------------------------------------
Summary: IllegalStateException while connecting multiple datbases via Hibernate configuration view
Key: JBIDE-11107
URL: https://issues.jboss.org/browse/JBIDE-11107
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: hibernate
Affects Versions: 3.3.0.Beta1
Environment: Verified in JBT 3.3.0.Beta1 #93, L64
Reporter: Jiri Peterka
Assignee: Dmitry Geraskov
Fix For: 3.3.0.CR1
Attachments: hb-console.png
Might be reproducible after several tries
java.lang.IllegalStateException: zip file closed
at java.util.zip.ZipFile.ensureOpen(ZipFile.java:415)
at java.util.zip.ZipFile.getEntry(ZipFile.java:160)
at java.util.jar.JarFile.getEntry(JarFile.java:208)
at java.util.jar.JarFile.getJarEntry(JarFile.java:191)
at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:757)
at sun.misc.URLClassPath.getResource(URLClassPath.java:169)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at org.hibernate.console.ConsoleConfiguration$2$1.findClass(ConsoleConfiguration.java:199)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at org.hibernate.console.ConsoleConfiguration$2$1.loadClass(ConsoleConfiguration.java:207)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at org.hibernate.console.ConsoleConfiguration$2$1.loadClass(ConsoleConfiguration.java:215)
at org.hsqldb.jdbcDriver.getConnection(Unknown Source)
at org.hsqldb.jdbcDriver.connect(Unknown Source)
at org.hibernate.eclipse.libs.FakeDelegatingDriver.connect(FakeDelegatingDriver.java:40)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:154)
at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:133)
at org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.getConnection(AbstractMetaDataDialect.java:121)
at org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.getMetaData(AbstractMetaDataDialect.java:60)
at org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.caseForSearch(AbstractMetaDataDialect.java:163)
at org.hibernate.cfg.reveng.dialect.JDBCMetaDataDialect.getTables(JDBCMetaDataDialect.java:22)
at org.hibernate.cfg.reveng.JDBCReader.processTables(JDBCReader.java:476)
at org.hibernate.cfg.reveng.JDBCReader.readDatabaseSchema(JDBCReader.java:74)
at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter$2.execute(LazyDatabaseSchemaWorkbenchAdapter.java:126)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:107)
at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter.readDatabaseSchema(LazyDatabaseSchemaWorkbenchAdapter.java:115)
at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter.getChildren(LazyDatabaseSchemaWorkbenchAdapter.java:65)
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
12 years, 1 month
[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
12 years, 1 month
[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
12 years, 1 month