ibatis ArrayIndexOutOfBoundsException 请帮忙
console: --- The error occurred in com/bonc/dss/hq/terminal/sqlmap/sqlmap-analyseOverView.xml. --- The error occurred while executing mapped statement. --- Check the hq.terminal.analyseOverView.queryManuDataList. --- Check the SQL statement or the result map. --- Cause: java.lang.ArrayIndexOutOfBoundsException: -1; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in com/bonc/dss/hq/terminal/sqlmap/sqlmap-analyseOverView.xml. --- The error occurred while executing mapped statement. --- Check the hq.terminal.analyseOverView.queryManuDataList. --- Check the SQL statement or the result map. --- Cause: java.lang.ArrayIndexOutOfBoundsException: -1 sqlmap.xml: <select id="queryManuDataList" resultClass="com.bonc.dss.hq.terminal.pojo.AnalyseOverViewPo" parameterClass="hashmap"> select * from ZBA_DM_U_REG_M </select> AnalyseOverViewPo.java(get set省略): private String monthid; private String provid; private String manuid; private String modelid; private long activationCount; private long cmccCount; private long cuccCount; private String usernum_PI; private String manuname; private String names; private long unidentCount; AnalyseOverViewAction.java: public String manuList(){ DaoHelper daoHelp = (DaoHelper) SpringUtils.getBean("daoHelper"); Map<String, String> map = new HashMap<String, String>(); map.put("provId", provId); map.put("monthId", monthId); map.put("sql", sql); dataList = daoHelp.queryForPagiList("hq.terminal.analyseOverView.queryManuDataList", map, pagiParam); map.clear(); return "list"; } 当重启tomcat第一次触发action时正常,第二次就报上面的错误,帮忙看下,谢谢!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
hq.terminal.analyseOverView.queryManuDataList
里面数组越界了