Bug 24827 - OneForm Editor throws exception if xml does not validate
Summary: OneForm Editor throws exception if xml does not validate
Status: RESOLVED FIXED
Alias: None
Product: Lenya
Classification: Unclassified
Component: Form Editor (show other bugs)
Version: Trunk
Hardware: All All
: P3 major
Target Milestone: 1.2
Assignee: Lenya Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-19 16:15 UTC by Christian Egli
Modified: 2004-11-16 19:05 UTC (History)
1 user (show)



Attachments
stack trace pf exception (22.79 KB, text/xml)
2003-11-20 14:45 UTC, Christian Egli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Egli 2003-11-19 16:15:26 UTC
If I edit a document with the oneform editor and insert non-validating xml I get
the following Exception:

An Error Occurred org.apache.cocoon.ProcessingException The element type "table"
must be terminated by the matching end-tag "</table>".
org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
null:21:14:org.xml.sax.SAXParseException: The element type "table" must be
terminated by the matching end-tag "</table>". 14 21
org.xml.sax.SAXParseException: The element type "table" must be terminated by
the matching end-tag "</table>". null Original Exception:
org.xml.sax.SAXParseException: The element type "table" must be terminated by
the matching end-tag "</table>". at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at
org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at
org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source) at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at
org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at
org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at
org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at
org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:318) at
org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:337) at
org.apache.cocoon.generation.StreamGenerator.generate(StreamGenerator.java:168) at
...
Comment 1 Christian Egli 2003-11-20 14:45:43 UTC
Created attachment 9204 [details]
stack trace pf exception
Comment 2 Christian Egli 2003-11-27 16:11:18 UTC
handle this error with a handle-error statement which allows you to go back.
Comment 3 Christian Egli 2003-12-07 18:54:32 UTC
Added an error screen and moved the one form editor to a separate pipeline so we
can handle the sax parsing error separately.