Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 70163 invoked from network); 14 Jul 2010 20:19:20 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Jul 2010 20:19:20 -0000 Received: (qmail 79689 invoked by uid 500); 14 Jul 2010 20:19:20 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 79632 invoked by uid 500); 14 Jul 2010 20:19:19 -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 79465 invoked by uid 99); 14 Jul 2010 20:19:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jul 2010 20:19:19 +0000 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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jul 2010 20:19:16 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o6EKIsYw010287 for ; Wed, 14 Jul 2010 20:18:54 GMT Message-ID: <5493932.382381279138734751.JavaMail.jira@thor> Date: Wed, 14 Jul 2010 16:18:54 -0400 (EDT) From: "Rick Curtis (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Resolved: (OPENJPA-1626) ParseException when specified name of QueryCache In-Reply-To: <3353955.15351271041782031.JavaMail.jira@thor> 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/OPENJPA-1626?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rick Curtis resolved OPENJPA-1626. ---------------------------------- Fix Version/s: 2.1.0 Resolution: Fixed Committed revision 964170 to trunk > ParseException when specified name of QueryCache > ------------------------------------------------ > > Key: OPENJPA-1626 > URL: https://issues.apache.org/jira/browse/OPENJPA-1626 > Project: OpenJPA > Issue Type: Bug > Components: datacache > Affects Versions: 1.1.0 > Environment: java version "1.5.0_14" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03) > Java HotSpot(TM) Client VM (build 1.5.0_14-b03, mixed mode, sharing) > Windows XP > Reporter: Amy Yang > Assignee: Rick Curtis > Priority: Minor > Fix For: 2.1.0 > > Attachments: OPENJPA-1626.patch > > > When specifying name of QueryCache like > Map propsMap = new HashMap(); > propsMap.put("openjpa.DataCache", "true"); > propsMap.put("openjpa.QueryCache", "true(name=\"default\")"); > propsMap.put("openjpa.RemoteCommitProvider", "sjvm"); > _pmf = getEmf(propsMap); > There will be a ParseException > org.apache.openjpa.persistence.PersistenceException: There was an error while setting up the configuration plugin option "QueryCache". The plugin was of type "org.apache.openjpa.datacache.ConcurrentQueryCache". Setter methods for the following plugin properties were not available in that type: [name]. Possible plugin properties are: [CacheSize, FailFast, SoftReferenceSize]. > Ensure that your plugin configuration string uses key values that correspond to setter methods in the plugin class. > at org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:196) > at org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java:142) > at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:199) > at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:152) > at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:1) > at org.apache.openjpa.persistence.datacache.TestQueryResultSize.test(TestQueryResultSize.java:61) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at junit.framework.TestCase.runTest(TestCase.java:154) > at junit.framework.TestCase.runBare(TestCase.java:127) > at junit.framework.TestResult$1.protect(TestResult.java:106) > at junit.framework.TestResult.runProtected(TestResult.java:124) > at junit.framework.TestResult.run(TestResult.java:109) > at junit.framework.TestCase.run(TestCase.java:118) > at org.apache.openjpa.persistence.test.PersistenceTestCase.run(PersistenceTestCase.java:144) > at junit.framework.TestSuite.runTest(TestSuite.java:208) > at junit.framework.TestSuite.run(TestSuite.java:203) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213) > at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) > at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) > at org.apache.maven.surefire.Surefire.run(Surefire.java:177) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:334) > at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:980) > Caused by: org.apache.openjpa.lib.util.ParseException: There was an error while setting up the configuration plugin option "QueryCache". The plugin was of type "org.apache.openjpa.datacache.ConcurrentQueryCache". Setter methods for the following plugin properties were not available in that type: [name]. Possible plugin properties are: [CacheSize, FailFast, SoftReferenceSize]. > Ensure that your plugin configuration string uses key values that correspond to setter methods in the plugin class. > at org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:502) > at org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:430) > at org.apache.openjpa.lib.conf.PluginValue.instantiate(PluginValue.java:103) > at org.apache.openjpa.lib.conf.ObjectValue.instantiate(ObjectValue.java:83) > at org.apache.openjpa.datacache.DataCacheManagerImpl.initialize(DataCacheManagerImpl.java:52) > at org.apache.openjpa.conf.OpenJPAConfigurationImpl.getDataCacheManagerInstance(OpenJPAConfigurationImpl.java:614) > at org.apache.openjpa.kernel.AbstractBrokerFactory.initializeBroker(AbstractBrokerFactory.java:211) > at org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:190) > ... 32 more -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.