Hello ivy-team, is it possible to handle unexpected Exceptions like RuntimeExceptions? For example, we would like to send an email with all exception information to our developer team and display a specific error message. We would like to display this message in the current user dialog (JSF) and not redirect to an other error page. I tried to create a CustomExceptionHandlerFactory and set this class as exception-handler-factory in the faces-config.xml. Doing this in the Project webContent/WEB-INF/faces-config.xml has no effect. Doing this in the Designer webapps/ivy/WEB-INF/faces-config.xml throws a ClassNotFoundException. Could you please explain how to do this or is there a nicer way?

asked 30.10.2015 at 15:19

Florian%20Heinrich's gravatar image

Florian Hein...
616611
accept rate: 0%


With the Säntis 6.0 release

you can easily handle this situation by putting an ErrorStartEvent into the Html Dialogs and then implement the error handling flow: send a mail, show an error dialog in the same context. See: http://release.axonivy.com/ or try it with the latest sprint increment http://www.ivyteam.ch/flatpress/?page=download_last_increment

For 5.1 and later

I guess the apporach with you own exception-handler-factory in the faces-config.xml should work. Class Not Found exceptions arise as the factory is implemented within your ivy project and the webApp classloader has no access to it. You can work around the problem by putting compiled classes into webapps/ivy/WEB_INF/classes directory or as jar into webapps/ivy/WEB_INF/lib directory. See similiar classes hacks here: http://answers.axonivy.com/questions/10/can-i-use-primepush-in-xpert-ivy

link

answered 02.11.2015 at 09:01

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
7.1k11342
accept rate: 70%

edited 02.11.2015 at 09:04

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×14
×6
×4
×3

Asked: 30.10.2015 at 15:19

Seen: 1,186 times

Last updated: 02.11.2015 at 09:04