[jboss-jira] [JBoss JIRA] (HIBERNATE-154) SubqueryExpression throws NullpointerException in toSqlString(...) where getLoadQueryInfluencers() is getting null. in hibernate 3.6.9 version.
Santhakumar Appandairaj (JIRA)
issues at jboss.org
Thu Nov 26 00:57:00 EST 2015
[ https://issues.jboss.org/browse/HIBERNATE-154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Santhakumar Appandairaj updated HIBERNATE-154:
----------------------------------------------
Environment:
Hibernate 3.6.9.Final
was:
Spring 4.0.2.Release,
Hibernate 3.6.9.Final
Linux
Websphere 7.0
oracle 10g
> 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
(v6.4.11#64026)
More information about the jboss-jira
mailing list