Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 610CD200B3C for ; Wed, 13 Jul 2016 15:49:44 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5FB5D160A6A; Wed, 13 Jul 2016 13:49:44 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id AB8CE160A62 for ; Wed, 13 Jul 2016 15:49:43 +0200 (CEST) Received: (qmail 89858 invoked by uid 500); 13 Jul 2016 13:49:42 -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 89847 invoked by uid 99); 13 Jul 2016 13:49:42 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jul 2016 13:49:42 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 3BD86186E32 for ; Wed, 13 Jul 2016 13:49:42 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -2.147 X-Spam-Level: X-Spam-Status: No, score=-2.147 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id CK05EpV4pb7g for ; Wed, 13 Jul 2016 13:49:41 +0000 (UTC) Received: from DUB004-OMC2S12.hotmail.com (dub004-omc2s12.hotmail.com [157.55.1.151]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id E534860D3E for ; Wed, 13 Jul 2016 13:49:40 +0000 (UTC) Received: from DUB117-W112 ([157.55.1.137]) by DUB004-OMC2S12.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Wed, 13 Jul 2016 06:49:34 -0700 X-TMN: [sFXUA9xbfbnnuS9PKCiQqixj0Ui6iZm5] X-Originating-Email: [kalgon@hotmail.com] Message-ID: From: Xavier Dury To: "users@deltaspike.apache.org" Subject: NPE in AbstractManualInvocationHandler Date: Wed, 13 Jul 2016 15:49:34 +0200 Importance: Normal Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 13 Jul 2016 13:49:34.0572 (UTC) FILETIME=[6398B2C0:01D1DD0D] archived-at: Wed, 13 Jul 2016 13:49:44 -0000 Hi=2C=0A= =0A= Since I upgraded to DeltaSpike 1.7.0 / TomEE 7.0.1=2C I get NPEs when calli= ng some repositories in a multi-threaded batch.=0A= =0A= Caused by: java.lang.NullPointerException=0A= =A0=A0=A0 at org.apache.deltaspike.proxy.impl.invocation.AbstractManualInvo= cationHandler.invoke(AbstractManualInvocationHandler.java:40)=0A= =A0=A0=A0 at org.apache.deltaspike.proxy.impl.invocation.DelegateManualInvo= cationHandler.staticInvoke(DelegateManualInvocationHandler.java:39)=0A= =0A= That line contains the following code:=0A= =0A= List> interceptors =3D interceptorLookup.lookup(proxy=2C met= hod)=3B=0A= =0A= So it seems that interceptorLookup was not initialized correctly.=0A= =0A= I see there is a double-check locking on a volatile Boolean for initializat= ion in that class... Wouldn't it be better if the locking occurred on the i= nterceptorLookup or if the interceptorLookup would also be declared as vola= tile?=0A= =0A= Regards=2C=0A= =0A= Xavier=0A= =