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.

0 votes
0 answers
4 views

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

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
7 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
0 answers
9 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
11 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
7 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
9 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
7 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
26 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
-2 votes
0 answers
33 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
37 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
11 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

15 30 50 per page
1
2 3 4 5
42