1,917,319 questions
0
votes
0
answers
5
views
Making a simple relational table in JPA
I have a table that in PostgreSQL looks like this:
CREATE TABLE member_block (
member_id INT NOT NULL REFERENCES member(id),
block_id INT NOT NULL REFERENCES member(id),
CONSTRAINT ...
0
votes
0
answers
14
views
Glassfish wants an EntityManagerFactory when using PersistenceContext
I have a project I'm converting from Java EE to Jakarta 10. I'm trying to get the persistence to work on Glassfish 7. Unfortunately when the application is deployed to Glassfish I get the following ...
-1
votes
1
answer
43
views
Spring Batch metadata tables are not automatically created in Spring Boot 4
I am trying to set up a Spring Batch project using Spring Boot 4.0.0
The application starts successfully, but the standard Spring Batch meta-data tables (e.g., BATCH_JOB_INSTANCE, BATCH_JOB_EXECUTION, ...
0
votes
3
answers
77
views
Concurrent cache using SoftReferences behaves unpredictably under memory pressure, how to fix?
I’m implementing a high-throughput caching layer in Java. The cache is accessed concurrently by hundreds of threads and stores large objects. I’m using ConcurrentHashMap with SoftReferences to allow ...
Best practices
1
vote
4
replies
54
views
JavaFx: Set font size of all labels
I am using Java / JavaFx 17. In my application there are multiple label objects (ca. 25). Instead of setting for all labels individually the font size, I would like to know, if there is any ...
0
votes
1
answer
53
views
Java AOT not working due to log4j.core.lookup.JndiLookup [closed]
Okay, I've been trying for a while to add AOT compilation in spring-boot 4.0.2 and Java 25 (tried both with GraalVM and Amazon Corretto) and regardless of the VM used, I seem to be encountering this ...
Tooling
0
votes
1
replies
24
views
How does account authentication work for GitHub Copilot and other AI providers in IntelliJ AI Assistant?
Since the IntelliJ AI Assistant update, I want to know how to link accounts to different AI models, MCPS, agents and ACPs
These are the accounts I use:
A JetBrains account for the AI Assistant (works)...
1
vote
1
answer
64
views
spring boot starter web as plugin application
I'm Trying to add a RestContoller spring functionnality to my application as a plugin.
So far I've been using spring-boot-maven-plugin with the repackage goal, but I don't know how to load the ...
0
votes
0
answers
35
views
Finding all shadow roots [duplicate]
I am looking for a Selenium XPATH query to find all nodes in an xpath which have a #shadowroot under them. I want to open each root and continue doing that to find something I am looking for since I ...
0
votes
0
answers
45
views
Eclipse collection that is concurrent, has unique elements and atomic retrieval and removal
I wonder if there is a suitable data structure that has the following three characteristics:
The collection can be modified by multiple threads
Has unique elements in the collection
The collection ...
0
votes
0
answers
66
views
java.lang.UnsatisfiedLinkError: The specified procedure could not be found when trying to use thick (Oracle Instant Client) JDBC connection
Our DBAs want to enable Transparent Application Failover (TAF) in our Oracle databases and we were told to enable this we needed to change from 'thin' JDBC connections to OCI in our Java applications. ...
1
vote
2
answers
52
views
Is it possible to correctly generate POJO with non-ascii names using jsonschema2pojo-maven-plugin?
Given a javaType Användare (works) and a property "förnamn" it generates a class Användare (correctly) but the field is then "fRnamn"
@JsonInclude(JsonInclude.Include.NON_NULL)
@...
Advice
0
votes
3
replies
51
views
Statement execution after thread interruption
Will Statement execution be canceled if the thread that is executing it is interrupt()ed (execute() has not yet returned)? For example, after calling swingWorker.cancel(true).
It may be anything:
...
-2
votes
0
answers
51
views
java checkstyle rules debugging [closed]
How do I validate this java checkstyle rule. I am trying to match a copyright footer but couldn't. How do I rewite this rule?
<module name="RegexpMultiline">
<property name="...
-3
votes
0
answers
71
views
File Handling's BufferInputStream vs FileInputStream [closed]
flow FIS : disk ->read-> My Buffer(64kb) -> write->disk
flow BIS : disk->read->internal Buffer(256kb) ->my buffer(64kb )->internal Buffer -> disk
why can't we use one ...