java.lang.IllegalStateException: No data type for node: org.hibernate.hql.ast.tree.MethodNode 
 \-[METHOD_CALL] MethodNode: '('
    +-[METHOD_NAME] IdentNode: 'ViewJiaojiedanGuihuachuOld' {originalText=ViewJiaojiedanGuihuachuOld}
    \-[EXPR_LIST] SqlNode: 'exprList'
       +-[DOT] DotNode: 'viewjiaoji0_.COUNTNUMBER' {propertyName=countNumber,dereferenceType=ALL,propertyPath=countNumber,path={synthetic-alias}.countNumber,tableAlias=viewjiaoji0_,className=com.etms.entity.ViewJiaojiedanGuihuachuOld,classAlias=null}
       |  +-[IDENT] IdentNode: '{synthetic-alias}' {originalText={synthetic-alias}}
       |  \-[IDENT] IdentNode: 'countNumber' {originalText=countNumber}
       +-[DOT] DotNode: 'viewjiaoji0_.EQUIPTYPE' {propertyName=equiptype,dereferenceType=ALL,propertyPath=equiptype,path={synthetic-alias}.equiptype,tableAlias=viewjiaoji0_,className=com.etms.entity.ViewJiaojiedanGuihuachuOld,classAlias=null}
       |  +-[IDENT] IdentNode: '{synthetic-alias}' {originalText={synthetic-alias}}
       |  \-[IDENT] IdentNode: 'equiptype' {originalText=equiptype}
       +-[DOT] DotNode: 'viewjiaoji0_.EQUIPNAME' {propertyName=equipname,dereferenceType=ALL,propertyPath=equipname,path={synthetic-alias}.equipname,tableAlias=viewjiaoji0_,className=com.etms.entity.ViewJiaojiedanGuihuachuOld,classAlias=null}
       |  +-[IDENT] IdentNode: '{synthetic-alias}' {originalText={synthetic-alias}}
       |  \-[IDENT] IdentNode: 'equipname' {originalText=equipname}
       +-[DOT] DotNode: 'viewjiaoji0_.APPUSERNAME' {propertyName=appusername,dereferenceType=ALL,propertyPath=appusername,path={synthetic-alias}.appusername,tableAlias=viewjiaoji0_,className=com.etms.entity.ViewJiaojiedanGuihuachuOld,classAlias=null}
       |  +-[IDENT] IdentNode: '{synthetic-alias}' {originalText={synthetic-alias}}
       |  \-[IDENT] IdentNode: 'appusername' {originalText=appusername}
       +-[DOT] DotNode: 'viewjiaoji0_.TASKID' {propertyName=taskid,dereferenceType=ALL,propertyPath=taskid,path={synthetic-alias}.taskid,tableAlias=viewjiaoji0_,className=com.etms.entity.ViewJiaojiedanGuihuachuOld,classAlias=null}
       |  +-[IDENT] IdentNode: '{synthetic-alias}' {originalText={synthetic-alias}}
       |  \-[IDENT] IdentNode: 'taskid' {originalText=taskid}
       +-[DOT] DotNode: 'viewjiaoji0_.USERNAME' {propertyName=username,dereferenceType=ALL,propertyPath=username,path={synthetic-alias}.username,tableAlias=viewjiaoji0_,className=com.etms.entity.ViewJiaojiedanGuihuachuOld,classAlias=null}
       |  +-[IDENT] IdentNode: '{synthetic-alias}' {originalText={synthetic-alias}}
       |  \-[IDENT] IdentNode: 'username' {originalText=username}
       +-[DOT] DotNode: 'viewjiaoji0_.NODSTARTTIME' {propertyName=nodStartTime,dereferenceType=ALL,propertyPath=nodStartTime,path={synthetic-alias}.nodStartTime,tableAlias=viewjiaoji0_,className=com.etms.entity.ViewJiaojiedanGuihuachuOld,classAlias=null}
       |  +-[IDENT] IdentNode: '{synthetic-alias}' {originalText={synthetic-alias}}
       |  \-[IDENT] IdentNode: 'nodStartTime' {originalText=nodStartTime}
       +-[DOT] DotNode: 'viewjiaoji0_.CONNECTCODE' {propertyName=connectcode,dereferenceType=ALL,propertyPath=connectcode,path={synthetic-alias}.connectcode,tableAlias=viewjiaoji0_,className=com.etms.entity.ViewJiaojiedanGuihuachuOld,classAlias=null}
       |  +-[IDENT] IdentNode: '{synthetic-alias}' {originalText={synthetic-alias}}
       |  \-[IDENT] IdentNode: 'connectcode' {originalText=connectcode}
       +-[DOT] DotNode: 'viewjiaoji0_.APPROVECERTIFICATECODE' {propertyName=approvecertificatecode,dereferenceType=ALL,propertyPath=approvecertificatecode,path={synthetic-alias}.approvecertificatecode,tableAlias=viewjiaoji0_,className=com.etms.entity.ViewJiaojiedanGuihuachuOld,classAlias=null}
       |  +-[IDENT] IdentNode: '{synthetic-alias}' {originalText={synthetic-alias}}
       |  \-[IDENT] IdentNode: 'approvecertificatecode' {originalText=approvecertificatecode}
       +-[DOT] DotNode: 'viewjiaoji0_.UNDERTAKECODE' {propertyName=undertakecode,dereferenceType=ALL,propertyPath=undertakecode,path={synthetic-alias}.undertakecode,tableAlias=viewjiaoji0_,className=com.etms.entity.ViewJiaojiedanGuihuachuOld,classAlias=null}
       |  +-[IDENT] IdentNode: '{synthetic-alias}' {originalText={synthetic-alias}}
       |  \-[IDENT] IdentNode: 'undertakecode' {originalText=undertakecode}
       +-[DOT] DotNode: 'viewjiaoji0_.APPROVETYPE' {propertyName=approvetype,dereferenceType=ALL,propertyPath=approvetype,path={synthetic-alias}.approvetype,tableAlias=viewjiaoji0_,className=com.etms.entity.ViewJiaojiedanGuihuachuOld,classAlias=null}
       |  +-[IDENT] IdentNode: '{synthetic-alias}' {originalText={synthetic-alias}}
       |  \-[IDENT] IdentNode: 'approvetype' {originalText=approvetype}
       +-[DOT] DotNode: 'viewjiaoji0_.FILEGETTIME' {propertyName=fileGetTime,dereferenceType=ALL,propertyPath=fileGetTime,path={synthetic-alias}.fileGetTime,tableAlias=viewjiaoji0_,className=com.etms.entity.ViewJiaojiedanGuihuachuOld,classAlias=null}
       |  +-[IDENT] IdentNode: '{synthetic-alias}' {originalText={synthetic-alias}}
       |  \-[IDENT] IdentNode: 'fileGetTime' {originalText=fileGetTime}
       \-[DOT] DotNode: 'viewjiaoji0_.NODENDTIME' {propertyName=nodEndTime,dereferenceType=ALL,propertyPath=nodEndTime,path={synthetic-alias}.nodEndTime,tableAlias=viewjiaoji0_,className=com.etms.entity.ViewJiaojiedanGuihuachuOld,classAlias=null}
          +-[IDENT] IdentNode: '{synthetic-alias}' {originalText={synthetic-alias}}
          \-[IDENT] IdentNode: 'nodEndTime' {originalText=nodEndTime}
 
