Category "java"

Error of connection jdbc postgreSQL Android Studio - Failed resolution of: Ljava/lang/management/ManagementFactory;

I don't understand why the code doesn't works on Android, it's the same code in Java and it's works on my laptop. I've already search on Google, Stackoverflow,

Fastest way to read a CSV file java

I´ve been trying to read several csv files (arround 20 MB) using openCSV, but so far it has been slow. Im trying to read 4 csv files which I´m loadi

ANR and crash in an android app, Android 8(.1), 90% Huawei devices

Since a recent android app update, I'm facing an ANR and a crash issue, that mainly appear on Huawei devices running Android 8. (I managed to reproduce the ANR

Jenkins pipeline library build using Java instead of Groovy

I would like to write my company Jenkins Pipeline Library using Java not Groovy, as groovy is slower than Java. I tried to find examples of such Java Jenkins li

How to curl a POST endpoint with a protobuf payload

I have a POST endpoint in my Java service that expects a protobuf 3 payload. This service is used by other services which send the protobuf payload. I would lik

Dynamic dropdowns using thymeleaf, spring boot

I have 3 dropdowns(one is populate with cities, one with agencies and one with services). If I select one city, the second dropdown should load the data(agencie

RuntimeException: Error in evaluationEvaluation: status: 13 value: {message=Invalid or unexpected token}

when i uploaded to google play console, and review finished. apk rejected by showing this error. how to solve this problem, anyone have a solution? FATAL EXCEPT

How to format only changed line instead of the whole file in Intelijj IDEA

Intellij format complete file when I use Ctl+Atl+L for from menu code-> Reformat Code. This generates whole diff in git commit. I want to format only the cod

How to add scheduled job to all nodes in java springboot cluster?

We have two springboot servers. We use nginx so that the user request will be sent to one of the server node. Now we want to achieve that: After user inputs thr

How to limit number of parallel executions in ParallelStream?

list.parallelStream().forEach(element -> ...); How can I limit the number of parallel threads nowadays? There was a "hack" in the past to set a System prope

How to use math.max in thymeleaf to find maximum number?

While trying to use max function in thymeleaf I got OGNL expressionn everytime. I'm not even sure if we can use functions like max/min in thymeleaf. Tried to lo

evoking gradlew task produces never ending "....... Daemon, 1 busy Daemon could not be reused..." and add 1 to busy every line

Sorry if the question title is not quality to say the least, But i am stumped at this point. Trying to update any project i have to gradle-wrapper 6.5 and up p

can I pass java vm args i.e. -xms and -xmx through a property file to my java program

Can anybody help me in following problem: if I am specifying java args while running my program through java command then if I check my java process using ps -e

How to count groups string input with same character

this code is about Too Many Tabs code. URLs are considered equal if the domains are exactly the same, e.g. google.com and google.co.id are different Example inp

What's the resizable stack of JVM virtual threads?

The open jdk project "Loom" supports virtual thread which allows the classic IO-blocking API to enjoy the great benefits of async, reactor, coroutine developmen

Reasons for using a Bag in Java

I am currently studying about Algorithms & Data Structures and while I was reading over the Book of Algorithms 4th edition, I discovered the Bag data-struct

JDK 11.0.2 compilation fails with javac NPE on anonymous parameterized class type inference

Code (spring-web 5.1.2) public static void main(String[] args) { RestTemplate restTemplate = new RestTemplate(); HttpHeaders headers = new HttpHeaders

Apache Camel: MethodNotFoundException, Failed to invoke method on null due to: MethodNotFoundException

I try following a video tutorial for Apache Camel education and trying aggregate queue objects in a next way: @Component public class AggregationRoute extends R

AspectJ - Aspect from external JAR

I've added a github repo that show exactly my problem: https://github.com/runefist/AspectJ-Stackoverflow-Q In short, I have a project we'll call it ProjectA.

How to create a Paragraph with iTextPDF?

I have this mobile app where I need to export some rows of the database to pdf. I need to have a pdf structure in order to get the information correctly placed.