Return-Path: X-Original-To: apmail-cayenne-commits-archive@www.apache.org Delivered-To: apmail-cayenne-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 541DD7C95 for ; Wed, 20 Jul 2011 12:06:22 +0000 (UTC) Received: (qmail 15086 invoked by uid 500); 20 Jul 2011 12:06:22 -0000 Delivered-To: apmail-cayenne-commits-archive@cayenne.apache.org Received: (qmail 15055 invoked by uid 500); 20 Jul 2011 12:06:21 -0000 Mailing-List: contact commits-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list commits@cayenne.apache.org Received: (qmail 15043 invoked by uid 99); 20 Jul 2011 12:06:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jul 2011 12:06:21 +0000 X-ASF-Spam-Status: No, hits=-2001.1 required=5.0 tests=ALL_TRUSTED,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 Jul 2011 12:06:19 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 09F5A4A4A6 for ; Wed, 20 Jul 2011 12:05:58 +0000 (UTC) Date: Wed, 20 Jul 2011 12:05:58 +0000 (UTC) From: "Dzmitry Kazimirchyk (JIRA)" To: commits@cayenne.apache.org Message-ID: <903695405.7479.1311163558037.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1629278063.42991.1309162667879.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Closed] (CAY-1583) context.getObjectStore() returning null causing NullpointerException in DataMergeHandler 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/CAY-1583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dzmitry Kazimirchyk closed CAY-1583. ------------------------------------ Resolution: Fixed Fix Version/s: 3.1M3 3.0.3 Assignee: Dzmitry Kazimirchyk > context.getObjectStore() returning null causing NullpointerException in DataMergeHandler > ---------------------------------------------------------------------------------------- > > Key: CAY-1583 > URL: https://issues.apache.org/jira/browse/CAY-1583 > Project: Cayenne > Issue Type: Bug > Components: Core Library > Affects Versions: 3.0.1 > Environment: sun Java 6 jre under both debian (squeeze) and ubuntu (maverik) linux with MySQL 5.1 using InnoDB. > Reporter: Amaury SECHET > Assignee: Dzmitry Kazimirchyk > Fix For: 3.0.3, 3.1M3 > > > context.getObjectStore() return null, but nowhere in the code the constructor is called with null as objectStore > This looks like a multithreading problem (object accessed before full initialization) or deserialization issue. > However, I have a patch that's either, solve the issue, or at least make it almost impossible to trigger. Simply switch position of > // use a setter to properly initialize EntityResolver > setChannel(channel); > > form before the objectContext to after. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira