0

Showing Exception messages in the popup

asked 2012-04-13 05:26:58 +0800

javaenthu gravatar image javaenthu
141 2

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.

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2012-04-13 12:51:02 +0800

javaenthu gravatar image javaenthu
141 2

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?

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2012-04-13 05:26:58 +0800

Seen: 186 times

Last updated: Apr 13 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More