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=?");