Issues
- subqueryexpression throws NullPointerExceptionHHH-10342Resolved issue: HHH-10342
- "ORA-00904 invalid identifier" occur on a criteria ... sometimeHHH-9703Resolved issue: HHH-9703
- FetchMode.SUBSELECT produces OutOfMemory due to jdk7 substringHHH-9163Resolved issue: HHH-9163Brett Meyer
- Invalid delete statement of Element Collections using embeddables with formulasHHH-9069Resolved issue: HHH-9069
- Query.setCacheMode not honoredHHH-9046Resolved issue: HHH-9046
- JPA TypedQuery.setHint with standard hint javax.persistence.cache.retrieveMode and CacheRetrieveMode.BYPASS not honoredHHH-9045Resolved issue: HHH-9045
- trim function should not generated "Function template anticipated 4 arguments, but 3 arguments encountered" message when 3 arguments are usedHHH-8295Resolved issue: HHH-8295
- Paginated query produces non-deterministic result set orderingHHH-8281Resolved issue: HHH-8281
- Hibernate's ManagedType#getDeclaredAttribute fails to find plural attributesHHH-8067Resolved issue: HHH-8067Steve Ebersole
- one-to-many JoinColumnsOrFormulasHHH-8043Resolved issue: HHH-8043
- Zero length @Lob in embedded object throws an exception with c3p0 and mysql.HHH-7977Resolved issue: HHH-7977
- Hibernate schema export shall support multiline SQL statements in load scriptsHHH-7921Resolved issue: HHH-7921
- @OrderBy with a target property mapped to a @SecondaryTable.HHH-7879Resolved issue: HHH-7879
- @MapKey with a target property mapped to a @SecondaryTable.HHH-7878
- Improper "unique" constraint in auto-generated schema (DDL) when a Java Map value involves non-primitive typesHHH-7862Resolved issue: HHH-7862
- org.hibernate.proxy.map.MapProxy loses all important state on serializationHHH-7686Resolved issue: HHH-7686Yoann Rodière
- HQL CashingHHH-7638Resolved issue: HHH-7638
- Compile time instrumentation causes java.lang.VerifyError under Java 7HHH-7544Resolved issue: HHH-7544Scott Marlow
- Bad request built from a criteria with a specific mappingHHH-7449Resolved issue: HHH-7449
- ScrollableResults#close throws an exception when called outside of a transactionHHH-7297Resolved issue: HHH-7297
- Using distinct in Criteria, using first- and maxResults, fails with SQLGrammarException when a colum in the distinct clause starts with 'from'HHH-7285Resolved issue: HHH-7285Strong Liu
- Wrong SQL statement generated due to a name collision of column aliasesHHH-7243Resolved issue: HHH-7243
- distinct query in sql server when table contains text fieldHHH-7227
- Result transformer set on Query is ignoredHHH-7226Resolved issue: HHH-7226
- hibernate.hbm2ddl.auto does not respect location of domain objectHHH-7140Resolved issue: HHH-7140
- SQLServer2005Dialect, SQLServer2008Dialect issues with subqueriesHHH-7019Resolved issue: HHH-7019Lukasz Antoniak
- Envers does not work in case of resource-local transactions and manual session flush modeHHH-7017Resolved issue: HHH-7017Lukasz Antoniak
- HEM leaks bean infoHHH-7008Resolved issue: HHH-7008Former user
- Query cache is getting weird after an update into a single transactionHHH-7004Resolved issue: HHH-7004
- Cacheable attribute in jpa mapping file is ignoredHHH-6993Resolved issue: HHH-6993
- BACKPORT: Create typed query in EntityManager throws NullPointerException when filters are presentHHH-6987Resolved issue: HHH-6987Steve Ebersole
- Inconsistent handling of @Embedded objects wrt null attributesHHH-6981Resolved issue: HHH-6981
- Duplicated actions in session actionQueueHHH-6976Resolved issue: HHH-6976
- Reduce cache entry size by using long[] instead of ArrayList<Long> for queries and collections valuesHHH-6973
- Criteria generates incorrect sql: ManyToMany w additional columnsHHH-6963Resolved issue: HHH-6963
- java.util.zip.ZipException: error in opening zip fileHHH-6962Resolved issue: HHH-6962
- Unknown Parameter: Unknown Coloumname MyColoumn ERRORCODE=-4460, SQLSTATE=null by entityManager.createNativeQueryHHH-6956Resolved issue: HHH-6956
- Envers: ManyToOne association returns null for audited entities when insertable/updatable=falseHHH-6953Resolved issue: HHH-6953
- JPA IdentifiableType.geIdType() does not return annotated @IdClass typeHHH-6951Resolved issue: HHH-6951Yanming Zhou (quaff@github)
- Optionally ignore modifications to the non-owning side of relationshipsHHH-6947Resolved issue: HHH-6947
- Add support for the AS400 (iSeries) system to StandardDialectResolverHHH-6946Resolved issue: HHH-6946Strong Liu
- Erroneous Javadoc for getReferencedProperty, getReferenceablePropertyIteratorHHH-6941Resolved issue: HHH-6941Vlad Mihalcea
- support multiple processor cores during hibernate buildHHH-6919Resolved issue: HHH-6919
- Persist deleted entity in collection which is not removed from collectionHHH-6917Resolved issue: HHH-6917Former user
- QuerySyntaxException for valid JPQL query using the IN operatorHHH-6913Resolved issue: HHH-6913
- Persist discriminator values for JOINED inheritance strategy (where present)HHH-6912Resolved issue: HHH-6912Former user
- Long "in" lists in queries results in a Java stack overflow exception.HHH-6907Resolved issue: HHH-6907Steve Ebersole
- order-by mapping for collections overrides order by in CriteriaHHH-1928Resolved issue: HHH-1928
48 of 48
subqueryexpression throws NullPointerException
Rejected
Description
Details
Assignee
UnassignedUnassignedReporter
Santhakumar Santhakumar Labels
Components
Affects versions
Priority
Major
Details
Details
Assignee
Unassigned
UnassignedReporter
Santhakumar
Santhakumar Labels
Components
Affects versions
Priority
Created November 30, 2015 at 9:35 AM
Updated July 11, 2024 at 5:32 PM
Resolved July 11, 2024 at 5:32 PM
Activity
Show:
Jan SchattemanJuly 11, 2024 at 5:10 PM
This issue has been rejected since the Hibernate legacy Criteria API was deprecated in 5.x and removed in 6.0. There will be no further development for it.
While listing some data from DB where we are getting below error.
When i debug LoadQueryInfluencer parameter which i have created the object from the session.getLoadQueryInfluencer(). where from application log i can able to see the object is loaded where as in hibernate stacktrace in hibernate its giving null. Below is the logs and snippet of the issue. Please help me out.
~String[] implementors = factory.getImplementors(criteriaImplValue.getEntityOrClassName());
LOG.info(":::::Entity Names 'Implementors' array string length:::::"+implementors.length);
if(getLoadQueryInflncr() ==null){
setLoadQueryInflncr(((SessionImpl)factory.getCurrentSession()).getLoadQueryInfluencers());
LOG.info(":::::LoadQueryInfluencer object created using factory.getLoadQueryInfluencers() method:::::");
}else{
setLoadQueryInflncr(new LoadQueryInfluencers(factory));
LOG.info(":::::LoadQueryInfluencer object created using constructor:::::");
}
LOG.info("Entity Name"+ factory
.getEntityPersister(implementors[0]) "SessionImplementorFactory"+factory"Criteria Impl Value"criteriaImplValue
"Entity Root Name"implementors[0]"Load Query influencer"+loadQueryInflncr.toString());
for(int i=0; i< implementors.length; i++){
loader[i] = new CriteriaLoader((OuterJoinLoadable) factory
.getEntityPersister(implementors[i]), factory, criteriaImplValue, implementors[i],
getLoadQueryInflncr()/*new LoadQueryInfluencers() no filters */);
}~
java.lang.NullPointerException
at org.hibernate.criterion.SubqueryExpression.toSqlString(SubqueryExpression.java:83)
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)
_+org.hibernate.criterion.SubqueryExpression_+
System.out.println(":::::Entering hibernate Sub Query Expression :::::::: ");
System.out.println(":::::Criteria :::::::: " + criteria + ":::::Crtier Query :::::::" + criteriaQuery);
SessionFactoryImplementor factory = criteriaQuery.getFactory();
System.out.println(":::::SessionImplelmentor Factory :::::::: " + factory);
OuterJoinLoadable persister =
(OuterJoinLoadable)factory.getEntityPersister(this.criteriaImpl.getEntityOrClassName());
System.out.println(":::::Session from CriteriaImpl :::::::: " + persister.getEntityName());
createAndSetInnerQuery(criteriaQuery, factory);
this.criteriaImpl.setSession(deriveRootSession(criteria));
System.out.println(":::::Innerquery :::::::: " + this.innerQuery.getRootCriteria().getEntityOrClassName());
System.out.println(":::::criteriaImpl getEntityOrClassName :::::::: " + this.criteriaImpl.getEntityOrClassName());
System.out.println(":::::criteriaImpl getSession().getLoadQueryInfluencers() :::::::: " + this.criteriaImpl.getSession().getLoadQueryInfluencers().getClass().getName());
System.out.println(":::::innerQuery.getRootSQLALias() :::::::: " + this.innerQuery.getRootSQLALias());