Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [java]

Java is a high-level object-oriented programming language. Use this tag when you're having problems using or understanding the language itself. This tag is frequently used alongside other tags for libraries and/or frameworks used by Java developers.

java
-1 votes
0 answers
17 views

Exception in thread "main" java.time.format.DateTimeParseException: Text '04-Sep-2023' could not be parsed at index 3

below is the datetimeformatter DateTimeFormatter dtf2 = new DateTimeFormatterBuilder().parseCaseInsensitive() .append(DateTimeFormatter.ofPattern("dd-MMM-yyyy")).toFormatter()...
abhay kumar's user avatar
0 votes
1 answer
21 views

Stream anyMatch accept an method reference not implement Predicate

Stream.anyMatch is defined as: boolean anyMatch(Predicate<? super T> predicate) I created a new Class as follows: class ClassA { public boolean anyMethodName(Object o) { return ...
user1169587's user avatar
  • 1,174
-1 votes
0 answers
8 views

Trouble streaming non-local Google Photos video without downloading

I'm making an app where the user can select a video from the gallery and launch it later using their default viewer. My initial attempt looked like this Intent intent = new Intent(); intent.setType(&...
vincatzero's user avatar
0 votes
0 answers
4 views

Java API only partially available with Frida aarch64

I tried to attach with Frida to Java process run on aarch64 Linux (not Android) I got that error: using frida-server-16.4.3-linux-arm64 [Remote::PID::1234 ]-> Java.enumerateLoadedClasses(); Error: ...
user26530667's user avatar
-3 votes
1 answer
31 views

Why Can't Characters Be Converted to Operators at Runtime?(java) [closed]

While learning Java, I wondered if there was a way to take an operator as a character input and use it directly in calculations. I realized that without using if or switch statements, there is no way ...
user26530492's user avatar
0 votes
1 answer
26 views

How do you assess code for problems handling leap seconds (particularly Java)? [duplicate]

We recently got notice that there may be a negative leap second at the end of the year and we need to determine how it will affect our programs (we write mostly java programs). I've done some ...
cymbalblade's user avatar
0 votes
0 answers
15 views

cannot access class com.sun.tools.javac.api.JavacTrees (in module jdk.compiler)

I have customized an annotation handler using java21. The pom file of the project where the annotation processor is located is shown below: <project xmlns="http://maven.apache.org/POM/4.0.0&...
Photon's user avatar
  • 11
0 votes
0 answers
11 views

Android - BillingLogger: Skipped logging since initialization failed

Testing out in app purchases with the following: purchasesUpdatedListener = new PurchasesUpdatedListener() { @Override public void onPurchasesUpdated(BillingResult billingResult, List<...
Carlos Cmd's user avatar
0 votes
0 answers
26 views

Why is a clean Maven project in Netbeans not running

I am setting up a local instance to run a Java webapp. It's been a while since I've done this but I've done it in the past. So far what I've done is installed JDK 22.0.2 and Netbeans 22 on my local ...
Christian Harris's user avatar
0 votes
0 answers
8 views

Hide page count from the go to section of the pdf toolbar when pdf is opened in browser

From java side I am converting tiff images to PDF like below. Rectangle pagesize = new Rectangle(maxWidth, maxHeight); Document document = new Document(pagesize); PdfWriter.getInstance(document, ...
Raju Kumar Shah's user avatar
-1 votes
0 answers
12 views

Springboot quickstart project always gives same error no matter what I do; Could not determine the dependencies of task ':bootRun' [duplicate]

error in question: FAILURE: Build failed with an exception. * What went wrong: Could not determine the dependencies of task ':bootRun'. > Could not resolve all dependencies for configuration ':...
AbdulMoyeed Mohammed's user avatar
0 votes
0 answers
12 views

OkHttp Response doesn't have provided body object on the client side

I am writing REST APIs using okhttp library in Spring Boot. I have my OkHttpClient requesting a GET request(client) from another API(server). Both the client and server uses OkHtttp libraries, so I ...
Sai Madhav's user avatar
-1 votes
0 answers
5 views

WebClient static mock is not working the second time is called in a test

I have the next static mock: try (MockedStatic<WebClient> webClientStatic = Mockito.mockStatic(WebClient.class)) { webClientStatic.when(WebClient::builder).thenReturn(...
rasilvap's user avatar
  • 1,979
-1 votes
1 answer
16 views

Upload an Excel sheet with huge number of records to a MySql database in the form of a JSON

I have a requirement in Spring Boot project, where I have a huge Excel file with 15-20 sheets, each sheet containing 30,000 rows with an average of 15 columns in each sheet. My Database is roughly as ...
Mohammed Tauseef's user avatar
0 votes
0 answers
6 views

Flink GlobalWindow Trigger only process the trigger event

I have datastream keyby by an event property, that is then passed to a globalwindow, trigged when a specific event comes in, the issue is that when the window is trigged to process the events, it only ...
car_dev's user avatar

15 30 50 per page
1
2 3 4 5
12