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. 一个Sqrt函数引发的血案(转)

    作者: 码农1946  来源: 博客园  发布时间: 2013-10-09 11:37  阅读: 4556 次  推荐: 41   原文链接   [收藏]   好吧,我承认我标题党了,不过既然你来了, ...

  2. socket 通信 入门3 android 客户端 C# 服务端

    这是一个android端操控服务器的例子  就是发送简单指令到服务器  然后服务器响应什么的... 当然这里是未完成的  只是简单展示一下大致思路 首先连接建立起来后  服务端给客户端一条信息  告诉 ...

  3. 转: bower 客户端库管理工具

    概述 常用操作 库的安装 库的搜索和查看 库的更新和卸载 列出所有库 配置文件.bowerrc 库信息文件bower.json 相关链接 概述 注:bower下载安装依赖库实际上是使用git进行下载. ...

  4. activemq下activemq.bat不能启动

    今天下载了一个apache-activemq-5.5.0-bin.rar解压缩后双击/bin目录下的activemq.bat批处理文件发现启动窗口一闪而过无法启动,最后找到原因是因为在环境变量-系统变 ...

  5. javaweb学习路之三--websocket多人在线聊天

    在之前的项目基础上,加入了一个聊天室的功能,为了界面好看 引入了AmazeUI和umeditor最终效果图如下: 源码在 https://github.com/Zering/MyWeb 目前练习都在这 ...

  6. [译]Stairway to Integration Services Level 13 - SSIS 变量回顾

    介绍 在前一篇中我们组合了已经学过的事件冒泡 event bubbling, 日志记录 logging, 和父子模型 Parent-Child pattern 建立了自定义的SSIS包日志记录. 本文 ...

  7. 深入浅出—JAVA(6)

    6.认识JAVA的API Arraylist的操作

  8. 0课程介绍(Week1,3月3日)

    一.自我介绍 1.姓名:杨晔 2.办公室:B211-2 3.电子邮件:yangye@zjjy.com.cn 4.QQ:6706892 5.博客:http://www.cnblogs.com/meety ...

  9. 基于visual Studio2013解决C语言竞赛题之0205位数求和

     题目

  10. Muduo 网络编程示例之零:前言

    陈硕 (giantchen_AT_gmail)Blog.csdn.net/Solstice Muduo 全系列文章列表: http://blog.csdn.net/Solstice/category/ ...