Return-Path: X-Original-To: apmail-deltaspike-users-archive@www.apache.org Delivered-To: apmail-deltaspike-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 68AE911ACB for ; Wed, 30 Jul 2014 14:23:30 +0000 (UTC) Received: (qmail 64156 invoked by uid 500); 30 Jul 2014 14:23:30 -0000 Delivered-To: apmail-deltaspike-users-archive@deltaspike.apache.org Received: (qmail 64118 invoked by uid 500); 30 Jul 2014 14:23:30 -0000 Mailing-List: contact users-help@deltaspike.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@deltaspike.apache.org Delivered-To: mailing list users@deltaspike.apache.org Received: (qmail 64101 invoked by uid 99); 30 Jul 2014 14:23:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Jul 2014 14:23:29 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_SOFTFAIL,T_HTML_ATTACH X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of rainer.schoen.dev@gmail.com does not designate 195.186.227.120 as permitted sender) Received: from [195.186.227.120] (HELO zhhdzmsp-mail12.bluewin.ch) (195.186.227.120) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Jul 2014 14:23:25 +0000 X-Bluewin-Spam-Analysis: v=2.1 cv=PPW4Iky7 c=1 sm=1 tr=0 a=47dPi6K3Jy/MlQbHDqOwkw==:117 a=47dPi6K3Jy/MlQbHDqOwkw==:17 a=tcnv99F1KMcA:10 a=tcIPGrd5c2cA:10 a=4rAPD_Bpt2UA:10 a=nDghuxUhq_wA:10 a=pGLkceISAAAA:8 a=r77TgQKjGQsHNAKrUKIA:9 a=9iDbn-4jx3cA:10 a=cKsnjEOsciEA:10 a=NjeyMP9viOAJvLHCRE0A:9 a=QEXdDO2ut3YA:10 a=SSmOFEACAAAA:8 a=JTedby1OQfxU-ZtJVhoA:9 a=pZODSVClj1LO-akl:21 a=_W_S_7VecoQA:10 a=frz4AuCg-hUA:10 a=L03L2QfmqWoA:10 X-FXIT-IP: IPv4[178.194.4.13] Epoch[1406730181] Received: from [178.194.4.13] ([178.194.4.13:60143] helo=[192.168.1.33]) by zhhdzmsp-mail12.bluewin.ch (envelope-from ) (ecelerity 3.5.8.41051 r(Platform:3.5.8.0)) with ESMTP id 9B/12-09420-5CFF8D35; Wed, 30 Jul 2014 14:23:01 +0000 Message-ID: <53D8FFC7.6030402@gmail.com> Date: Wed, 30 Jul 2014 16:23:03 +0200 From: =?UTF-8?B?UmFpbmVyIFNjaMO2bg==?= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: users@deltaspike.apache.org Subject: Re: Another ExceptionHandler issue References: <53D8EB9B.8020606@gmail.com> <1406725285206.c72ba535@Nodemailer> In-Reply-To: <1406725285206.c72ba535@Nodemailer> Content-Type: multipart/mixed; boundary="------------040508060809000300030408" X-Virus-Checked: Checked by ClamAV on apache.org --------------040508060809000300030408 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Thanks Jason for your quick reply. Unfortunately, Mr. Murphy put his dirty hands in my tests. I redefined th= e exception state variable in the PostConstruct method, thus the variable= remained null. And my test exception has as root exception a NullPointer= Exception. (I will never do that again!). So each invocation of the submi= tted test has only one exception with no other cause (thus no cause stack= ), a NullPointerException. So the doc is correct, the invocations of the event handlers will bubble = up the exception stack. There is only one drawback. The invocation of the root exception will fol= low the class hierarchy and thus invoke the handlers of the 'last resort= ' (Throwable, Exception) in the first turn before traversing the whole st= ack. Ideally they should be invoked only after the end of the turn. But m= aybe there is a simple solution for that I did not find out? Again, my apologies Regards, Rainer Am 30.07.2014 15:01, schrieb Jason Porter: > You're correct, the docs are wrong, I'm sorry. handleAndContinue contin= ues through the hierarchy chain. =E2=80=94 > Sent from Mailbox > --------------040508060809000300030408--