急,求支招。Cannot call sendError() after the response

    运用的是Struts2框架。
    一个错误页面404.jsp
    控制层代码:
    public String rerror() {
            return "error";
    }

    struts2代码:
    <result name="error" type="redirect">/404.jsp</result>

    访问action,后出现错误提示信息:

    HTTP Status 500 - Cannot call sendError() after the response has been committed

    从网上找到说是两次提交了response,但是我仅仅只是return  "error"还是会出错。
    这个问题已经纠结了好久。求指教。

1.servlet或jsp中,重复调用response的 getOutputStream(),response.getWriter()方法
2.form表单里没有 method="post" action=""参数
3.看JDBC操纵数据库的代码,仔细看,例如调用的对象的属性为null。
Connection conn=null; 之后之就调用了conn.??的方法
我就时错在这里
仅供参考!