删除记录出错
bbhmm 发布于100月前 3答/1031阅

我想实现的功能:删除记录   


过程中遇到的问题:ClassCastException:java.lang.Integer cannot be cast to [Ljava.lang.Object;


我的分析过程如下:



[沙发] bbhmm
使用的是mysql数据库。。。。。
[地板] bbhmm
错误记录

Sql: select * from eova_object where code = ?
Sql: select * from eova_field where object_code = ? order by order_num
java.lang.ClassCastException: java.lang.Integer cannot be cast to [Ljava.lang.Object;
	at com.jfinal.plugin.activerecord.DbPro.delete(DbPro.java:434)
	at com.eova.widget.grid.GridController$2.run(GridController.java:280)
	at com.jfinal.plugin.activerecord.DbPro.tx(DbPro.java:720)
	at com.jfinal.plugin.activerecord.DbPro.tx(DbPro.java:757)
	at com.jfinal.plugin.activerecord.Db.tx(Db.java:460)
	at com.eova.widget.grid.GridController.delete(GridController.java:260)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.jfinal.aop.Invocation.invoke(Invocation.java:73)
	at com.eova.interceptor.LoginInterceptor.intercept(LoginInterceptor.java:50)
	at com.jfinal.aop.Invocation.invoke(Invocation.java:67)
	at com.jfinal.core.ActionHandler.handle(ActionHandler.java:74)
	at com.jfinal.plugin.druid.DruidStatViewHandler.handle(DruidStatViewHandler.java:75)
	at com.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:72)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessL
[地毯] Jieven
这是操作什么功能出现的异常,其它功能是否能重现?
提交评论