|
请教一下,我在list.w 页面中,使用baasData数据,关联数据库中一张表,然后用detail.w页面做“新增数据”和“修改数据”的功能。页面之间使用windowdialog 和 windowreceiver进行页面见交互数据。其中window dialog的mapping也做好了。
在“新增数据”中,完全实现,数据存储也没有问题。在list.w页面中的 windowdialogReceived中进行数据保存 data.savedata(); 一切正常。
奇怪的是,在数据修改的功能上面,总是不能存储成功。
返回的错误信息如下:
版主能指点一下,是哪里出了问题吗?谢谢。
HTTP Status 500 - 执行Action:Laxchary/Laxchary_action/saveTb_twoclass失败,Action[Laxchary/Laxchary_action/saveTb_twoclass]执行失败,SQL执行失败,com.mysql.jdbc.JDBC4PreparedStatement@1c5c430: INSERT INTO tb_twoclass (fTwoClassID,fTwoClassImgUrl,fTwoClassName,fb_OneClassID) VALUES ('C72B357743000001462F18906710B9F0','[{"storeFileName":"C72B3578D2E00001B783F9B01988AC70","realFileName":"list5.jpg"}]','4444','C72B28EEE6C00001AB127240EE841472')
type Exception report
message 执行Action:Laxchary/Laxchary_action/saveTb_twoclass失败,Action[Laxchary/Laxchary_action/saveTb_twoclass]执行失败,SQL执行失败,com.mysql.jdbc.JDBC4PreparedStatement@1c5c430: INSERT INTO tb_twoclass (fTwoClassID,fTwoClassImgUrl,fTwoClassName,fb_OneClassID) VALUES ('C72B357743000001462F18906710B9F0','[{"storeFileName":"C72B3578D2E00001B783F9B01988AC70","realFileName":"list5.jpg"}]','4444','C72B28EEE6C00001AB127240EE841472')
description The server encountered an internal error that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: 执行Action:Laxchary/Laxchary_action/saveTb_twoclass失败,Action[Laxchary/Laxchary_action/saveTb_twoclass]执行失败,SQL执行失败,com.mysql.jdbc.JDBC4PreparedStatement@1c5c430: INSERT INTO tb_twoclass (fTwoClassID,fTwoClassImgUrl,fTwoClassName,fb_OneClassID) VALUES ('C72B357743000001462F18906710B9F0','[{"storeFileName":"C72B3578D2E00001B783F9B01988AC70","realFileName":"list5.jpg"}]','4444','C72B28EEE6C00001AB127240EE841472')
com.justep.baas.servlet.BaasServlet.execService(Unknown Source)
com.justep.baas.servlet.BaasServlet.service(Unknown Source)
root cause
com.justep.baas.action.ActionException: Action[Laxchary/Laxchary_action/saveTb_twoclass]执行失败,SQL执行失败,com.mysql.jdbc.JDBC4PreparedStatement@1c5c430: INSERT INTO tb_twoclass (fTwoClassID,fTwoClassImgUrl,fTwoClassName,fb_OneClassID) VALUES ('C72B357743000001462F18906710B9F0','[{"storeFileName":"C72B3578D2E00001B783F9B01988AC70","realFileName":"list5.jpg"}]','4444','C72B28EEE6C00001AB127240EE841472')
com.justep.baas.action.Engine.execAction(Unknown Source)
com.justep.baas.action.Engine.execAction(Unknown Source)
com.justep.baas.servlet.BaasServlet.execService(Unknown Source)
com.justep.baas.servlet.BaasServlet.service(Unknown Source)
root cause
java.lang.reflect.InvocationTargetException
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:497)
com.justep.baas.action.Engine.execAction(Unknown Source)
com.justep.baas.action.Engine.execAction(Unknown Source)
com.justep.baas.servlet.BaasServlet.execService(Unknown Source)
com.justep.baas.servlet.BaasServlet.service(Unknown Source)
root cause
com.justep.baas.data.sql.SQLException: SQL执行失败,com.mysql.jdbc.JDBC4PreparedStatement@1c5c430: INSERT INTO tb_twoclass (fTwoClassID,fTwoClassImgUrl,fTwoClassName,fb_OneClassID) VALUES ('C72B357743000001462F18906710B9F0','[{"storeFileName":"C72B3578D2E00001B783F9B01988AC70","realFileName":"list5.jpg"}]','4444','C72B28EEE6C00001AB127240EE841472')
com.justep.baas.data.DataUtils.saveData(Unknown Source)
com.justep.baas.data.DataUtils.saveData(Unknown Source)
com.justep.baas.action.CRUD.save(Unknown Source)
Laxchary.Laxchary_action__do.saveTb_twoclass(Laxchary_action__do.java:139)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:497)
com.justep.baas.action.Engine.execAction(Unknown Source)
com.justep.baas.action.Engine.execAction(Unknown Source)
com.justep.baas.servlet.BaasServlet.execService(Unknown Source)
com.justep.baas.servlet.BaasServlet.service(Unknown Source)
root cause
com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry 'C72B357743000001462F18906710B9F0' for key 'PRIMARY'
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
java.lang.reflect.Constructor.newInstance(Constructor.java:422)
com.mysql.jdbc.Util.handleNewInstance(Util.java:400)
com.mysql.jdbc.Util.getInstance(Util.java:383)
com.mysql.jdbc.SQLError.createSQLException(SQLError.java:973)
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3847)
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3783)
com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2447)
com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2594)
com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2545)
com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1901)
com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1193)
org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172)
org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172)
com.justep.baas.data.DataUtils.saveData(Unknown Source)
com.justep.baas.data.DataUtils.saveData(Unknown Source)
com.justep.baas.action.CRUD.save(Unknown Source)
Laxchary.Laxchary_action__do.saveTb_twoclass(Laxchary_action__do.java:139)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:497)
com.justep.baas.action.Engine.execAction(Unknown Source)
com.justep.baas.action.Engine.execAction(Unknown Source)
com.justep.baas.servlet.BaasServlet.execService(Unknown Source)
com.justep.baas.servlet.BaasServlet.service(Unknown Source)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.41 logs.
Apache Tomcat/6.0.41 |
|