You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jonathan Ellis (JIRA)" <ji...@apache.org> on 2012/07/25 21:02:35 UTC

[jira] [Commented] (THRIFT-1658) Java thrift server is not throwing TApplicationException

    [ https://issues.apache.org/jira/browse/THRIFT-1658?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13422514#comment-13422514 ] 

Jonathan Ellis commented on THRIFT-1658:
----------------------------------------

I hope this wasn't intentional.  (I added this kind of error catching for Java back in THRIFT-378 and our experience has been that it is a Good Thing.)
                
> Java thrift server is not throwing TApplicationException
> --------------------------------------------------------
>
>                 Key: THRIFT-1658
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1658
>             Project: Thrift
>          Issue Type: Bug
>    Affects Versions: 0.7, 0.8
>            Reporter: Keith Turner
>
> When using thrift to communicate between Java clients and servers, I am no longer seeing TApplicationExceptions when an unexpected exception is thrown on the servers side.
> Thrift 0.6 works, but thrift 0.8 does not.  Looking at the Processor code generated by 0.6 it catches Throwable and returns a TApplication exception to the client.  The Processor code generated by 0.8 does not do this.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira