|

楼主 |
发表于 2018-11-12 11:25:19
|
显示全部楼层
<html><head><title>Apache Tomcat/6.0.41 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - 执行Action:Input/MainInput/saveFX_tDailyDesign失败,Action[Input/MainInput/saveFX_tDailyDesign]执行失败,null</h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u>执行Action:Input/MainInput/saveFX_tDailyDesign失败,Action[Input/MainInput/saveFX_tDailyDesign]执行失败,null</u></p><p><b>description</b> <u>The server encountered an internal error that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>javax.servlet.ServletException: 执行Action:Input/MainInput/saveFX_tDailyDesign失败,Action[Input/MainInput/saveFX_tDailyDesign]执行失败,null
com.justep.baas.servlet.BaasServlet.execService(Unknown Source)
com.justep.baas.servlet.BaasServlet.service(Unknown Source)
</pre></p><p><b>root cause</b> <pre>com.justep.baas.action.ActionException: Action[Input/MainInput/saveFX_tDailyDesign]执行失败,null
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)
</pre></p><p><b>note</b> <u>The full stack trace of the root cause is available in the Apache Tomcat/6.0.41 logs.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.41</h3></body></html>
这个报错是因为什么呢?
Java:
public static JSONObject saveInfo(JSONObject params, ActionContext context) throws SQLException, NamingException {
Connection conn=context.getConnection("LC.42");
String FID=params.getString("LSID");
String WHRQ=params.getString("WHRQ");
String SJSCode=params.getString("SJSCode");
String KHCode=params.getString("KHCode");
String KFJJ=params.getString("KFJJ");
String TGSJ=params.getString("TGSJ");
String KFS=params.getBigDecimal("KFS").toString();
String KFBZ=params.getString("KFBZ");
String DPKFS=params.getBigDecimal("DPKFS").toString();
String DPKFBZ=params.getString("DPKFBZ");
String YSKFS=params.getBigDecimal("YSKFS").toString();
String YSKFBZ=params.getString("YSKFBZ");
String YBZS=params.getBigDecimal("YBZS").toString();
String PPTZS=params.getBigDecimal("PPTZS").toString();
try{
String sql="select * from FX_tDailyDesign where LSID='"+FID+"'";
JSONObject ret=new JSONObject();
int count=Integer.parseInt(DataUtils.getValueBySQL(conn, sql, null).toString());
if(count>0)
{
java.sql.PreparedStatement pstmt=null;
pstmt=conn.prepareStatement("update FX_tDailyDesign set WHRQ='"+WHRQ+"' ,SJSCode='"+SJSCode+"',KFJJ='"+KFJJ+"',KHCode='"+KHCode+"',TGSJ='"+TGSJ+"'," +
"KFS='"+KFS+"',KFBZ='"+KFBZ+"',DPKFS='"+DPKFS+"',DPKFBZ='"+DPKFBZ+"',YSKFS='"+YSKFS+"',YSKFBZ='"+YSKFBZ+"',YBZS='"+YBZS+"',PPTZS='"+PPTZS+"' where LSID='"+FID+"' ");
pstmt.execute();
}
else{
java.sql.PreparedStatement pstmt=null;
pstmt=conn.prepareStatement("insert into FX_tDailyDesign(LSID,WHRQ,SJSCode,KFJJ,KHCode,TGSJ,KFS,KFBZ,DPKFS,DPKFBZ,YSKFS,YSKFBZ,YBZS,PPTZS) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?)");
pstmt.setString(1, FID);
pstmt.setString(2, WHRQ);
pstmt.setString(3, SJSCode);
pstmt.setString(4, KFJJ);
pstmt.setString(5, KHCode);
pstmt.setString(6, TGSJ);
pstmt.setString(7, KFS);
pstmt.setString(8, KFBZ);
pstmt.setString(9, DPKFS);
pstmt.setString(10, DPKFBZ);
pstmt.setString(11, YSKFS);
pstmt.setString(12, YSKFBZ);
pstmt.setString(13, YBZS);
pstmt.setString(14,PPTZS);
pstmt.execute();
}
ret.put("state", "1");
return ret;
}catch(SQLException ee){
conn.rollback();
throw ee;
}
finally{
conn.close();
}
} |
|