at org.hibernate.hql.ast.tree.SelectClause.initializeExplicitSelectClause(SelectClause.java:145)
at org.hibernate.hql.ast.HqlSqlWalker.useSelectClause(HqlSqlWalker.java:811)
at org.hibernate.hql.ast.HqlSqlWalker.processQuery(HqlSqlWalker.java:599)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:672)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:288)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:231)
at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:231)
at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:162)
at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:113)
at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:77)
at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:56)
at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:72)
at org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)
at org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:112)
at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1624)
at com.etms.dao.TableJiaojieDanDao.getJiaojiedanGuiHuaChuaView(TableJiaojieDanDao.java:688)
at com.etms.dao.util.DescTable.getTable(DescTable.java:56)
at com.etms.web.action.YangJiaoJieDanActionAction.normalApproval(YangJiaoJieDanActionAction.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:269)
at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:170)
at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.etms.filter.LoginFilter.doFilter(LoginFilter.java:40)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.etms.filter.EncodingFilter.doFilter(EncodingFilter.java:40)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
at java.lang.Thread.run(Thread.java:662)
 
注:Query q = session.createQuery("select ViewJiaojiedanGuihuachuOld(countNumber,equiptype,equipname,appusername,taskid,username,nodStartTime,connectcode,approvecertificatecode,undertakecode,approvetype,fileGetTime,nodEndTime) from ViewJiaojiedanGuihuachuOld where funcid=?");写错了,丢了new,应为Query q = session.createQuery("select new ViewJiaojiedanGuihuachuOld(countNumber,equiptype,equipname,appusername,taskid,username,nodStartTime,connectcode,approvecertificatecode,undertakecode,approvetype,fileGetTime,nodEndTime) from ViewJiaojiedanGuihuachuOld where funcid=?");

