google / google/jsontoken

Cannot use jsontoken with Guava

Open
#8 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
21
Forks
16
Avg merge
2d 2h
Merged PRs (30d)
2

Description

```
What steps will reproduce the problem?
1. Setup a gradle java project with Guava 17.0 (uses RateLimiter) and jsontoken
1.1 (for use with google wallet JwtGenerater) and try to utilize the
RateLimiter.

What is the expected output? What do you see instead?
No problems should appear.

However, I see this:
Caused by: java.lang.NoSuchMethodError:
com.google.common.base.Platform.systemNanoTime()J
at com.google.common.base.Ticker$1.read(Ticker.java:60) ~[guava-17.0.jar:na]
at com.google.common.util.concurrent.RateLimiter$SleepingTicker$1.read(RateLimiter.java:718) ~[guava-17.0.jar:na]
at com.google.common.util.concurrent.RateLimiter.(RateLimiter.java:333) ~[guava-17.0.jar:na]
at com.google.common.util.concurrent.RateLimiter.(RateLimiter.java:89) ~[guava-17.0.jar:na]
at com.google.common.util.concurrent.RateLimiter$Bursty.(RateLimiter.java:692) ~[guava-17.0.jar:na]
at com.google.common.util.concurrent.RateLimiter.create(RateLimiter.java:247) ~[guava-17.0.jar:na]
at com.google.common.util.concurrent.RateLimiter.create(RateLimiter.java:242) ~[guava-17.0.jar:na]
at com.laquinta.service.propertymaster.dao.TripAdvisorDAO.(TripAdvisorDAO.java:84) ~[TripAdvisorDAO.class:na]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_05]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[na:1.8.0_05]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.8.0_05]
at java.lang.reflect.Constructor.newInstance(Constructor.java:408) ~[na:1.8.0_05]
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
... 54 common frames omitted

What version of the product are you using? On what operating system?
Guava 17.0
jsontoken 1.1

Please provide any additional information below.
The problem appears to be that jsontoken uses the old collections jar instead
of guava. (http://jsontoken.googlecode.com/svn/trunk/pom.xml).

```

Original issue reported on code.google.com by `grgs...@gmail.com` on 8 Jul 2014 at 12:21

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.