-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: "No data type for node: org.hibernate.hql.ast.tree.MethodNo"
PostPosted: Mon Aug 31, 2009 3:22 pm 
Regular
Regular

Joined: Tue Feb 17, 2009 3:36 pm
Posts: 78
It is my first time running into this exception after having been using it for six year. I can't figure out the cause. Can someone give me a hand on this problem?

The HQL:
Code:
select UserInfo(em.id,em.name,em.username,em.email,em.encoding,em.cityId) from Notification en left join en.pk.user em group by em.id,em.name,em.username,em.email,em.encoding,em.cityId

Quote:
2009-08-31 12:03:11,281 ERROR [scheduler_Worker-1] JobRunShell.run(211) | Job DEFAULT.newEventNotificationJobDetail threw an unhandled Exception:
java.lang.IllegalStateException: No data type for node: org.hibernate.hql.ast.tree.MethodNode
\-[METHOD_CALL] MethodNode: '('
+-[METHOD_NAME] IdentNode: 'UserInfo' {originalText=UserInfo}
\-[EXPR_LIST] SqlNode: 'exprList'
+-[DOT] DotNode: 'userinfo1_.id' {propertyName=id,dereferenceType=4,propertyPath=id,path=em.id,tableAlias=userinfo1_,className=com.abc.myapp.domain.UserInfo,classAlias=em}
| +-[ALIAS_REF] IdentNode: 'userinfo1_.id' {alias=em, className=com.abc.myapp.domain.UserInfo, tableAlias=userinfo1_}
| \-[IDENT] IdentNode: 'id' {originalText=id}
+-[DOT] DotNode: 'userinfo1_.name' {propertyName=name,dereferenceType=4,propertyPath=name,path=em.name,tableAlias=userinfo1_,className=com.abc.myapp.domain.UserInfo,classAlias=em}
| +-[ALIAS_REF] IdentNode: 'userinfo1_.id' {alias=em, className=com.abc.myapp.domain.UserInfo, tableAlias=userinfo1_}
| \-[IDENT] IdentNode: 'name' {originalText=name}
+-[DOT] DotNode: 'userinfo1_.username' {propertyName=username,dereferenceType=4,propertyPath=username,path=em.username,tableAlias=userinfo1_,className=com.abc.myapp.domain.UserInfo,classAlias=em}
| +-[ALIAS_REF] IdentNode: 'userinfo1_.id' {alias=em, className=com.abc.myapp.domain.UserInfo, tableAlias=userinfo1_}
| \-[IDENT] IdentNode: 'username' {originalText=username}
+-[DOT] DotNode: 'userinfo1_.email' {propertyName=email,dereferenceType=4,propertyPath=email,path=em.email,tableAlias=userinfo1_,className=com.abc.myapp.domain.UserInfo,classAlias=em}
| +-[ALIAS_REF] IdentNode: 'userinfo1_.id' {alias=em, className=com.abc.myapp.domain.UserInfo, tableAlias=userinfo1_}
| \-[IDENT] IdentNode: 'email' {originalText=email}
+-[DOT] DotNode: 'userinfo1_.encoding' {propertyName=encoding,dereferenceType=4,propertyPath=encoding,path=em.encoding,tableAlias=userinfo1_,className=com.abc.myapp.domain.UserInfo,classAlias=em}
| +-[ALIAS_REF] IdentNode: 'userinfo1_.id' {alias=em, className=com.abc.myapp.domain.UserInfo, tableAlias=userinfo1_}
| \-[IDENT] IdentNode: 'encoding' {originalText=encoding}
\-[DOT] DotNode: 'userinfo1_.cityId' {propertyName=cityId,dereferenceType=4,propertyPath=cityId,path=em.cityId,tableAlias=userinfo1_,className=com.abc.myapp.domain.UserInfo,classAlias=em}
+-[ALIAS_REF] IdentNode: 'userinfo1_.id' {alias=em, className=com.abc.myapp.domain.UserInfo, tableAlias=userinfo1_}
\-[IDENT] IdentNode: 'cityId' {originalText=cityId}

