From dev-return-7547-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Wed Feb 27 01:23:14 2008 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 37419 invoked from network); 27 Feb 2008 01:23:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Feb 2008 01:23:14 -0000 Received: (qmail 17928 invoked by uid 500); 27 Feb 2008 01:23:09 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 17900 invoked by uid 500); 27 Feb 2008 01:23:09 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 17891 invoked by uid 99); 27 Feb 2008 01:23:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2008 17:23:09 -0800 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.86.168.178 is neither permitted nor denied by domain of geir@pobox.com) Received: from [216.86.168.178] (HELO mxout-03.mxes.net) (216.86.168.178) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Feb 2008 01:22:35 +0000 Received: from gmjdual.bedweb.nl (unknown [213.201.196.162]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id 7997223E3E8 for ; Tue, 26 Feb 2008 19:54:11 -0500 (EST) Message-Id: <6BD984E6-58AC-4024-A800-F56ADD7FFEB9@pobox.com> From: "Geir Magnusson Jr." To: dev@openjpa.apache.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Subject: problem wi Date: Wed, 27 Feb 2008 02:22:31 +0100 X-Mailer: Apple Mail (2.919.2) X-Virus-Checked: Checked by ClamAV on apache.org We're getting tons of these in production (and in test). OpenJPA 1.0.1 and 1.0.2 : 1677 WARN [main] openjpa.Runtime - Detected possible orphaned reference to deleted object "125706" in "com.joost.model.GeneratedThumbnail.videoEnclosure". In a private chat, Patrick suggested it means that I deleted an instance of type VideoEnclosure with id 125706, but had refs elsewhere in the model that I didn't null out It seems that the data is all there : mysql> select * from GeneratedThumbnail where videoEnclosureId = 125706; +--------+------------------+-------------+ | id | videoEnclosureId | captureTime | +--------+------------------+-------------+ | 125708 | 125706 | NULL | +--------+------------------+-------------+ 1 row in set (0.87 sec) mysql> select * from Enclosure where id = 125706; +--------+----------------+---------+------ +--------------------------------------+ | id | itemType | bitRate | sha1 | p2pId | +--------+----------------+---------+------ +--------------------------------------+ | 125706 | VideoEnclosure | 346 | NULL | 2eb7b0b4-3619-4d47- ad84-5ceb36c6385e | +--------+----------------+---------+------ +--------------------------------------+ 1 row in set (0.00 sec) mysql> select * from VideoEnclosure where id = 125706; +--------+--------------+----------+-------------+----------- +-----------+ | id | languageCode | duration | aspectRatio | frameRate | frameSize | +--------+--------------+----------+-------------+----------- +-----------+ | 125706 | 1 | 217384 | 4:3 | 29.970 | 640x480 | +--------+--------------+----------+-------------+----------- +-----------+ 1 row in set (0.00 sec) and I don't ever do deletes in this code. Maybe we have broken data elsewhere the DB - could it be the videoEnclosureId field referenced in some other entity or class? Is the joined inheritance strategy widely used and reliable? geir