- 论坛徽章:
- 0
|
两个bean,报异常。已经追踪到异常产生的地方,可是想不通为什么关闭结果集(“OK ... 002”后面)和连接(“OK ... 004”后面)会产生空指针异常。含LOG,大家给指点指点。谢谢。
Bridge_Pooled_1.java,作为JSP到数据库操作bean之间的连接,向数据库操作bean传递操作,向JSP传递处理过的操作结果。
DB_operator_Pooled_1.java,执行数据库操作,返回结果集。
相关Log。- [Start public static int bridge()]
- <Version: 2004-10-19-03>;
- -- Skip over EXCP if it is NULL.
- -- Set NULL after useing.
- -- Use TFW-Standard-Interface.
- -- Provide TFW-Standard-Interface.
- [Start public static void db_operate()*P]
- <Version: 2004-10-19-04>;
- -- Skip over the EXCP if it is NULL.
- -- Use TFW-Standard-Interface.
- -- Provide TFW-Standard-Interface.
- -- Need to close "rs".
- -- Trying Connection-Pool.
- [Ended public static void db_operate()*P]
- [Start public static String notice()]
- [Ended public static String notice()]
- [Start public static ResultSet result()]
- [Ended public static ResultSet result()]
- [Start public static Exception exception()]
- Exception caught: java.lang.NullPointerException
- [Ended public static Exception exception()]
- [Start public static int close()]
- 001 ... OK
- 002 ... OK
- 003 ... OK
- 004 ... OK
- 011 ... OK
- 012 ... OK
- 013 ... OK
- [Ended public static int close()]
- [Start public static Exception exception()]
- Exception caught: java.lang.NullPointerException
- [Ended public static Exception exception()]
- [Ended public static int bridge()]
- [Start public static String result()]
- [Ended public static String result()]
- [Start public Exception exception()]
- Exception caught: java.lang.NullPointerException
- [Ended public Exception exception()]
- [Start public static int bridge()]
- <Version: 2004-10-19-03>;
- -- Skip over EXCP if it is NULL.
- -- Set NULL after useing.
- -- Use TFW-Standard-Interface.
- -- Provide TFW-Standard-Interface.
- [Start public static void db_operate()*P]
- <Version: 2004-10-19-04>;
- -- Skip over the EXCP if it is NULL.
- -- Use TFW-Standard-Interface.
- -- Provide TFW-Standard-Interface.
- -- Need to close "rs".
- -- Trying Connection-Pool.
- [Ended public static void db_operate()*P]
- [Start public static String notice()]
- [Ended public static String notice()]
- [Start public static ResultSet result()]
- [Ended public static ResultSet result()]
- [Start public static Exception exception()]
- Exception caught: null
- [Ended public static Exception exception()]
- [Start public static int close()]
- 001 ... OK
- 002 ... OK
- 003 ... OK
- 004 ... OK
- 011 ... OK
- 012 ... OK
- 013 ... OK
- [Ended public static int close()]
- [Start public static Exception exception()]
- Exception caught: java.lang.NullPointerException
- [Ended public static Exception exception()]
- [Ended public static int bridge()]
- [Start public static String result()]
- [Ended public static String result()]
- [Start public Exception exception()]
- Exception caught: java.lang.NullPointerException
- [Ended public Exception exception()]
复制代码 |
|