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. 设置Firefox禁用js缓存

    让firefox禁用缓存 让Firefox不再使用缓存网站开发时经常会有这样的疑问:为什么修改了代码,刷新了页面还是没有看到改动呢? 其实,可能只是你的Firefox并没有去下载你更新了的文件. 这时 ...

  2. SQL中采用Newtonsoft.Json处理json字符串

    原文 SQL中采用Newtonsoft.Json处理json字符串 使用环境: SQL Server2005; VS2010; 关于SQL中部署CLR程序集的方法,网上一搜一大把,需要了解的自行查阅, ...

  3. Python单元测试:unittest使用简介

    一.概述 本文介绍python的单元测试框架unittest,这是Python自带的标准模块unittest.unittest是基于java中的流行单元测试框架junit设计的,其功能强大且灵活,对于 ...

  4. php扩展类开发实例

    class Vector2D { private $_x; private $_y; /** * Constructor. */ public function __construct($x = 0, ...

  5. WEB和APP谁是互联网未来

    据中国多家权威报告显示,作为多年专业化互联网公司炎帝网络科技综合评估预测,预计2016年全球互联网设备将达到100亿部.如果届时全球人口达到73亿,意味着平均每人将有1.4部设备.智能交通将增长50倍 ...

  6. Microsoft Accelerator for Windows Azure Alum Azuqua 今天启动

     云最大的一个优势就是,它使开发人员比以往任何时候都更迅速.更灵活.在 Windows Azure 中开发应用程序时,工程师无需考虑架设服务器.规划容量或进行日常维护.相反,他们可以专注于提出假设 ...

  7. $.getJSON(url,function success(){})回调函数不起作用

    有个问题好久没有解决,就是: $.getJSON(url,function success(){}) 其中的回调函数,总也不执行. 以前也做过,但那都是CTRL+C,CTRL+V,也没有细想. 目标就 ...

  8. DOM Traversal Example | Documentation | Qt Project

    DOM Traversal Example | Documentation | Qt Project DOM Traversal Example

  9. C++ Primer 学习笔记_75_模板与泛型编程 --模板定义

    模板与泛型编程 --模板定义 引言: 所谓泛型程序就是以独立于不论什么特定类型的方式编写代码.使用泛型程序时,我们须要提供详细程序实例所操作的类型或值. 模板是泛型编程的基础.使用模板时能够无须了解模 ...

  10. STL之使用vector排序

    应用场景: 在内存中维持一个有序的vector: // VectorSort.cpp : Defines the entry point for the console application. #i ...