ora-06550

how do I catch errors globally, log them and show user an error page in J2EE app

﹥>﹥吖頭↗ 提交于 2019-11-28 01:40:59
I have searched this topic on google a bit and seen some best practices. But I need some specific advice. I am working on a J2EE app that has servlets/Struts2/Call to DAO's from JSP's. So the app is all kinds of messed up. Most of the data is fetched via stored procedures, which are being called by iBatis ORM/Spring. Sometimes when an error happens on the SP side it will display an ugly message to the user such as below: javax.servlet.ServletException: org.springframework.jdbc.BadSqlGrammarException: SqlMapClient operation; bad SQL grammar []; nested exception is com.ibatis.common.jdbc

Using variables in PLSQL SELECT statement

喜你入骨 提交于 2019-11-27 07:57:42
问题 I have a query that queries on ReportStartDate and ReportEndDate so I thought I would use variables in PLSQL. Not sure what I am missing here, but I get an error: CLEAR; DECLARE varReportStartDate Date := to_date('05/01/2010', 'mm/dd/yyyy'); varReportEndDate Date := to_date('05/31/2010', 'mm/dd/yyyy'); BEGIN SELECT 'Value TYPE', 1 AS CountType1, 2 AS CountType2, 3 AS CountType3 FROM DUAL; SELECT COUNT (*) FROM CDR.MSRS_E_INADVCH WHERE 1=1 AND ReportStartDate = varReportStartDate AND

how do I catch errors globally, log them and show user an error page in J2EE app

烂漫一生 提交于 2019-11-27 04:48:36
问题 I have searched this topic on google a bit and seen some best practices. But I need some specific advice. I am working on a J2EE app that has servlets/Struts2/Call to DAO's from JSP's. So the app is all kinds of messed up. Most of the data is fetched via stored procedures, which are being called by iBatis ORM/Spring. Sometimes when an error happens on the SP side it will display an ugly message to the user such as below: javax.servlet.ServletException: org.springframework.jdbc