[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-3123) NullPointerException on invalid HQL query with an extra brace

Jiří Pejchal (JIRA) noreply at atlassian.com
Fri Feb 11 11:52:05 EST 2011


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=39927#action_39927 ] 

Jiří Pejchal commented on HHH-3123:
-----------------------------------

I've have been bitten by this issue as well.  An extra parenthesis caused the problem: {{":attributeName)"}}. It would be helpful to log the name of the problematic parameter or other information that can be used to faster pinpoint the problem, nut just throw NullPonterException.

> NullPointerException on invalid HQL query with an extra brace
> -------------------------------------------------------------
>
>                 Key: HHH-3123
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3123
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: query-hql
>    Affects Versions: 3.2.5
>            Reporter: Geoffrey De Smet
>            Priority: Trivial
>
> This query:
> "select p from IndividueleRekeningKasPO p left join fetch p.irTotalen inner join fetch p.toegangIndividueleRekeningKas tirkas where tirkas.authorityRef in (:authorityref)) and p.soort = :soort and p.id > 0"
> gives a NPE. The strange thing is that this query executes:
> "select p from IndividueleRekeningKasPO p left join fetch p.irTotalen inner join fetch p.toegangIndividueleRekeningKas tirkas where tirkas.authorityRef in (:authorityref)) and p.id > 0"
> both are invalid, because there is a closing brace to much in "(:authorityref))".

-- 
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