ROP: handle non-serializable server side exceptions

Key: CAY-718
URL: http://issues.apache.org/cayenne/browse/CAY-718
Project: Cayenne
Type: Improvement

Components: Cayenne Core Library
Versions: 3.0
Reporter: Andrus Adamchik
Assigned to: Andrus Adamchik
Priority: Minor
Fix For: 3.0

Per http://objectstyle.org/cayenne/lists/cayenne-user/2006/12/0051.html exceptions thrown in the lower layers of Cayenne ROP server may not be serializable. If those are driver exceptions, just like the derby exceptions in the example above, we have little control over it. It would be nice to provide the client with more information about the exception cause, instead of generic 'XYZ does not implement java.io.Serializable " message. So we may need to catch and rethrow exceptions.

Another consideration here is security. We might add a switch "verboseClientExceptions" that would enable or disable sending of server-side exceptions to the client, thus preventing casual users from seeing too much details.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
postedDec 11, '06 at 10:12a
activeDec 11, '06 at 10:12a

1 user in discussion

Andrus Adamchik (JIRA): 1 post



site design / logo © 2023 Grokbase