1,916,184 questions
0
votes
0
answers
19
views
how @PersistenceContext deals with threads specially with entityManager and Session
I am facing an issue and trying to figure out what is happening. From what I understand, using @PersistenceContext injects an EntityManager into my class. It should be thread-aware, tying the ...
0
votes
0
answers
14
views
Java 21 + Micronaut 4.10.9 + Ignite 3.0: ClassNotFoundException: io.micronaut.core.convert.DefaultConversionService
I hope someone can help me with an issue I'm facing. We have an application using Micronaut 4.10.9 with Apache Ignite 3.0 embedded in the same server. All dependencies and configurations are already ...
Advice
0
votes
2
replies
46
views
How to start developing HTTP server as a beginner for learning projects? and is it even a good idea?
I am Currently a first year Software Engineering trainee based in Germany. for the most part i did Front End and UI/UX development as a hobby before starting my job but now i want to get into back end ...
Tooling
0
votes
0
replies
39
views
Generating and executing Java .class bytecode on Android at runtime without use of storage space
I am looking for a way to execute dynamically generated Java bytecode on both OpenJDK VM and DalvikVM. In other words, I want to make platform-agnostic on-the-fly compiler to Java bytecode, using only ...
0
votes
0
answers
66
views
I want to rearrange the display of an inventory
This method in the Game class makes the inventory by adding a button for each item in the inventory of the player (and adds the listener for each one, to handle the actions later). Sometimes it has to ...
Advice
0
votes
3
replies
59
views
GridDB Java: is there any way to limit query results (like LIMIT in SQL)?
I’m using GridDB with the Java API and ran into a small issue while working with queries.
I have a container with a lot of data, and I only need to read a small portion of it (for example, the first ...
0
votes
0
answers
43
views
Spring integration SMB: "unknown user name" when username contains "@" character
I'm having trouble using spring-integration-smb: when I try to authenticate a user whose name contains an "@", I get the error message "unknown user name". Interestingly, if I ...
Advice
0
votes
1
replies
38
views
How does GridDB handle concurrent writes to the same row key in Java, and how can I avoid overwrites?
I’m using GridDB with the Java API in a multi-threaded application where multiple threads may insert or update data at the same time.
Each record uses a timestamp as the row key. A simplified example:
...
0
votes
1
answer
67
views
Spring JavaMailSender and Testcontainers Mailpit doesn't work together
For testing I have a Mailpit Testcontainers instance running:
@Container
static MailpitContainer mailpitContainer = new MailpitContainer()
.withNetwork(TESTCONTAINERS_NETWORK);
The ...
Best practices
0
votes
7
replies
108
views
Spring MVC REST API - one endpoint for many roles or separate endpoints?
Let's say I have a route:
PATCH /users/1
Now, the authenticated User sends a UpdateUserDTO that contains all the data needed for an update. However, an admin can also update a User, but they can also ...
Best practices
0
votes
7
replies
188
views
How to handle 1 million requests per minute or 10k per second in a full stack application from user interface to backend
what are the performance techniques that we need to apply at each layer of our application development and deployment so that it will handle huge number requests .
lets consider React JS as frontend ...
0
votes
1
answer
88
views
Maven dependency:tree -Dscope=compile returns empty but class is usable in source code — how does transitive scope resolution actually work?
I have a Maven project where jakarta.enterprise:jakarta.enterprise.cdi-api:4.0.1 is usable in my production source code (compiles fine, @ApplicationScoped works), but running:
mvn dependency:tree -...
-3
votes
0
answers
70
views
How to resolve enunciate error for maven project>
I am trying to build apache ranger (2.6) and the build fails with:
clean compile package install
For INFORMATION, I have not yet encountered any apache hadoop-related project using anything other than ...
Tooling
0
votes
3
replies
71
views
Front end framework for desktop applications
I am currently working on a back-end in Java for an application. I wanted to create my front-end with JavaFX but after I gave it a shot I didn't like it very much, and plus I thought that it was much ...
0
votes
1
answer
49
views
JwtGenerator: authenticationTime cannot be null
So right after latest update to SpringBoot 4.0.6, with my spring-boot-starter-oauth2-authorization-server I keep getting following exception:
java.lang.IllegalArgumentException: authenticationTime ...