Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 31261 invoked from network); 10 Jul 2008 18:47:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jul 2008 18:47:53 -0000 Received: (qmail 12104 invoked by uid 500); 10 Jul 2008 18:47:53 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 11992 invoked by uid 500); 10 Jul 2008 18:47:52 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 11983 invoked by uid 500); 10 Jul 2008 18:47:52 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 11980 invoked by uid 99); 10 Jul 2008 18:47:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jul 2008 11:47:52 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jul 2008 18:47:09 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id A07EA2388A32; Thu, 10 Jul 2008 11:47:31 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r675676 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/addressing/EndpointReference.java Date: Thu, 10 Jul 2008 18:47:31 -0000 To: axis2-cvs@ws.apache.org From: scheu@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080710184731.A07EA2388A32@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: scheu Date: Thu Jul 10 11:47:30 2008 New Revision: 675676 URL: http://svn.apache.org/viewvc?rev=675676&view=rev Log: Adding synchronize to writeExternal. The logic in writeExternal causes om elements to be added to a temporary omtree for serialization. Without the synchronization, these common om elements can be queried/added by multiple threads....which results in spurious NPE's in Axiom. Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/addressing/EndpointReference.java Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/addressing/EndpointReference.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/addressing/EndpointReference.java?rev=675676&r1=675675&r2=675676&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/addressing/EndpointReference.java (original) +++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/addressing/EndpointReference.java Thu Jul 10 11:47:30 2008 @@ -631,7 +631,7 @@ * OMElements/Attributes, we need to actually serialize the OM structures * (at least in some cases.) */ - public void writeExternal(java.io.ObjectOutput o) + public synchronized void writeExternal(java.io.ObjectOutput o) throws IOException { SafeObjectOutputStream out = SafeObjectOutputStream.install(o);