Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 39134 invoked from network); 22 Apr 2010 19:13:37 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Apr 2010 19:13:37 -0000 Received: (qmail 81474 invoked by uid 500); 22 Apr 2010 19:13:36 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 81431 invoked by uid 500); 22 Apr 2010 19:13:36 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 81423 invoked by uid 99); 22 Apr 2010 19:13:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Apr 2010 19:13:36 +0000 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.218.226] (HELO mail-bw0-f226.google.com) (209.85.218.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Apr 2010 19:13:31 +0000 Received: by bwz26 with SMTP id 26so8773747bwz.27 for ; Thu, 22 Apr 2010 12:13:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.115.138 with HTTP; Thu, 22 Apr 2010 12:13:08 -0700 (PDT) Date: Thu, 22 Apr 2010 21:13:08 +0200 Received: by 10.204.135.211 with SMTP id o19mr2293421bkt.98.1271963588771; Thu, 22 Apr 2010 12:13:08 -0700 (PDT) Message-ID: Subject: different ObjectContext... From: Arnaud Garcia To: user@cayenne.apache.org Content-Type: multipart/alternative; boundary=0015174c0f82e0412a0484d81945 --0015174c0f82e0412a0484d81945 Content-Type: text/plain; charset=ISO-8859-1 Hello, (lot of questions today ;-) I have a curious error on my site (wicket+cayenne). Cannot set object as destination of relationship toAdresse because it is in a different ObjectContext at org.apache.cayenne.CayenneDataObject.willConnect(CayenneDataObject.java:344) at org.apache.cayenne.CayenneDataObject.setToOneTarget(CayenneDataObject.java:298) How a cayenne object can be in a different context ? (In my understanding a Context is attached to the current thread, so different ObjectContext means different threads) Is it possible that the Wicket serialize/de-serialize mechanism create a new re-bind of the Context to another thread ?? there was a similar discussion 2 weeks ago: http://cayenne.195.n3.nabble.com/Conditions-when-PersistenceState-gets-hollow-tp691334p692371.html thanks Arnaud --0015174c0f82e0412a0484d81945--