Issue Details (XML | Word | Printable)

Key: NUCCACHE-22
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: subes
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
DataNucleus Cache

EHCache support incomplete

Created: 28/May/11 12:55 AM   Updated: 03/Oct/11 07:40 AM   Resolved: 19/Sep/11 09:23 AM
Component/s: EHCache
Affects Version/s: 3.0.0.m2, 3.0.0.m3
Fix Version/s: 3.0.1

Environment: ehcache-core-2.4.2

Severity: Development


 Description  « Hide
Seems like there is a missing implementation that hinders me from using EHCache for L2Cache.

java.lang.UnsupportedOperationException: evict(Class, boolean) method not yet supported by Ehcache plugin
at org.datanucleus.cache.ehcache.EhcacheLevel2Cache.evictAll(EhcacheLevel2Cache.java:288)
at org.datanucleus.store.rdbms.query.JPQLQuery.performExecute(JPQLQuery.java:660)
at org.datanucleus.store.query.Query.executeQuery(Query.java:1744)
at org.datanucleus.store.query.Query.executeWithMap(Query.java:1661)
at org.datanucleus.api.jpa.JPAQuery.executeUpdate(JPAQuery.java:124)
at de.invesdwin.gemeinsam.persistenz.api.ADao.loescheAlle(ADao.java:185)
at de.invesdwin.gemeinsam.persistenz.test.APersistenzTest.resetDatenbank(APersistenzTest.java:70)
at de.invesdwin.gemeinsam.persistenz.test.APersistenzTest.setUpOnce(APersistenzTest.java:64)
at de.invesdwin.gemeinsam.persistenz.TestDaoPerformanceTest.setUpOnce(TestDaoPerformanceTest.java:25)
at de.invesdwin.gemeinsam.test.ATest.setUp(ATest.java:69)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:24)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)



Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 28/May/11 05:35 AM
Being open source, you could easily contribute a patch for such a thing.

Andy Jefferson added a comment - 19/Sep/11 09:23 AM
SVN trunk works for me. Since no user testcase is provided then it is closed