at org.hibernate.hql.ast.tree.SelectClause.initializeExplicitSelectClause(SelectClause.java:167)
at org.hibernate.hql.ast.HqlSqlWalker.useSelectClause(HqlSqlWalker.java:727)
at org.hibernate.hql.ast.HqlSqlWalker.processQuery(HqlSqlWalker.java:551)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:645)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:281)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:229)
at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:251)
at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:183)
at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:134)
at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:101)
at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:80)
at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:94)
at org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:156)
at org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:135)
at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1650)
at com.abc.myapp.data.event.hibernate.NotificationHibernateDAO.getNotifiedUsers(NotificationHibernateDAO.java:34)
at com.abc.myapp.service.event.EventServiceImpl.handleNewEventNotification(EventServiceImpl.java:237)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy54.handleNewEventNotification(Unknown Source)
at com.abc.myapp.service.scheduling.NewEventNotificationQuartzJob.executeInternal(NewEventNotificationQuartzJob.java:75)
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
2009-08-31 12:03:11,296 ERROR [scheduler_Worker-1] ErrorLogger.schedulerError(2156) | Job (DEFAULT.newEventNotificationJobDetail threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.IllegalStateException: No data type for node: org.hibernate.hql.ast.tree.MethodNode
\-[METHOD_CALL] MethodNode: '('
+-[METHOD_NAME] IdentNode: 'UserInfo' {originalText=UserInfo}
\-[EXPR_LIST] SqlNode: 'exprList'
+-[DOT] DotNode: 'userinfo1_.id' {propertyName=id,dereferenceType=4,propertyPath=id,path=em.id,tableAlias=userinfo1_,className=com.abc.myapp.domain.UserInfo,classAlias=em}
| +-[ALIAS_REF] IdentNode: 'userinfo1_.id' {alias=em, className=com.abc.myapp.domain.UserInfo, tableAlias=userinfo1_}
| \-[IDENT] IdentNode: 'id' {originalText=id}
+-[DOT] DotNode: 'userinfo1_.name' {propertyName=name,dereferenceType=4,propertyPath=name,path=em.name,tableAlias=userinfo1_,className=com.abc.myapp.domain.UserInfo,classAlias=em}
| +-[ALIAS_REF] IdentNode: 'userinfo1_.id' {alias=em, className=com.abc.myapp.domain.UserInfo, tableAlias=userinfo1_}
| \-[IDENT] IdentNode: 'name' {originalText=name}
+-[DOT] DotNode: 'userinfo1_.username' {propertyName=username,dereferenceType=4,propertyPath=username,path=em.username,tableAlias=userinfo1_,className=com.abc.myapp.domain.UserInfo,classAlias=em}
| +-[ALIAS_REF] IdentNode: 'userinfo1_.id' {alias=em, className=com.abc.myapp.domain.UserInfo, tableAlias=userinfo1_}
| \-[IDENT] IdentNode: 'username' {originalText=username}
+-[DOT] DotNode: 'userinfo1_.email' {propertyName=email,dereferenceType=4,propertyPath=email,path=em.email,tableAlias=userinfo1_,className=com.abc.myapp.domain.UserInfo,classAlias=em}
| +-[ALIAS_REF] IdentNode: 'userinfo1_.id' {alias=em, className=com.abc.myapp.domain.UserInfo, tableAlias=userinfo1_}
| \-[IDENT] IdentNode: 'email' {originalText=email}
+-[DOT] DotNode: 'userinfo1_.encoding' {propertyName=encoding,dereferenceType=4,propertyPath=encoding,path=em.encoding,tableAlias=userinfo1_,className=com.abc.myapp.domain.UserInfo,classAlias=em}
| +-[ALIAS_REF] IdentNode: 'userinfo1_.id' {alias=em, className=com.abc.myapp.domain.UserInfo, tableAlias=userinfo1_}
| \-[IDENT] IdentNode: 'encoding' {originalText=encoding}
\-[DOT] DotNode: 'userinfo1_.cityId' {propertyName=cityId,dereferenceType=4,propertyPath=cityId,path=em.cityId,tableAlias=userinfo1_,className=com.abc.myapp.domain.UserInfo,classAlias=em}
+-[ALIAS_REF] IdentNode: 'userinfo1_.id' {alias=em, className=com.abc.myapp.domain.UserInfo, tableAlias=userinfo1_}
\-[IDENT] IdentNode: 'cityId' {originalText=cityId}
]
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Caused by: java.lang.IllegalStateException: No data type for node: org.hibernate.hql.ast.tree.MethodNode
\-[METHOD_CALL] MethodNode: '('
+-[METHOD_NAME] IdentNode: 'UserInfo' {originalText=UserInfo}
\-[EXPR_LIST] SqlNode: 'exprList'
+-[DOT] DotNode: 'userinfo1_.id' {propertyName=id,dereferenceType=4,propertyPath=id,path=em.id,tableAlias=userinfo1_,className=com.abc.myapp.domain.UserInfo,classAlias=em}
| +-[ALIAS_REF] IdentNode: 'userinfo1_.id' {alias=em, className=com.abc.myapp.domain.UserInfo, tableAlias=userinfo1_}
| \-[IDENT] IdentNode: 'id' {originalText=id}
+-[DOT] DotNode: 'userinfo1_.name' {propertyName=name,dereferenceType=4,propertyPath=name,path=em.name,tableAlias=userinfo1_,className=com.abc.myapp.domain.UserInfo,classAlias=em}
| +-[ALIAS_REF] IdentNode: 'userinfo1_.id' {alias=em, className=com.abc.myapp.domain.UserInfo, tableAlias=userinfo1_}
| \-[IDENT] IdentNode: 'name' {originalText=name}
+-[DOT] DotNode: 'userinfo1_.username' {propertyName=username,dereferenceType=4,propertyPath=username,path=em.username,tableAlias=userinfo1_,className=com.abc.myapp.domain.UserInfo,classAlias=em}
| +-[ALIAS_REF] IdentNode: 'userinfo1_.id' {alias=em, className=com.abc.myapp.domain.UserInfo, tableAlias=userinfo1_}
| \-[IDENT] IdentNode: 'username' {originalText=username}
+-[DOT] DotNode: 'userinfo1_.email' {propertyName=email,dereferenceType=4,propertyPath=email,path=em.email,tableAlias=userinfo1_,className=com.abc.myapp.domain.UserInfo,classAlias=em}
| +-[ALIAS_REF] IdentNode: 'userinfo1_.id' {alias=em, className=com.abc.myapp.domain.UserInfo, tableAlias=userinfo1_}
| \-[IDENT] IdentNode: 'email' {originalText=email}
+-[DOT] DotNode: 'userinfo1_.encoding' {propertyName=encoding,dereferenceType=4,propertyPath=encoding,path=em.encoding,tableAlias=userinfo1_,className=com.abc.myapp.domain.UserInfo,classAlias=em}
| +-[ALIAS_REF] IdentNode: 'userinfo1_.id' {alias=em, className=com.abc.myapp.domain.UserInfo, tableAlias=userinfo1_}
| \-[IDENT] IdentNode: 'encoding' {originalText=encoding}
\-[DOT] DotNode: 'userinfo1_.cityId' {propertyName=cityId,dereferenceType=4,propertyPath=cityId,path=em.cityId,tableAlias=userinfo1_,className=com.abc.myapp.domain.UserInfo,classAlias=em}
+-[ALIAS_REF] IdentNode: 'userinfo1_.id' {alias=em, className=com.abc.myapp.domain.UserInfo, tableAlias=userinfo1_}
\-[IDENT] IdentNode: 'cityId' {originalText=cityId}

