Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 4016 invoked from network); 14 Jul 2008 17:37:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Jul 2008 17:37:22 -0000 Received: (qmail 80597 invoked by uid 500); 14 Jul 2008 17:37:22 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 80439 invoked by uid 500); 14 Jul 2008 17:37:22 -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 80428 invoked by uid 99); 14 Jul 2008 17:37:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jul 2008 10:37:22 -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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jul 2008 17:36:37 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A8DB6234C15E for ; Mon, 14 Jul 2008 10:36:31 -0700 (PDT) Message-ID: <1293033751.1216056991677.JavaMail.jira@brutus> Date: Mon, 14 Jul 2008 10:36:31 -0700 (PDT) From: "Marc Logemann (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Commented: (OPENJPA-659) No state snapshot is available on @Embedded class when using runtime enhancement via spring-tomcat-weaver In-Reply-To: <2073337099.1216056871724.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12613383#action_12613383 ] Marc Logemann commented on OPENJPA-659: --------------------------------------- The problem doesnt occur when relying on build time enhancement via PCEnhancerTask. > No state snapshot is available on @Embedded class when using runtime enhancement via spring-tomcat-weaver > ---------------------------------------------------------------------------------------------------------- > > Key: OPENJPA-659 > URL: https://issues.apache.org/jira/browse/OPENJPA-659 > Project: OpenJPA > Issue Type: Bug > Components: kernel > Affects Versions: 1.1.0 > Environment: Tomcat6, Java6, Mac OS X, Spring 2.5 > Reporter: Marc Logemann > > i am getting this exception: > org.springframework.orm.jpa.JpaSystemException: No state snapshot is available for instance of type "de.logentis.bwh.model.Payment", but this instance uses state-comparison for dirty detection.; nested exception is org.apache.openjpa.persistence.PersistenceException... > Here are the relevant pieces of the casses: > @Entity > @Table(name = "orders") > @VersionColumn(name = "_version") > public class Order { > ... > @Embedded > Payment payment; > } > @Embeddable > public class Payment { > @Basic > @Enumerated(EnumType.STRING) > @Column(name = "paymenttype") > PaymentType type; > @Column(name = "currency") > String currency; > @Column(name = "pricing") > String pricing; > @Column(name = "cost") > int cost; > } > The point is, persisting is no problem at all, the exception will be thrown by issueing: > Query query = getEntityManager().createQuery("select o FROM Order o"); > query.getResultList(); -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.