请问Struts在tomcat下运行出现的这个错误是怎么回事!高分相赠! emptyprj.ManageCustomDAO.findSQL(ManageCustomDAO.java:342)ManageCustomDAO.java第342行。你看看有什么错误。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 ManageCustomDAO.java第342行就只是一句: throw new RuntimeException("error.unexpected");前后文是:try { if (ps != null) ps.close(); if (rs != null) rs.close(); } catch (SQLException e) { e.printStackTrace(); throw new RuntimeException("error.unexpected"); }就是如果找不到查询结果的一场处理,好像没有什么特别 e.printStackTrace();打印的是什么? 错误是程序自己抛出来了,把异常打出来看看,应该是SQLException,数据库连接方面的吧。 应该是:try { if (rs != null) rs.close(); if (ps != null) ps.close(); } catch (SQLException e) { e.printStackTrace(); throw new RuntimeException("error.unexpected"); } emptyprj.ManageCustomDAO.findSQL(ManageCustomDAO.java:342) emptyprj.ManageCustomAction.execute(ManageCustomAction.java:131)这儿的问题。^_^ gong1,,万分感谢,就是你说的那个错误!结帐了! 求避免使用外键的理由 有没有用ibatis的高手,求助。 Oracle高手进!!!!! 求助啊!servlet返回的xml文件的编码问题,我实在搞不懂!! 求tomcat5.0安装版 请教jsp+javamail+james做邮件服务器问题. 菜包子请教: 如何指定某个目录的默认网页? 谢谢!!! 有关struts-validator的问题 请问达人们一个处理数字的问题,多谢 新手请教struts1和hibernate问题 struts:登录判断是在Action中完成的,但是登录成功了如何设置session呢 有关struts数据源的问题???
throw new RuntimeException("error.unexpected");前后文是:
try {
if (ps != null)
ps.close();
if (rs != null)
rs.close();
} catch (SQLException e) {
e.printStackTrace();
throw new RuntimeException("error.unexpected");
}
就是如果找不到查询结果的一场处理,好像没有什么特别
if (rs != null)
rs.close();
if (ps != null)
ps.close();
} catch (SQLException e) {
e.printStackTrace();
throw new RuntimeException("error.unexpected");
}
emptyprj.ManageCustomAction.execute(ManageCustomAction.java:131)
这儿的问题。^_^