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.
1,919,582
questions
0
votes
0
answers
3
views
Spring RestClient seems to ignore configuration
I am trying to utilize spring RestClient to send simple post request with object seriaslized to JSON in request body. I need the objects to be serialised excluding null valued fields, so I thought ...
0
votes
0
answers
6
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 ...
0
votes
0
answers
6
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 ...
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....
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 ...
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/...
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 ...
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 ...
0
votes
0
answers
21
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 ...
0
votes
0
answers
12
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 ...
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....
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 ...
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 ...
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 ...
-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 ...