[jboss-jira] [JBoss JIRA] (HIBERNATE-154) SubqueryExpression throws NullpointerException in toSqlString(...) where getLoadQueryInfluencers() is getting null. in hibernate 3.6.9 version.

Steve Ebersole (JIRA) issues at jboss.org
Mon Apr 24 09:28:00 EDT 2017


    [ https://issues.jboss.org/browse/HIBERNATE-154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13397110#comment-13397110 ] 

Steve Ebersole commented on HIBERNATE-154:
------------------------------------------

I don't know if "we" did ;)  I know I did not look at this.

# 3.6 has not been supported for roughly 6 years
# This Jira is for reporting bugs in WildFly's integration with Hibernate (that's why the project is called "Hibernate Integration", not "Hibernate").  Use Hibernate's Jira (https://hibernate.atlassian.net/browse/HHH) for reporting problems with Hibernate.

So I suggest you:
# try to reproduce this using a supported release (5.x), and 
# if you can reproduce, open a ticket in the proper Jira (linked above)

> SubqueryExpression throws NullpointerException in toSqlString(...) where getLoadQueryInfluencers() is getting null. in hibernate 3.6.9 version.
> -----------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HIBERNATE-154
>                 URL: https://issues.jboss.org/browse/HIBERNATE-154
>             Project: Hibernate Integration
>          Issue Type: Bug
>         Environment: Hibernate 3.6.9.Final
>            Reporter: Santhakumar Appandairaj
>            Assignee: Steve Ebersole
>            Priority: Blocker
>
> We are getting below exception when I try to list some data. 
> I have also tried debugging where its exactly occurring we are getting issue in the LoadqueryInflucers object is getting as null
> 	~_public String toSqlString(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException {
> 		SessionFactoryImplementor factory = criteriaQuery.getFactory();
> 		OuterJoinLoadable persister = (OuterJoinLoadable) factory
> 				.getEntityPersister(this.criteriaImpl.getEntityOrClassName());
> 		createAndSetInnerQuery(criteriaQuery, factory);
> 		this.criteriaImpl.setSession(deriveRootSession(criteria));
> 		CriteriaJoinWalker walker = new CriteriaJoinWalker(persister, this.innerQuery, factory, this.criteriaImpl,
> 				this.criteriaImpl.getEntityOrClassName(), this.criteriaImpl.getSession().getLoadQueryInfluencers(),
> 				this.innerQuery.getRootSQLALias());_~
> *Exception*
> Caused by: java.lang.NullPointerException
> 	at org.hibernate.criterion.SubqueryExpression.toSqlString(SubqueryExpression.java:72)
> 	at org.hibernate.criterion.LogicalExpression.toSqlString(LogicalExpression.java:62)
> 	at org.hibernate.criterion.Junction.toSqlString(Junction.java:82)
> 	at org.hibernate.loader.criteria.CriteriaQueryTranslator.getWhereCondition(CriteriaQueryTranslator.java:380)
> 	at org.hibernate.loader.criteria.CriteriaJoinWalker.<init>(CriteriaJoinWalker.java:102)
> 	at org.hibernate.loader.criteria.CriteriaJoinWalker.<init>(CriteriaJoinWalker.java:82)
> 	at org.hibernate.loader.criteria.CriteriaLoader.<init>(CriteriaLoader.java:92)
> Can any of you please check and let me know.
> We are trying to upgrade hibernate and other 3rd party jar upgrade 



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list