这个错误常出现在该用try 或者catch或者throw new 的地方没用上。try
{
......
}
catch (SQLException e) {
{
............
throw new RuntimeException("Unable to ......");
}
试试在出错处理处加上“throw ”,例如上述结构。
{
......
}
catch (SQLException e) {
{
............
throw new RuntimeException("Unable to ......");
}
试试在出错处理处加上“throw ”,例如上述结构。
getServlet().log("处理数据库连接", e);
} finally {
你应该在Catch SQLException后面再Catch 一下Exception这样才能比较全地捕获异常再看看到底是什么地方出了错不过,我估计是你这里除了错 String name=((sample.GetNameForm)form).getName();
String password=((sample.GetNameForm)form).getPassword();
自己在查查??
at sample.GreetingAction.execute(Unknown Source)