-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi All,
I have an application where in which from ZUL file I make calls to the composer classes and from composer classes the DataBase related (DAO) classes. If any exception occures in the DAO layer I am catching and throwing as MyApplicationException with proper exception message and error code.
Now I want to show this message (which was used while building the exception) in a popup with ok button.
Is it possible?
If yes how?
Thanks in advance.
I tried the example given here.
But every time on the server logs I see following:
Apr 13, 2012 8:44:51 AM org.zkoss.zk.ui.impl.UiEngineImpl visualizeErrors:1388 SEVERE: Unable to generate custom error page, /pages/error.zul >>org.zkoss.lang.SystemException: org.apache.xerces.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence. >>org.xml.sax.SAXParseException: Invalid byte 1 of 1-byte UTF-8 sequence. >>org.apache.xerces.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence. >> at org.apache.xerces.impl.io.UTF8Reader.invalidByte(Unknown Source) >> at org.apache.xerces.impl.io.UTF8Reader.read(Unknown Source) >> at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source) >> at org.apache.xerces.impl.XMLEntityScanner.scanContent(Unknown Source) >> at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent(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.XML11Configuration.parse(Unknown Source) >> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) >> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) >> at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) >> at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
Am I missing something?
Asked: 2012-04-13 05:26:58 +0800
Seen: 186 times
Last updated: Apr 13 '12