java.lang.IllegalArgumentException: node to traverse cannot be null!
2009-04-21 18:45
736 查看
java.lang.IllegalArgumentException: node to traverse cannot be null! at org.hibernate.hql.ast.util.NodeTraverser.traverseDepthFirst(NodeTraverser.java:31) at org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:254) at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:157) at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111) 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:1623) at com.kettas.myznt.dao.impl.IQuestionDaoHibernateImpl.queryByCommenflag(IQuestionDaoHibernateImpl.java:21) at com.kettas.myznt.struts.action.IndexAction.list(IndexAction.java:68) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:270) at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:187) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) 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.kettas.myznt.filter.EncodingFilter.doFilter(EncodingFilter.java:23) 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:230) 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:261) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Unknown Source) 问题解决: 出现这种问题是因为HQL语句出现问题,引起内部查询对象为空,无法处理为空值引起的。解决方法,检查HQL语句(尤其是关键字)。 |
相关文章推荐
- 三大框架整合过程中报错"java.lang.IllegalArgumentException: node to traverse cannot be null!"出现的原因
- 错误:java.lang.IllegalArgumentException: node to traverse cannot be null!
- java.lang.IllegalArgumentException: node to traverse cannot be null!
- java.lang.IllegalArgumentException: node to traverse cannot be null!
- java.lang.IllegalArgumentException: node to traverse cannot be null!
- java.lang.IllegalArgumentException: node to traverse cannot be null!
- java.lang.IllegalArgumentException: node to traverse cannot be null!
- java.lang.IllegalArgumentException: node to traverse cannot be null!
- java.lang.IllegalArgumentException: node to traverse cannot be null!
- java.lang.IllegalArgumentException: node to traverse cannot be null
- java.lang.IllegalArgumentException: node to traverse cannot be null!
- java.lang.IllegalArgumentException: node to traverse cannot be null!
- java.lang.IllegalArgumentException: node to traverse cannot be null!
- java.lang.IllegalArgumentException: node to traverse cannot be null! HQL语法问题
- java.lang.IllegalArgumentException: node to traverse cannot be null!
- java.lang.IllegalArgumentException: node to traverse cannot be null!
- java.lang.IllegalArgumentException: node to traverse cannot be null!
- java.lang.IllegalArgumentException: node to traverse cannot be null!
- java.lang.IllegalArgumentException: node to traverse cannot be null!
- java.lang.IllegalArgumentException: node to traverse cannot be null!