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/C++语言——C++/C常量(2)

  2. IOS 定位服务与地图的应用开发

    1.定位服务 现在的移动设备很多都提供定位服务,IOS设备提供3种不同定位途径: (1)WiFi定位,通过查询一个WiFi路由器的地理位置的信息,比较省电:IPhone,IPod touch和IPad ...

  3. 设置MAVEN_OPTS的推荐方法

    运行mvn eclipse:eclipse时,经常会出现因为maven项目过大,导致内存不足java栈溢出的error,需要更改MAVEN启动内存 http://stackoverflow.com/q ...

  4. HeapAnalyzer

    https://www.ibm.com/developerworks/community/groups/service/html/communityview?communityUuid=4544baf ...

  5. QT类型转换(九种转换)

    1.char * 与 const char *的转换 char *ch1="hello11";const char *ch2="hello22";ch2 = c ...

  6. Eclipse 代码提示不显示的问题

    在备份Android SDK和Eclipse的时候出了问题,然后只能重新下载,SDK下得我都要吐血了,超慢.然后,我发现Eclipse有了新版本的,于是就下载了个新版的,结果出了问题了.所有的Andr ...

  7. [Asp.net]常见word,excel,ppt,pdf在线预览方案(转)

    引言 之前项目需要,查找了office文档在线预览的解决方案,顺便记录一下,方便以后查询. 方案一 直接在浏览器中打开Office文档在页面上的链接.会弹出如下窗口: 优点:主流浏览器都支持. 缺点: ...

  8. IIS 7关闭应用程序池自动回收设置

    在web应用程序中经常有一些任务就需要在Global文件启用一个线程来实现, 那假设我们在自己的ASP.NET应用程序中加入了Quartz.NET框架,并且配置等等都OK了. 这个站点访问量很少,现在 ...

  9. Html.text(转载)

    2.Html.ValidationSummary:用来显示ModelState字典中所有验证错误的无序列表,使用布尔值类型参数(true)来告知辅助方法排除属性级别的错误,只显示ModelState中 ...

  10. Tomcat7.0.22在Windows下详细配置过程

    Tomcat7.0.22在Windows下详细配置过程 一.JDK1.7安装 1.下载jdk,下载地址:http://www.oracle.com/technetwork/java/javase/do ...