openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Curtis (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (OPENJPA-1626) ParseException when specified name of QueryCache
Date Wed, 14 Jul 2010 20:08:49 GMT

     [ https://issues.apache.org/jira/browse/OPENJPA-1626?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Rick Curtis reassigned OPENJPA-1626:
------------------------------------

    Assignee: Rick Curtis

> 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
>         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
> <openjpa-1.1.1-SNAPSHOT-r422266:930378M nonfatal general error> 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.


Mime
View raw message