at org.hibernate.hql.ast.tree.SelectClause.initializeExplicitSelectClause(SelectClause.java:167)
at org.hibernate.hql.ast.HqlSqlWalker.useSelectClause(HqlSqlWalker.java:727)
at org.hibernate.hql.ast.HqlSqlWalker.processQuery(HqlSqlWalker.java:551)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:645)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:281)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:229)
at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:251)
at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:183)
at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:134)
at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:101)
at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:80)
at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:94)
at org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:156)
at org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:135)
at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1650)
at com.abc.myapp.data.event.hibernate.NotificationHibernateDAO.getNotifiedUsers(NotificationHibernateDAO.java:34)
at com.abc.myapp.service.event.EventServiceImpl.handleNewEventNotification(EventServiceImpl.java:237)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy54.handleNewEventNotification(Unknown Source)
at com.abc.myapp.service.scheduling.NewEventNotificationQuartzJob.executeInternal(NewEventNotificationQuartzJob.java:75)
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
... 1 more



Top
 Profile  
 
 Post subject: Re: "No data type for node: org.hibernate.hql.ast.tree.MethodNo"
PostPosted: Fri Nov 13, 2009 1:48 pm 
Regular
Regular

Joined: Tue Feb 17, 2009 3:36 pm
Posts: 78
Never mind, the keyword "new" is missing in the HQL.

___________________________________________________
http://homepage.kgbinternet.com - Having your bookmarks anywhere you go!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.