[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5311?page=c...
]
Grzegorz Olędzki commented on HHH-5311:
---------------------------------------
Observed stacktrace:
{code}
Exception in thread "main" java.lang.NullPointerException
at org.hibernate.hql.ast.HqlSqlWalker.setAlias(HqlSqlWalker.java:986)
at
org.hibernate.hql.antlr.HqlSqlBaseWalker.aliasedSelectExpr(HqlSqlBaseWalker.java:2241)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.selectExprList(HqlSqlBaseWalker.java:1988)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.selectClause(HqlSqlBaseWalker.java:1513)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:584)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:292)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:235)
at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:254)
at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:185)
at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:136)
at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:101)
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)
at
org.hibernate.ejb.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:263)
at hhhplussign.Main.read(Main.java:35)
at hhhplussign.Main.main(Main.java:16)
{code}
+ operator in JPQL subselect query results in NullPointerException
------------------------------------------------------------------
Key: HHH-5311
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5311
Project: Hibernate Core
Issue Type: Bug
Affects Versions: 3.5.0-Final
Environment: hibernate-3.5.0-Final.jar, java version "1.6.0_17",
database platform seems irrelevant (H2 and MySQL tested)
Reporter: Grzegorz Olędzki
Attachments: HHHPlusSignProject.zip
When trying to use a {{+}} arithmetic operator in a subquery of my JPQL query I end up
with a NullPointerException from {{org.hibernate.hql.ast.HqlSqlWalker}}.
I've played with adding/removing parentheses, aliases, but that doesn't seem to
help.
--
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