起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2985|回复: 2

[结贴] 级联删除java,哪里错了

[复制链接]

99

主题

402

帖子

1095

积分

金牌会员

Rank: 6Rank: 6

积分
1095
QQ
发表于 2017-4-22 21:08:03 | 显示全部楼层 |阅读模式
版本: 其它(帖子中说明) 小版本号:
数据库: MySQL 服务器操作系统: 应用服务器:
客户端操作系统: Windows 其它 浏览器:
public static void delDestroy(String rowid){
                String sql = "delete from mis_dc_filedestroydetail where fDestroyID ='"+rowid+"'";
                HashMap<String, String> map = new HashMap<String, String>();
                map.put(DatabaseProduct.MYSQL.name(), sql);
                System.out.println("aaaaa");
                 int i= SQL.executeUpdate(map, null,"/system/data");
               
        }


控制台错误:


7-04-22 20:59:45 excute stream action, params:{"accept":"application/json","action":"delDestroy","actionFlag":"__action_0__","activity":"staticActivity1","contentType":"json","executeContext":"","executor":"","parameters":{"rowid":"42483034CF9B43D6AAA3D8AEEEB7E5A6"},"process":"/MIS/doc/process/destroyFile/destroyFileProcess"}
java.lang.reflect.InvocationTargetException
        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:497)
        at com.justep.system.action.Engine.invokeActions(Native Method)
        at com.justep.system.action.Engine.invokeActions(Unknown Source)
        at com.justep.business.server.BusinessServer.doAction(Unknown Source)
        at com.justep.business.server.BusinessServer.doExcute(Unknown Source)
        at com.justep.business.server.BusinessServer.excute(Unknown Source)
        at com.justep.business.server.BusinessServer.excute(Unknown Source)
        at com.justep.business.server.BusinessServerServlet.execService(Unknown Source)
        at com.justep.business.server.BusinessServerServlet.service(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
        at com.justep.x.bs.BusinessServerServlet.service(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:745)
Caused by: com.justep.exception.BusinessException: 编码: JUSTEP150039; 提示: 执行sql: delete from mis_dc_filedestroydetail where fDestroyID ='42483034CF9B43D6AAA3D8AEEEB7E5A6', binds: []出错
        at com.justep.exception.BusinessException.create(Unknown Source)
        at com.justep.system.data.SQL.executeUpdate(Unknown Source)
        at com.justep.system.data.SQL.executeUpdate(Unknown Source)
        at Doc.delDestroy(Doc.java:344)
        ... 27 more
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'x5sys_test.mis_dc_filedestroydetail' doesn't exist
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:422)

白日不到处,
青春恰自来。
苔花如米小,
也学牡丹开。

99

主题

402

帖子

1095

积分

金牌会员

Rank: 6Rank: 6

积分
1095
QQ
 楼主| 发表于 2017-4-22 21:48:49 | 显示全部楼层
求救,求救
白日不到处,
青春恰自来。
苔花如米小,
也学牡丹开。
回复

使用道具 举报

99

主题

402

帖子

1095

积分

金牌会员

Rank: 6Rank: 6

积分
1095
QQ
 楼主| 发表于 2017-4-23 21:28:43 | 显示全部楼层
结帖
白日不到处,
青春恰自来。
苔花如米小,
也学牡丹开。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-11-24 04:13 , Processed in 0.055626 second(s), 25 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表