查询的时候出现异常如下:
javax.servlet.ServletException: org.hibernate.impl.QueryImpl
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:523)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
action.EncodingFilter.doFilter(EncodingFilter.java:46)
------解决方案--------------------
后台的堆栈的信息就这些?
不全吧
------解决方案--------------------
class java.lang.ClassCastException
这个异常就是类型不匹配,你一定是哪个类型用错了。