java.lang.IllegalStateException: No data type for node: org.hibernate.hql.ast.tree.MethodNode(尼玛,蛋疼的错误)的更多相关文章

  1. hql错误:No data type for node: org.hibernate.hql.ast.tree.IdentNode

    今天写了一个查询,用的是hql,数据库是mysql.多表联查,结果报错了报: \-[IDENT] IdentNode: 'routerNumber' {originalText=routerNumbe ...

  2. Caused by: java.lang.IllegalStateException: Expected raw type form of org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$Match

    spring 4.0.2,mybatis 3.2.6,aspectjweaver 1.8.10 使用的时候,报错: Caused by: java.lang.IllegalStateException ...

  3. no data type for node

    java.lang.IllegalStateException: No data type for node: org.hibernate.hql.ast.tree.IdentNode  \-[IDE ...

  4. java.lang.IllegalStateException:Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.

    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.xxx...}: java.lang.IllegalSta ...

  5. java.lang.IllegalStateException: Couldn't read row 1, col 0 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data fr

    Android中操作Sqlite遇到的错误:java.lang.IllegalStateException: Couldn't read row 1, col 0 from CursorWindow. ...

  6. java.lang.IllegalStateException: Method get not annotated with HTTP method type (ex. GET, POST);

    明明指定了请求方法类型还报错: 代码: @RequestMapping(value="/enterprise/detail",method = RequestMethod.POST ...

  7. Springboot 上传报错: Failed to parse multipart servlet request; nested exception is java.lang.IllegalStateException: The multi-part request contained parameter data (excluding uploaded files) that exceede

    Failed to parse multipart servlet request; nested exception is java.lang.IllegalStateException: The ...

  8. Feign调用远程服务报错:Caused by: java.lang.IllegalStateException: Method getMemberInfo not annotated with HTTP method type (ex. GET, POST)

    org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'ord ...

  9. ES failed to notify ClusterStateListener java.lang.IllegalStateException: environment is not locked

    ES出现异常: failed to notify ClusterStateListenerjava.lang.IllegalStateException: environment is not loc ...

随机推荐

  1. C++ 面向对象学习1

    #include "stdafx.h" #include <iostream> //不要遗漏 否则不能使用cout using namespace std; class ...

  2. 干I​n​l​a​y​的​生​产​过​程​

    •天线的组成 天线的材料有0.38PET和0.16以及0.3的铝箔组成. 倒封装 •将IC倒装在天线焊盘位置. •方法:先点胶水, 然后把IC对准焊盘(IC一面有凸点),通过热压把IC 固定在焊盘上. ...

  3. sed(查找替换) 与awk(提取字段)

    通常: sed 处理列  awk处理行 比较方便 Sed是一个基本的查找替换程序     sed -i   "s/^@//g"     文件  #原地操作原文件,进行替换 cat ...

  4. Cocos2d—X游戏开发之VS2010 控制台输出中文,模拟器中文乱码问题解决

    首先,先解决第一个问题,我们使用VS2010开发的时候,调试的时候,中文打印出来都是乱码,这个问题很纠结. 如下图: CCLOG("cclog: 测试使用标签的自动换行和个别字体大写&quo ...

  5. ThinkPHP 3.1.2 模板中的变量

    一.变量输出 (重点) 1.标量输出 2.数组输出 {$name[1]} {$name['k2']} {$name.k1} 3.对象输出 {$name:k} {$name->k} 二.系统变量 ...

  6. HDU 2815 Mod Tree

    不会,先搁着…… http://blog.csdn.net/acm_cxlove/article/details/7832197

  7. ajax 中文乱码

     ajax 中文乱码  Firefox 正常,IE 有问题是 解决办法 data:{"name":name,"number":number,"card ...

  8. Qtwebkit配置,设置交叉编译环境 - croop520的专栏 - 博客频道 - CSDN.NET

    Qtwebkit配置,设置交叉编译环境 - croop520的专栏 - 博客频道 - CSDN.NET Qtwebkit配置,设置交叉编译环境 分类: Qt Webkit 2012-04-12 15: ...

  9. VS2008编译iconv静态链接库

    iconv是将一种编码格式转换为还有一种编码格式的开源库,比如能够把Windows环境下通用的ASCii(中文是GB2312)编码转换为国际通用的Unicode编码 iconv最新版本号仅仅支持Min ...

  10. 实现JQuery_Accordion功能

    1. 添加AJAX引用 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/li ...