1,914,891 questions
Score of -1
0 answers
65 views
How to perform concurrent CRUD operations on Microsoft Fabric Lakehouse from Java without exhausting Livy sessions
I created a standalone Java application that uses the Microsoft Fabric Livy API with JDBC Fabric to perform CRUD operations on a Lakehouse table.
When executed for the first time, the application ...
Score of 1
0 answers
71 views
How to configure RestClient timeout in Spring Boot 4?
In a Java Spring Boot 4 app, I would like to configure a basic RestClient with some custom timeout values, in the simplest possible way. The app does not make any other use of HTTP clients.
The rest-...
Score of -1
0 answers
41 views
SDKMAN not installing java-28.0.0+ea.10-open.zip
I am trying to install from the terminal using the command:
sdk install java 28.0.0+ea.10-open
And it fails with
Repackaging Java 28.0.0+ea.10-open...
__sdkman_post_installation_hook:16: no matches ...
Score of 0
0 answers
73 views
pull text into .env file from a .txt file as variable
i am writing a java spring boot program for a client side to a core service with a license. the client has to have the license to interact with core program. when i enter the whole license as a ...
Score of -3
0 answers
66 views
Java: Create Java Project" silently fails — no project created, no error [closed]
File->Create New File->Create Java Project
failed without any outputs/logs.
Environment:
VS Code 1.133.0 (Windows 11),
Extension Pack for Java, redhat.java 1.55.0,
vscjava.vscode-java-...
Score of 3
4 answers
93 views
How to make icon show with jpackage if in AppData
I was trying to compile my JavaFx application to .exe, and I am trying to design it for one install per user, but when it is installed on the user's %LocalAppData% directory, the icon doesn't show, ...
Score of 1
0 answers
109 views
Activity with excludeFromRecents="true", launchMode="singleTask", and a custom taskAffinity is destroyed when another app is launched
After displaying ActivityA, which is declared with the following attributes in AndroidManifest.xml, launching an unrelated app causes ActivityA.onDestroy() to be called.
<activity
android:name=&...
Score of -1
0 answers
49 views
Hadoop-Hive Configuration [closed]
I installed a different Java version along with Hadoop 3.4.0. Hadoop runs properly, but when I start Hive I get an error. To solve this, I tried deleting the Hadoop SLF4J JAR file, but then Hadoop ...
Score of 1
2 answers
218 views
Read zip in zip for updating
Problem statement:
Replace a file inside a zip file which is inside yet another zip file. Think the following hierarchy:
root.zip
|-- child.zip
|-- file_to_replace.txt
What I've tried:
...
Score of -1
1 answer
145 views
Cookies from server aren't coming with the request [closed]
I'm uploading a file, but I'm getting a 500 Internal Server Error. The response cookies are not being returned by the server. The upload is performed in chunks. For the first chunk, the server is ...
Score of 8
1 answer
262 views
What does "must return a semantically identical result" mean?
Trying to learn the new Gatherers API of Java streams and I see this statement in the javadoc of Gatherer:
Each invocation of initializer(), integrator(), combiner(), and finisher() must return a ...
Score of -6
1 answer
158 views
Have an instance variable be different things?
So, you can make multiple methods with the same name and different parameters to handle different things. For example, if you have one line as public send( Train train, Point to ) and another one as ...
Score of 1
0 answers
74 views
Intermittent latency at java.io.RandomAccessFile.open0 while Tomcat classloading?
Java version: 17.0.20
Tomcat version: 9.0.115
We are running a high transactions-per-second application, typically around 250 TPS. We load a jar at runtime by using class loader. This jar is present ...
Score of 0
1 answer
82 views
How to intercept PreparedStatement and reconstruct SQL with parameters using Byte Buddy for GBase 8c JDBC driver?
I need something similar to log4jdbc to log SQL statements initiated by the application along with their execution times via the JDBC driver side.
However, instead of using log4jdbc's proxy-based ...
Score of -1
4 answers
248 views
Managing JDK versions
Coming from Node/Python where I had nvm and pyenv, and now working on a couple Java projects that need different JDK versions. I tried the usual tools that come up in older answers, and honestly, they ...