Category "java"

How do I know if an array list of objects contain a certain string?

I made a method that search through an array list of objects. Then if the searchKey is found in the array list it will print this certain item. Here is how I it

Cookie Management For Webflux WebClient

I have a WebClient that sends a JSON object with login credentials to a remote server. The remote server then returns the cookie. After which I need to POST dat

Java program runs yet compilation fails

I wrote a Java program whose filename was (intentionally) different from the class I wrote inside the file. The javac command failed as expected on both CMD and

Spring Cloud Gateway for composite API calls?

I am starting to build a Microservice API Gateway, and I am considering Spring Cloud to help me with the routing. But some calls to the Gateway API will need mu

Is there a cleaner / simpler way to calculate the edge in a geometry that a line crosses?

In the code below it is fairly simple to check does the line cross into the geometry or not - it's also trivial to work out the coordinate that the line crosses

How to configure Spring-Security AntPathRequestMatcher to case insensitive in XML configuration

We recently upgraded Spring-Security from 3.X to 5.6. Most of the issues we could iron out however one thing proves difficult. The problem was caused by a chang

My data is not getting uploaded in firebase it has internet access creating user with firebase auth that also not getting uploaded & nor child created

Below is the java file of this activity. I want my name and email to be stored in realtime database and sign in with firebase auth, but neither is working. I fo

How to remove last slash "/" from base url in Retrofit 2

When I Type Base Url="https://www.bkashcluster.com:9081/dreamwave/merchant/trxcheck/sendmsg/" with last slash(/) then give me message like this: Response{proto

DependencyException: Failed to find provider with satisfied dependency set for interface org.ehcache.core.spi.store.Store

I have an app that uses EHCache, it worked when using Payara Application server version 1.0.5 but after upgrading to 1.1.0 it started breaking. Here's a snippet

JNI: SIGSEGV when calling native function from Java, after native registration of same function on library second opening

I have an Android app that is structured in the following way: CORE: Is the class of the accessibility service that dinamically loads a few dex files. It will b

This error handler cannot process 'SerializationException's directly;

The image below is my topic. Every once in a while, a value other than an empty or json is returned. If it is null, it throws an error as below and enters the

Solana rpc subscribe to account transactions

I am trying to listen for transactions for an account, I need to know when a transaction is received and get the hash of that transaction. I am using Solana's j

How to create a standalone application using JavaFX 11 (Modular)? [duplicate]

I'm following the tutorial here and using openjdk 11.0.2 and javafx-sdk-11.0.2. I've imported the maven project in Eclipse. The project actual

java.lang.IllegalStateException: No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-netflix-ribbon?

I am getting exception: FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: No Feign Client for loadBalancing d

Cannot resolve org.springframework.cloud:spring-cloud-starter-netflix-eureka-client:unknown

I am following a tutorial to learn eureka server/client with spring boot when I try to install maven dependencies in the pom.xml I get the error in the title th

Quarkus Reactive Routes: different behaviour in uber jar

Following this guide, I have configured my Quarkus application to return a custom error page when a file is not found in META-INF/resources/. @ApplicationScoped

No implementation found for method getApplicationSupportDirectory on channel plugins.flutter.io/path_provider using java (not using kotlin)

I am using new flutter version 2.2.3 and firebase_messaging 10.0.5 plugin.. I have implemented the FCM services. I have got the FCM in background but when FCM i

Android: How to determine Network speed in android programmatically

How to show a slow internet connection to the user when the network is connected Note: Not a network type (2G,3G,4G, WIFI)

need help in creating Dynamic multilingual PDF using java spring boot

I have to create dynamic report in PDF in multiple languages like english,spanish,german,italian etc. .The report is divided in various sections which will hav

I am trying to setup spark in local but getting error

Using Spark's default log4j profile: org/apache/spark/log4j-defaults.properties Setting default log level to "WARN". To adjust logging level use sc.setLogLevel(