Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    Expert tip

    If you're using Hibernate, this was a bug, fixed in 4.2.12. If you're using querydsl, it's also a bug, related to hibernate, fixed in 3.6.0.

Solutions on the web

via Hibernate JIRA by Anton Bastynets, 1 year ago
org.hibernate.hql.internal.ast.tree.SqlNode cannot be cast to org.hibernate.hql.internal.ast.tree.FromReferenceNode
via Hibernate JIRA by Anton Bastynets, 1 year ago
org.hibernate.hql.internal.ast.tree.SqlNode cannot be cast to org.hibernate.hql.internal.ast.tree.FromReferenceNode
java.lang.ClassCastException: org.hibernate.hql.internal.ast.tree.SqlNode cannot be cast to org.hibernate.hql.internal.ast.tree.FromReferenceNode	at org.hibernate.hql.internal.ast.tree.DotNode.getLhs(DotNode.java:614)	at org.hibernate.hql.internal.ast.tree.DotNode.getPath(DotNode.java:629)	at org.hibernate.hql.internal.ast.tree.DotNode.getPath(DotNode.java:635)	at org.hibernate.hql.internal.ast.tree.DotNode.getPath(DotNode.java:635)	at org.hibernate.hql.internal.ast.tree.DotNode.getPath(DotNode.java:635)	at org.hibernate.hql.internal.ast.tree.DotNode.getPath(DotNode.java:635)	at org.hibernate.hql.internal.ast.tree.ConstructorNode.prepare(ConstructorNode.java:142)	at org.hibernate.hql.internal.ast.HqlSqlWalker.processConstructor(HqlSqlWalker.java:1021)	at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.selectExpr(HqlSqlBaseWalker.java:2126)	at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.selectExprList(HqlSqlBaseWalker.java:1992)	at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.selectClause(HqlSqlBaseWalker.java:1433)	at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:559)	at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:287)	at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:235)	at org.hibernate.hql.internal.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:248)	at org.hibernate.hql.internal.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:183)	at org.hibernate.hql.internal.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:136)	at org.hibernate.engine.query.spi.HQLQueryPlan.(HQLQueryPlan.java:106)	at org.hibernate.engine.query.spi.HQLQueryPlan.(HQLQueryPlan.java:81)	at org.hibernate.engine.query.spi.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:167)	at org.hibernate.internal.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:217)	at org.hibernate.internal.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:195)	at org.hibernate.internal.SessionImpl.createQuery(SessionImpl.java:1649)	at org.hibernate.ejb.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:296)	at by.bntu.shop.unittests.ProductDaoTest.testExecSearchQuery1(ProductDaoTest.java:65)