Return-Path: Delivered-To: apmail-incubator-open-jpa-dev-archive@locus.apache.org Received: (qmail 42517 invoked from network); 1 Mar 2007 01:04:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Mar 2007 01:04:14 -0000 Received: (qmail 73225 invoked by uid 500); 1 Mar 2007 01:04:22 -0000 Delivered-To: apmail-incubator-open-jpa-dev-archive@incubator.apache.org Received: (qmail 73150 invoked by uid 500); 1 Mar 2007 01:04:22 -0000 Mailing-List: contact open-jpa-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: open-jpa-dev@incubator.apache.org Delivered-To: mailing list open-jpa-dev@incubator.apache.org Received: (qmail 73065 invoked by uid 99); 1 Mar 2007 01:04:21 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Feb 2007 17:04:21 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Feb 2007 17:04:11 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3952B714289 for ; Wed, 28 Feb 2007 17:03:51 -0800 (PST) Message-ID: <14236084.1172711031231.JavaMail.jira@brutus> Date: Wed, 28 Feb 2007 17:03:51 -0800 (PST) From: "Patrick Linskey (JIRA)" To: open-jpa-dev@incubator.apache.org Subject: [jira] Updated: (OPENJPA-35) In-memory Delete operation fails with active DataCache In-Reply-To: <11580366.1156808182260.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-35?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Patrick Linskey updated OPENJPA-35: ----------------------------------- Affects Version/s: 0.9.0 > In-memory Delete operation fails with active DataCache > ------------------------------------------------------ > > Key: OPENJPA-35 > URL: https://issues.apache.org/jira/browse/OPENJPA-35 > Project: OpenJPA > Issue Type: Bug > Components: datacache, query > Affects Versions: 0.9.0, 0.9.6 > Environment: Only happens when DataCache is active > > > Reporter: Pinaki Poddar > Priority: Critical > Fix For: 0.9.7 > > Attachments: openjpa-35.test.zip, openjpa-35.trace.txt > > > Delete through query such as > Query query = em.createQuery("DELETE FROM Node n"); > query.executeUpdate(); > fails with following exception (only when DataCache is active) > Exception in thread "main" <4|false|0.0.0> org.apache.openjpa.persistence.ArgumentException: org.apache.openjpa.datacache.QueryCacheStoreQuery > at org.apache.openjpa.kernel.QueryImpl.deleteInMemory(QueryImpl.java:1029) > at org.apache.openjpa.kernel.ExpressionStoreQuery$DataStoreExecutor.executeDelete(ExpressionStoreQuery.java:665) > at org.apache.openjpa.datacache.QueryCacheStoreQuery$QueryCacheExecutor.executeDelete(QueryCacheStoreQuery.java:348) > at org.apache.openjpa.kernel.QueryImpl.delete(QueryImpl.java:1012) > at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:768) > at org.apache.openjpa.kernel.QueryImpl.deleteAll(QueryImpl.java:831) > at org.apache.openjpa.kernel.QueryImpl.deleteAll(QueryImpl.java:827) > at org.apache.openjpa.kernel.DelegatingQuery.deleteAll(DelegatingQuery.java:544) > at org.apache.openjpa.persistence.QueryImpl.executeUpdate(QueryImpl.java:299) > at control.Test.clear(Test.java:87) > at control.Test.run(Test.java:37) > at control.Test.main(Test.java:178) > Caused by: java.lang.ClassCastException: org.apache.openjpa.datacache.QueryCacheStoreQuery > at org.apache.openjpa.kernel.ExpressionStoreQuery$DataStoreExecutor.executeQuery(ExpressionStoreQuery.java:651) > at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:949) > at org.apache.openjpa.kernel.QueryImpl.deleteInMemory(QueryImpl.java:1018) > ... 11 more -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.