[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5080?page=c...
]
John Aylward commented on HHH-5080:
-----------------------------------
I have verified that this was a regression in my own code. Sorry for taking your time with
it. The original query now works in hibernate 3.5 after fixing my regression.
NPE when determining types of named parameters
----------------------------------------------
Key: HHH-5080
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5080
Project: Hibernate Core
Issue Type: Bug
Components: core, query-hql
Affects Versions: 3.5.0-Final
Environment: sun java 6.0.19 runtime, hibernate 3.5.0-final using annotations,
mysql 5.0.75-0ubuntu10.3
Reporter: John Aylward
Attachments: hibernateLog.txt
Attached is the relevant hibernate log with the offending query.
Relevant stack trace:
java.lang.NullPointerException
at
org.hibernate.hql.ast.ParameterTranslationsImpl.getNamedParameterExpectedType(ParameterTranslationsImpl.java:87)
at
org.hibernate.engine.query.HQLQueryPlan.buildParameterMetadata(HQLQueryPlan.java:320)
at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:121)
at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:80)
at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:98)
at org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:156)
at org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:135)
at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1760)
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira