devng / twig-persist

Automatically exported from code.google.com/p/twig-persist
0 stars 0 forks source link

IllegalAccessError in MapMaker.expireAfterWrite using Datastore.find() #81

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Moving to twig 2.0-rc with code that worked fine with 1.0.4, I execute this 
command in the local dev environment:
store.find(User.class)

and get this stack trace:

java.lang.IllegalAccessError: tried to access method 
com.google.common.collect.MapMaker.expireAfterWrite(JLjava/util/concurrent/TimeU
nit;)Lcom/google/common/collect/MapMaker; from class 
com.google.code.twig.standard.StandardCommonFindCommand
    at com.google.code.twig.standard.StandardCommonFindCommand.<clinit>(StandardCommonFindCommand.java:240)
    at com.google.code.twig.standard.StandardFindCommand.type(StandardFindCommand.java:15)
    at com.google.code.twig.standard.TranslatorObjectDatastore.find(TranslatorObjectDatastore.java:221)

What version of the product are you using? On what operating system?

twig-persist 2.0-rc with GAE SDK 1.7.5

Please provide any additional information below.

Original issue reported on code.google.com by alex.rho...@temet.ch on 17 Mar 2013 at 9:50

GoogleCodeExporter commented 8 years ago
I could make this error go away by moving back to guava 10.0.1.
So the issue is rather that twig-persist 2.0-rc is not compatible with guava > 
10

Original comment by alex.rho...@temet.ch on 18 Mar 2013 at 9:10

GoogleCodeExporter commented 8 years ago
There is a patch attached to the thread at 
https://groups.google.com/forum/#!msg/twig-persist/MOR2-7TpRFQ/ZHzghDJdEVEJ 
that addresses this issue (and the patch works for me)

Original comment by nathan.t...@gmail.com on 22 Jul 2013 at 2:49