首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java相关 >

瞥看这什么情况

2013-12-28 
看看这什么情况type Exception reportmessage description The server encountered an internal error ()

看看这什么情况
type Exception report

message 

description The server encountered an internal error () that prevented it from fulfilling this request.

exception 

org.apache.jasper.JasperException: org.hibernate.hql.ast.QuerySyntaxException: unexpected token: null near line 1, column 40 [from local.spring.table.Xm_lc where id=]
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.unitech.filter.SecurityFilter.doFilter(SecurityFilter.java:152)
com.unitech.filter.EncodingFilter.doFilter(EncodingFilter.java:27)


root cause 

org.hibernate.hql.ast.QuerySyntaxException: unexpected token: null near line 1, column 40 [from local.spring.table.Xm_lc where id=]
org.hibernate.hql.ast.ErrorCounter.throwQueryException(ErrorCounter.java:59)
org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:244)
org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:155)
org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:109)
org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:75)
org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:54)
org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:71)
org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)
org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:112)
org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1583)
com.unitech.hibernate.HibernateHelp.queryOne(HibernateHelp.java:318)
com.unitech.hibernate.HibernateHelp.queryOne(HibernateHelp.java:300)
org.apache.jsp.common.htwg_005fjl_005fsh_005fdetail_jsp._jspService(htwg_005fjl_005fsh_005fdetail_jsp.java:74)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.unitech.filter.SecurityFilter.doFilter(SecurityFilter.java:152)
com.unitech.filter.EncodingFilter.doFilter(EncodingFilter.java:27)


root cause 

line 1:40: unexpected token: null
org.hibernate.hql.antlr.HqlBaseParser.unaryExpression(HqlBaseParser.java:3207)
org.hibernate.hql.antlr.HqlBaseParser.multiplyExpression(HqlBaseParser.java:3082)
org.hibernate.hql.antlr.HqlBaseParser.additiveExpression(HqlBaseParser.java:2802)
org.hibernate.hql.antlr.HqlBaseParser.concatenation(HqlBaseParser.java:570)
org.hibernate.hql.antlr.HqlBaseParser.relationalExpression(HqlBaseParser.java:2586)
org.hibernate.hql.antlr.HqlBaseParser.equalityExpression(HqlBaseParser.java:2542)
org.hibernate.hql.antlr.HqlBaseParser.negatedExpression(HqlBaseParser.java:2413)
org.hibernate.hql.antlr.HqlBaseParser.logicalAndExpression(HqlBaseParser.java:2331)
org.hibernate.hql.antlr.HqlBaseParser.logicalOrExpression(HqlBaseParser.java:2296)
org.hibernate.hql.antlr.HqlBaseParser.expression(HqlBaseParser.java:2082)
org.hibernate.hql.antlr.HqlBaseParser.logicalExpression(HqlBaseParser.java:1858)
org.hibernate.hql.antlr.HqlBaseParser.whereClause(HqlBaseParser.java:454)
org.hibernate.hql.antlr.HqlBaseParser.queryRule(HqlBaseParser.java:708)
org.hibernate.hql.antlr.HqlBaseParser.selectStatement(HqlBaseParser.java:296)
org.hibernate.hql.antlr.HqlBaseParser.statement(HqlBaseParser.java:159)
org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:238)
org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:155)
org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:109)
org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:75)
org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:54)
org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:71)
org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)
org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:112)
org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1583)
com.unitech.hibernate.HibernateHelp.queryOne(HibernateHelp.java:318)
com.unitech.hibernate.HibernateHelp.queryOne(HibernateHelp.java:300)
org.apache.jsp.common.htwg_005fjl_005fsh_005fdetail_jsp._jspService(htwg_005fjl_005fsh_005fdetail_jsp.java:74)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.unitech.filter.SecurityFilter.doFilter(SecurityFilter.java:152)
com.unitech.filter.EncodingFilter.doFilter(EncodingFilter.java:27)


note The full stack trace of the root cause is available in the Apache Tomcat/6.0.20 logs.




--------------------------------------------------------------------------------

Apache Tomcat/6.0.20
[解决办法]
org.apache.jasper.JasperException: org.hibernate.hql.ast.QuerySyntaxException: unexpected token: null near line 1, column 40 [from local.spring.table.Xm_lc where id=]


HSQL 写的不正确

热点排行