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
0 votes
0 answers
4 views

SDKMAN can not install java because headers.tmp file is missing

I need to use multiple versions of java in my ubuntu 22. Just install SDKMAN with the command curl -s "https://get.sdkman.io" | bash but can not install java. When prompting command sdk ...
mahfuj asif's user avatar
  • 1,891
0 votes
0 answers
5 views

My application frontend does not open when I use intellij only when I use eclipse

I have a legacy application that was migrated to SpringBoot and when I run it through Eclipse without configuring anything different it runs and when I access my http://localhost:8080 it opens ...
Supersan's user avatar
1 vote
0 answers
8 views

Jersey ServletContainer still trying to use javax

I am trying to update an application to run on Tomcat 10.1.26 supporting Jakarta EE 10 with jakarta.* package naming. When deploying in Tomcat I get this error over javax.* package naming. org.apache....
Mark Smith's user avatar
0 votes
0 answers
7 views

How to securely send files from server and store them to client's PC without client's interaction, with scheduling

I know that some iteration of this question was asked already, but I think my case is a bit more specific. I have a product that customers use to retrieve files from my server, periodically by ...
chovo's user avatar
  • 25
0 votes
0 answers
8 views

SpringBootTest uses application.properties from src/main

I am trying to run spring-boot test: @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) @ActiveProfiles("test") public class UserServiceIt{} THIS test doesnt need/...
Johnyb's user avatar
  • 1,280
0 votes
0 answers
5 views

How to use Flink Kafka datasource as InputStream

I need to run something on Flink that does the following: Take a bunch of audio data from Kafka and stream them to AWS transcription service. Sounds easy, my problem is that the ...
Alpha_Omega's user avatar
0 votes
0 answers
15 views

Spring Boot loading classes from nested jars inside main executable JAR

I have a requirement to compile classes during Spring Boot application runtime. To do that I am using ToolProvider.getSystemJavaCompiler() and following approach: try (StandardJavaFileManager ...
Dmytro's user avatar
  • 192
0 votes
0 answers
20 views

How can I enhance the development of JAVAFX applications using MVC? [closed]

I have been working with JAVA and JAVAFX for some time now. I have come to discern certain limitations in utilizing FXML when tasked with creating dynamic and complex applications. My personal ...
Starnec's user avatar
  • 571
0 votes
0 answers
11 views

How can I determine if a Java/Kotiln/JVM (AWT / Compose multiplatform) application is running within a window manager on linux?

I am creating a desktop application using Compose multiplatform. More specifically, using the JetBrainsRuntime via the glue provided by jewel. I am looking for a way to determine if my application is ...
tealsnow's user avatar
  • 133
0 votes
1 answer
12 views

Not provider of jakarta.mail.util.StreamProvider was found (not Spring Boot!)

I'm trying to migrate a JavaX.mail class to use Jakarta mail, as it's required to move from Tomcat 9 to 10. I'm receiving a message java.lang.IllegalStateException: Not provider of jakarta.mail.util....
user3260912's user avatar
0 votes
0 answers
15 views

KafkaConsumer is not able to process 2 million records

I am facing issue while fetching 2 million records from kafka topic through a consumer. My requirement is to fetch the record and store those records into a Map and return that Map to other methods so ...
sanju's user avatar
  • 1
0 votes
0 answers
9 views

MultiPart Request Spring

How can I make a breakpoint in my api to receive a request with json + file using Spring? I've already tried using RequestParam, RequestBody and RequestPart, but none of it worked. It works to receive ...
Guilherme Fernando Goebel's user avatar
0 votes
0 answers
11 views

Show pdf file uploaded by user in Primefaces | Spring Boot

I have a widget to upload a file, and I want to preview the file after upload. I am using p:media tag but it is not showing the uploaded pdf file. However, I have another widget where there is an ...
Himanshu Joshi's user avatar
-1 votes
0 answers
8 views

GRPC python cannot modify trailing metadata of python rpc status when aborting request (StatusRuntimeException)

Tried some hours to transfer trailing metadata inside StatusRuntimeException from a python service. This is like the current code sample which apparently doesn't work since the trailing_metadata is ...
crishushu's user avatar
  • 563
-1 votes
0 answers
10 views

Spring Boot JSON Merge Patch map properties to custom type field

In our codebase, we have a class called OptionalOrUndefined public class OptionalOrUndefined<T> { @Getter private final boolean defined; private final T value; public static <T> ...
Elizar Pongracz's user avatar
0 votes
1 answer
30 views

Proper way to shut down a Spring Boot application after a specific unit of work is completed

I have a number of Spring Boot services that are always running that perform several different kinds of tasks. For example I have one service that is reading from an Azure Service Bus queue using ...
kickd16's user avatar
-1 votes
0 answers
7 views

ObservationHandler<ServerRequestObservationContext> does not expose context values to DefaultServerRequestObservationConvention

I am trying to use and extend spring boot's Observation API solution for instrumenting metrics for spring mvc http.server.requests. I'm trying to add a custom tag, with the key duration, and a value ...
msTam's user avatar
  • 258
0 votes
0 answers
17 views

OpenAPI Swagger Documentation Jargons

I have configured OpenAPI documentation in my spring boot application. Everything is coming that is expected but there are a lot of jargons coming up. Only the highlighted and ticked values are ...
Adyant's user avatar
  • 1
0 votes
0 answers
8 views

Getting AccessDenied while accessing getAllSites() method in MS Graph using Java

Getting AccessDenied error while accessing getAllSites() method in MS Graph using Java. I have taken this block of code from Microsoft Learn. When I tried to execute this code, I'm receiving Access ...
Daemon_Demon's user avatar
-3 votes
0 answers
39 views

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

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

Stream anyMatch accept an method reference not implement Predicate [duplicate]

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,172
-1 votes
0 answers
12 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
7 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
0 answers
48 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
44 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
17 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
34 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
10 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
13 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

15 30 50 per page
1
2 3 4 5
22