错误:
javax.servlet.ServletException: com.CallCenter.bo.TbBulletin
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:627)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
com.CallCenter.common.FilterEncoding.doFilter(FilterEncoding.java:39)
root cause java.lang.ClassCastException: com.CallCenter.bo.TbBulletin
java.util.TreeMap.compare(TreeMap.java:1093)
java.util.TreeMap.put(TreeMap.java:465)
com.CallCenter.web.struts.action.QueryBulletion.execute(QueryBulletion.java:38)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
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:627)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
com.CallCenter.common.FilterEncoding.doFilter(FilterEncoding.java:39)代码:
HashMap<TbBulletin, String> map = new HashMap<TbBulletin, String>();
List bulletionList = bulletionService.getAll();
if(bulletionList!=null && bulletionList.size()>0){
Object obj[] = null;
for(int i = 0;i<bulletionList.size();i++){
obj= (Object[])bulletionList.get(i);
map.put((TbBulletin)obj[0], String.valueOf(obj[1]));
}
}
javax.servlet.ServletException: com.CallCenter.bo.TbBulletin
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:627)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
com.CallCenter.common.FilterEncoding.doFilter(FilterEncoding.java:39)
root cause java.lang.ClassCastException: com.CallCenter.bo.TbBulletin
java.util.TreeMap.compare(TreeMap.java:1093)
java.util.TreeMap.put(TreeMap.java:465)
com.CallCenter.web.struts.action.QueryBulletion.execute(QueryBulletion.java:38)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
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:627)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
com.CallCenter.common.FilterEncoding.doFilter(FilterEncoding.java:39)代码:
HashMap<TbBulletin, String> map = new HashMap<TbBulletin, String>();
List bulletionList = bulletionService.getAll();
if(bulletionList!=null && bulletionList.size()>0){
Object obj[] = null;
for(int i = 0;i<bulletionList.size();i++){
obj= (Object[])bulletionList.get(i);
map.put((TbBulletin)obj[0], String.valueOf(obj[1]));
}
}
(TbBulletin)obj[0],obj[0]是什么类型,能转成TbBulletin?
TbBulletin 具有可比性没; 等等