[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2159) Query that previously worked in 3.2.0CR2 does not work anymore

Andy Dale (JIRA) noreply at atlassian.com
Thu Oct 19 10:29:04 EDT 2006


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2159?page=comments#action_24900 ] 

Andy Dale commented on HHH-2159:
--------------------------------

Here is the relevant info from the console on JBoss startup, it only seems to mention EntityManager and Annotations.  

[TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
16:24:25,244 INFO  [EARDeployer] Init J2EE application: file:/usr/local/jboss-4.0.4.GA/server/default/deploy/MetadataTest.ear
16:24:25,951 INFO  [Ejb3Deployment] EJB3 deployment time took: 536
16:24:25,969 INFO  [JmxKernelAbstraction] installing MBean: persistence.units:ear=MetadataTest.ear,jar=AdminMetadata-ejb.jar,unitName=metadatatest with dependencies:
16:24:25,970 INFO  [JmxKernelAbstraction]       jboss.jca:name=Postgres_Test,service=ManagedConnectionFactory
16:24:26,027 INFO  [Version] Hibernate EntityManager 3.2.0.GA
16:24:26,065 INFO  [Version] Hibernate Annotations 3.2.0.GA
16:24:26,076 INFO  [Environment] Hibernate 3.2.0
16:24:26,086 INFO  [Environment] hibernate.properties not found
16:24:26,089 INFO  [Environment] Bytecode provider name : javassist
16:24:26,097 INFO  [Environment] using JDK 1.4 java.sql.Timestamp handling
16:24:26,269 INFO  [Ejb3Configuration] Processing PersistenceUnitInfo [
        name: metadatatest
        ...]

Maybe i have upgraded incorrectly, please see my orignal description for the details on how i upgraded


> Query that previously worked in 3.2.0CR2 does not  work anymore
> ---------------------------------------------------------------
>
>          Key: HHH-2159
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2159
>      Project: Hibernate3
>         Type: Bug

>     Versions: 3.2.0.ga
>  Environment: hibernate 3.2.0GA, PostgreSQL 8.1.4 (using build 407 of the JDBC driver).  JDK 1.5.0_06, JBoss 4.0.4GA, Operating system is Fedora Core 5
>     Reporter: Andy Dale
>  Attachments: hibernate_testcase.tar.gz
>
>
> First off i do not know if this bug belongs to the Hibernate3(core) or Hibernate EntityManger branch, but have entered it against core because that is where the exception occurs (in org.hibernate.hql.ast.tree.FromClause.findIntendedAliasedFromElementBasedOnCrazyJPARequirements).
> I have a relativley simple entity setup up to test a proof of concept.  Persisting the data to the database is not a problem in the new version 3.2.0.GA, but the problems occurs when trying to perform a query on the persisted data, the very same query works with 3.2.0CR2 but gives a nullPointException in 3.2.0GA.
> I have attached the java source for the entities + session bean (in hibernate_testcase.tar.gz/entities file) and the java class (in hibernate_testcase.tar.gz/service file) that is used to persist and query the data, and because this was only meant to be a proof of concept i have also included the .ear archive as apart from the entity definitions and session bean the only other thing it contains is a JBoss .sar archive which calls the static persist and query methods in the session bean (service test.testcase).  Please note to use the .ear archive you need a datasource called Postgres_Test

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira




More information about the hibernate-issues mailing list