DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=33922>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=33922 Summary: ESQL exception handling problem Product: Cocoon 2 Version: 2.1.6 Platform: PC OS/Version: Windows XP Status: NEW Severity: minor Priority: P3 Component: blocks AssignedTo: dev@cocoon.apache.org ReportedBy: [EMAIL PROTECTED] the esql logicsheet /src/blocks/databases/java/org/apache/cocoon/components/language/markup/xsp/java/esql.xsl has an exception handling block that catches an exception but then just logs the error and does nothing. This is a problem as I need the exception to come out. This is inside the esql:connection template. Here's svn diff for my patch: C:\local>svn diff src\blocks\databases\java\org\apache\cocoon\components\language\markup\xsp\java\esql.xsl Index: src/blocks/databases/java/org/apache/cocoon/components/language/markup/xsp/java/esql.xsl =================================================================== --- src/blocks/databases/java/org/apache/cocoon/components/language/markup/xsp/java/esql.xsl (revision 46070) +++ src/blocks/databases/java/org/apache/cocoon/components/language/markup/xsp/java/esql.xsl (working copy) @@ -306,7 +306,7 @@ <xsl:apply-templates/> } catch (SQLException _esql_exception_<xsl:value-of select="generate-id(.)"/> ) { - getLogger().error("",_esql_exception_<xsl:value-of select="generate-id(.) "/>); + throw new RuntimeException("Error connecting to db to execute query: " + _esql_exception_<xsl:value-of select="generate-id(.)"/>); } finally { try { -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.