Return-Path: X-Original-To: apmail-openejb-commits-archive@www.apache.org Delivered-To: apmail-openejb-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CEBD51603 for ; Wed, 20 Apr 2011 16:43:46 +0000 (UTC) Received: (qmail 56572 invoked by uid 500); 20 Apr 2011 16:43:46 -0000 Delivered-To: apmail-openejb-commits-archive@openejb.apache.org Received: (qmail 56553 invoked by uid 500); 20 Apr 2011 16:43:46 -0000 Mailing-List: contact commits-help@openejb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openejb.apache.org Delivered-To: mailing list commits@openejb.apache.org Received: (qmail 56484 invoked by uid 99); 20 Apr 2011 16:43:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Apr 2011 16:43:46 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Apr 2011 16:43:44 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2D94CABDA4 for ; Wed, 20 Apr 2011 16:43:06 +0000 (UTC) Date: Wed, 20 Apr 2011 16:43:06 +0000 (UTC) From: "David Jencks (JIRA)" To: commits@openejb.apache.org Message-ID: <1300197247.70334.1303317786182.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (OPENEJB-1091) Cause of RollbackException swallowed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENEJB-1091?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13022209#comment-13022209 ] David Jencks commented on OPENEJB-1091: --------------------------------------- Hi Mohan, Your patch is a good start but I think it ignores the hard part of the problem. Somewhere (I'm not exactly sure where) there is code that looks at exceptions and rewrites them into local or remote exceptions depending on how the method was accessed (through the local or remote interface). Previously this code was expecting a remote TxRolledBackException and for local interface access it would convert it to a local javax.ejb.TransactionRolledbackLocalException. I think we have to find that code and change it so it makes the other conversion. Or did you find the code and it already converts the new TransactionRolledbackLocalException to a remote TransactionRolledbackException? > Cause of RollbackException swallowed > ------------------------------------ > > Key: OPENEJB-1091 > URL: https://issues.apache.org/jira/browse/OPENEJB-1091 > Project: OpenEJB > Issue Type: Bug > Components: server > Affects Versions: 3.0-beta-2 > Reporter: Geoff Callender > Assignee: Jean-Louis MONTEIRO > Fix For: 3.0 > > Attachments: open-ejb_1091.patch > > > This is linked to OPENEJB-782 where the problem was first noted. The flaw described there still exists in 3.1, ie. the client still has no way of determining the reason a rollback occurred. > When the client digs into the exception cause, all it finds is javax.transaction.RollbackException. The originating javax.persistence.PersistenceException or java.sql.SQLException is missing. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira