Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
70 views

After an upgrade whenever I try to Sync my gradle on a project I get this error: Could not get unknown property 'guava' for extension 'libs' of type org.gradle.accessors.dm.LibrariesForLibs. The ...
Rewind's user avatar
  • 2,860
0 votes
1 answer
72 views

I want to avoid to use database connection to retrieve very repetitive content of my web app. I would like to know if exists any way to use a memory cache (memcache?) with time expiration and loading ...
Tobia's user avatar
  • 9,617
0 votes
1 answer
91 views

Passing Double.MAX_VALUE in Guava's DoubleMath.isMathematicalInteger() returns true. Is that correct? I see that DoubleMath.isMathematicalInteger(Double.MIN_VALUE) returns false.
user avatar
1 vote
1 answer
169 views

I've below build.gradle - buildscript { repositories { maven { name 'jenkins' url 'https://repo.jenkins-ci.org/releases/' } } } plugins { id '...
user51's user avatar
  • 10.6k
0 votes
0 answers
24 views

Consider a standard java entity BarEntity declaring a OneToMany relation to Set<FooEntity> fooEntities. I would like to replace the Set<FooEntitty> with a guava ForwardingSet, giving me ...
Jan Galinski's user avatar
  • 12.1k
0 votes
0 answers
47 views

I am trying to run a simple Selenide test using Selenium 4.14.1, but I keep getting this error when launching Chrome: Exception in thread "main" org.openqa.selenium....
Shubham Tunwal's user avatar
0 votes
0 answers
39 views

I am trying to find a mainstream cache for Java that supports: LRU Time-based eviction Load multiple keys in one shot. The downstream service has an API to fetch multiple keys. I want to cache many ...
MOA's user avatar
  • 11
1 vote
0 answers
31 views

I cloned the Guava project and attempted to run the unit tests locally with JDK 11. Why do I encounter a java.lang.UnsupportedClassVersionError?I haven't made any modifications. here is the error: ...
Poo Yoo's user avatar
  • 11
0 votes
0 answers
69 views

I have created a guava Cache indicating that entries should expire a fixed time after last access (using the expireAfterAccess() method of CacheBuilder). I understand that calls to get() and put() on ...
Brandon E Taylor's user avatar
0 votes
1 answer
405 views

I'm using Calendar by guava tried to follow the documentation and the demo but couldn't get the result i'm looking for which is showing the appointments of a doctor. I succeeded to show the events ...
Abdo Rabah's user avatar
  • 2,162
0 votes
1 answer
96 views

I am using Guava (v 32.1.1) RateLimiter as following: int permitsPerSecond = 10; RateLimiter rateLimiter = RateLimiter.create(permitsPerSecond); Stopwatch stopwatch = Stopwatch....
RRM's user avatar
  • 2,721
0 votes
0 answers
42 views

1.When I am trying to run jar file which is created by maven project through command line it is show error 2.After adding Guava version of 25.0-jre error occur 3.I am using selenium version 3.141.59 ...
Monita Shinkar's user avatar
-1 votes
1 answer
91 views

