joerg 2004/01/29 17:01:23
Modified: src/blocks/jsp/java/org/apache/cocoon/generation
JSPGenerator.java
src/blocks/jsp/java/org/apache/cocoon/reading JSPReader.java
Log:
error handling: for some cases the error messages are swallowed, see bug
23269 for more information
Revision Changes Path
1.2 +3 -4
cocoon-2.1/src/blocks/jsp/java/org/apache/cocoon/generation/JSPGenerator.java
Index: JSPGenerator.java
===================================================================
RCS file:
/home/cvs/cocoon-2.1/src/blocks/jsp/java/org/apache/cocoon/generation/JSPGenerator.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- JSPGenerator.java 16 Jan 2004 13:50:37 -0000 1.1
+++ JSPGenerator.java 30 Jan 2004 01:01:23 -0000 1.2
@@ -126,10 +126,9 @@
parser = (SAXParser) super.manager.lookup(SAXParser.ROLE);
parser.parse(input, super.xmlConsumer);
} catch (ServletException e) {
- throw new ProcessingException("ServletException while executing
JSPEngine", e.getRootCause());
+ throw new ProcessingException("ServletException while executing
JSPEngine", e);
} catch (SAXException e) {
- // FIXME: e.getException can be null
- throw new ProcessingException("SAXException while parsing
JSPEngine output", e.getException());
+ throw new ProcessingException("SAXException while parsing
JSPEngine output", e);
} catch (IOException e) {
throw new ProcessingException("IOException
JSPGenerator.generate()", e);
} catch (ProcessingException e) {
1.9 +2 -2
cocoon-2.1/src/blocks/jsp/java/org/apache/cocoon/reading/JSPReader.java
Index: JSPReader.java
===================================================================
RCS file:
/home/cvs/cocoon-2.1/src/blocks/jsp/java/org/apache/cocoon/reading/JSPReader.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- JSPReader.java 29 Jan 2004 10:33:04 -0000 1.8
+++ JSPReader.java 30 Jan 2004 01:01:23 -0000 1.9
@@ -149,7 +149,7 @@
bytes = null;
} catch (ServletException e) {
- throw new ProcessingException("ServletException while executing
JSPEngine", e.getRootCause());
+ throw new ProcessingException("ServletException while executing
JSPEngine", e);
} catch (IOException e) {
throw new ProcessingException("IOException
JSPReader.generate()", e);
} catch (ProcessingException e) {