Guava’s Preconditions class is defined as: public final class Preconditions { private Preconditions() {} private interface Impossible {} // (static methods that are not using Impossible) } I ...
Nicolapps's user avatar
  • 1,002
2 votes
0 answers
72 views

In my build.gradle I have defined Guava dependency as follows: implementation("com.google.guava:guava:33.2.1-android") This is flagged by Lint: A newer version of com.google.guava:guava than ...
FilozoF's user avatar
  • 21
0 votes
1 answer
107 views

I am trying to build an ImmutableListMultimap which has sorted values. I tried the following but toImmutableListMultimap supports only value mapper and not the list of value mapper. Is there any other ...
Rishabh Deep Singh's user avatar
0 votes
2 answers
113 views

I have a Google Guava MultiMap, namely com.google.common.collect.ArrayListMultimap, in Java that has a lot of entries. The entries are string, like this: URL1=URL2 URL2=URL1 URL4=URL3 URL3=URL4 As ...
Costas Ginos's user avatar
0 votes
0 answers
43 views

I have a requirement to rebuild the cache which is already declared and configured based on a condition. private static final Cache<String, List<String>> CACHE = CacheBuilder.newBuilder()....
jijesh vu's user avatar
2 votes
1 answer
107 views

I'm working on a public library, and I need to shadow some dependencies so that consumers of the library don't get conflicts. I'm working on adding Guava to the mix. When I add Guava directly I get no ...
Hounshell's user avatar
  • 5,469
1 vote
1 answer
761 views

I'm working on a Gradle multi-module project where Service A (the library module) depends on the latest version of Guava (33.1.0-jre). To ensure proper Guava functionality, Service A's build.gradle ...
Krzysztof Wojdak's user avatar
-2 votes
2 answers
121 views

I have this old legacy code: dependency com.google.guava:guava:15.0 @Entity @Table(name = "profiles") public class Profile { @Id @Column(name = "id", nullable = false) ...
Peter Penzov's user avatar
2 votes
1 answer
254 views

Implicitly created EhCache caches I have a Spring component which declares some caches using a file ehcache.xml with the following kind of configuration: <?xml version="1.0" encoding=&...
Aisteru Firë's user avatar
1 vote
1 answer
75 views

My problem is that there is a generic class called TypedProducer<K, V> for key and value and I do have to instantiate it from configuration (let's say config tells me during runtime that key is ...
GoMati's user avatar
  • 89
1 vote
0 answers
331 views

Hello i ran into an issue in my code, i was using Exploayer for a long time but i installed a new dependency to do something completely different(a .jar) and now every time i try to visualize ...
alpheonix's user avatar
  • 325
0 votes
1 answer
182 views

My code merges (flatmap, concatenate) multiple IO streams into a single stream. Does wrapping that stream with a resource-with-try block properly close the underlying streams? public ...
Arian's user avatar
  • 7,809
2 votes
0 answers
374 views

Striped locks, as popularized with Google Guava java library, allow the user to trade between required concurrency and memory footprint. However, I wonder if this is still true with Java 21 virtual ...
Hristo Stoyanov's user avatar
-1 votes
1 answer
187 views

Make Cache.get(key, mappingFunction) fail all waiting threads too if mappingFunction fails in Caffeine If 3 threads come in parallel then currently if first get call fail after 1 mins, then second ...
user3676029's user avatar
0 votes
0 answers
52 views

I am using library guava from google to get the TLD and suffix from domains my Implementation is like def getTopPrivateDomain(urlString: String): String = { try { ...
Hrashikesh Tiwari's user avatar
0 votes
1 answer
318 views

Can caffine cache removal listener may get called multiple times(concurrently) for the same entry. Lets say Entry<Key,Value> is removed. Can removal listener run multiple times(concurrently)for ...
user3676029's user avatar
0 votes
1 answer
1k views

I have a Spring Boot application in which I have the following implementation of Caffeine to help me cache some tokens: CacheConfig.java @Configuration @EnableCaching @Profile("!test") ...
SS123's user avatar
  • 13
5 votes
3 answers
6k views

I have included the below dependency in the build.gradle file of my gradle project to work with VertexAi LLM Libraries. implementation group: 'dev.langchain4j', name: 'langchain4j-vertex-ai', version: ...
Sachu's user avatar
  • 358
0 votes
1 answer
134 views

I am trying to use Kotlin Multiplatform that targets both Android and iOS. But when running tests with the task "iosSimulatorArm64", these imports showed the error "unsolved reference&...
Andy's user avatar
  • 309
0 votes
0 answers
39 views

Sorry for bad english. I made an java code and created a repository on github, but the library guava that i was using didnt go with the rest of the code. How can i add this library in my repository in ...
Caio Diniz's user avatar
1 vote
0 answers
98 views

I have a Map made up of this structure Map<String, Multimap<Boolean, String>> . I want to separate all the true entries in one new map and the false ones in a second. I have the following (...
Timothy Clotworthy's user avatar
0 votes
1 answer
295 views

This is my first time posting a question here,and I'm new to Guava Cache, so please bare with me :). Regarding the cache keys - In the DB itself the relation between my key to the values I'm ...
Ben Weis's user avatar
0 votes
0 answers
85 views

Suppose I have an existing Map<Integer, Map<Integer, String>> which contains items, I want to construct a com.google.common.collect.Table from that map for there's unnecessary data copy
Michael's user avatar
  • 434
0 votes
0 answers
281 views

I'm using Guava cache as non-loading cache in my project and set the max size and expire after write CacheBuilder.newBuilder() .expireAfterWrite(1h) .maximumSize(5000) .recordStats() I ...
KevinZhou's user avatar
  • 507
4 votes
2 answers
746 views

Is there a way in Kotlin to "peek" into the next element of an iterator without advancing it? For an example use case, consider this function for merging two pre-sorted sequences: fun merge(...
k314159's user avatar
  • 12.5k
0 votes
2 answers
211 views

I had hoped to find a simple class that just does this in gRPC Context library, but sadly no luck. I want to wrap an arbitrary ExecutorService so it will wrap its tasks in order to propagate the ...
David's user avatar
  • 423
0 votes
1 answer
3k views

I am trying to download the dependency serenity core 4xx version(testImplementation "net.serenity-bdd:serenity-core:4.0.0-beta-1") but its throwing the below error: could not resolve com....
Syed Atif's user avatar
0 votes
1 answer
462 views

After updating Xamarin Forms to version 5.0 and the Android project to version 13 (a lot of errors might be gone because the latest version requires Android 13, not 12 not 11 but it is not written ...
neverdayxy's user avatar
12 votes
2 answers
8k views

I'm trying to use the OpenRewrite plugin in my Java project and it requires guava. Gradle is unable to choose between two variants because the plugin doesn't check attribute org.gradle.jvm.environment....
Martin Johansen's user avatar
1 vote
2 answers
632 views

I am noticing that out of the box JSON serialization does not work the same in production vs. unit tests. Things that work perfectly fine when I run the app with ./gradlew bootRun fail in unit tests. ...
Baxter Freely's user avatar
0 votes
1 answer
4k views

I am running a jar on spark slave with version spark-2.5.6-bin-hadoop where i am getting this error on submitting the jar Exception occurred while create new JwtSource java.lang.NoClassDefFoundError: ...
anand's user avatar
  • 1
0 votes
0 answers
34 views

I have a usecase where I have jobs which can have dependencies or be boxes containing other jobs like in autosys. For e.g JOB_BOX contains JOB1, JOB2 and JOB3 where JOB2 depends on JOB1 and JOB3 ...
vkp's user avatar
  • 121
2 votes
0 answers
156 views

I'm looking to make use of a guava loading cache, defined so far as follows. I would like the keys used as a string to be case insensitive. Ideally, I would prefer the cache to handle this, rather ...
user3130010's user avatar
-1 votes
1 answer
149 views

I'm trying to compile a project and it uses guava. The project is Asterisk-Java (https://github.com/asterisk-java/asterisk-java) and when I'm trying to run the .jar with the command java -cp asterisk-...
Florian's user avatar
0 votes
0 answers
322 views

I am trying to call com.google.common.collect.Lists.cartesianProduct(...), but I keep getting a NoSuchMethodError. I would happily use either the version that expects a List of Lists as an argument or ...
Joe7's user avatar
  • 518
0 votes
1 answer
76 views

I've two lists of same size : List<A>listA, List<B>listB that are completely independent of each other. I'd like to sort listA based on how the elements move in listB. Assume there's an ...
duplex143's user avatar
  • 669
0 votes
0 answers
18 views

I have a list of json property files ( around 20 json property files) Now, need is to find common properties across these json files. I have used guava api json file comparison, it compares 2 json ...
NehaGoswami's user avatar
0 votes
1 answer
2k views

I am using Appium 2.0.0-beta66, Java Client 8.5.0, node 18.xx, Selenium-java 4.9.1, Selenium Server 3.141.59, TestNG 7.7.1, and JDK 1.15.0-02, what is the next long term JDK I can go for ? BTW, I am ...
user avatar

1
2 3 4 5
73