Java Community | Help. Code. Learn.

JCH

Java Community | Help. Code. Learn.

We are a Community full of Java developers. You can come here to connect other devs, get help, help others and do many more things!

Join

java-help

❓︱qotw-answers

Ayuden, por favor

¿Qué medidas de seguridad se deben implementar para proteger los datos de los usuarios?

Ayuden, por favor

¿Qué medidas de seguridad se deben implementar para proteger los datos de los usuarios?

Websocket Postman

I just wanted to check if someone notice anything wrong in my code. Basically, what I want to do is that when a new user registers, I want the admins to be notified with "New user has been registered", but I want to do it in real-time using WebSocket. I'm testing my WebSocket URL ws://localhost:8080/ws, and I successfully connect to it. I also subscribe to the destination: ```SUBSCRIBE...

instance

```public class CooldownManager { private final Map<UUID, Instant> map = new HashMap<>(); // Set cooldown public void setCooldown(UUID key, Duration duration) {...

JDBC

I already make the conecction to Firebird and add a singleton , i made the graphic interface with CRUD functions but I can execute one function for example list, and the "This connection is closed and cannot be used now." appear , i need help plz i have like 1 day to finish

Can I read a section of yaml without spring ?

I have a yaml file with say 3 properties sections A,B,C . I wanted to know if I can load a section only like B in in variable map of properties() . Parse will do for whole yaml, and not sure on spring . Manual map feels troublesome...

The collection of metamodel types is empty

I'm have a maven project with JPA and EclipseLink. When I run it don't generate the tables in the database. I have this output:
The collection of metamodel types is empty. Model classes may not have been found during entity search for Java SE and some Java EE container managed persistence units. Please verify that your entity classes are referenced in persistence.xml using either <class> elements or a global <exclude-unlisted-classes>false</exclude-unlisted-classes> element
The collection of metamodel types is empty. Model classes may not have been found during entity search for Java SE and some Java EE container managed persistence units. Please verify that your entity classes are referenced in persistence.xml using either <class> elements or a global <exclude-unlisted-classes>false</exclude-unlisted-classes> element
...

cant install LWJGL

i get the error: Error occurred during initialization of boot layer java.lang.module.FindException: Module LWJGL_3_Tutorial not found i have added the lwjgl to my project but i still cant run my project...

cant open eclipse marketplace

Cannot open Eclipse Marketplace Cannot install remote marketplace locations: ExceptionInInitializerError java.lang.ExceptionInInitializerError ExceptionInInitializerError java.lang.ExceptionInInitializerError...

Spring security: Authentication object null on authentication post request

Can anyone help me understand why the user passed on the authentication request is not being passed to the authentication object? Thank you. Security config: ```java...

eclipse issue

@dan1st | Daniel

IntelliJ Plugin Development

Hi, im tring to get into developing intellij idea plugin and wanted to try to remake the errorlens plugin from VS, but i can' t find how to listen to the ide code analysis and shop inlay messages on the same line as the code analysis

I cant able to run Servlets and fix this error

I created a Maven web project and tried everything, but this error is not going away. However, when I created JSP files, everything worked fine. But when I tried to create a servlet and imported from Jakarta, I got a 404 Not Found error. I also tried importing from javax, but the same error occurred. I checked the Targeted Runtime, and it's set to Apache Tomcat 10.1 with Jakarta 6.1. In Project Facets, I changed the Dynamic Web Module from 2.3 to 5.0. My JDK version is 23, but after these changes, the situation got even worse. Now, I'm getting a Catalina Lifecycle Exception and an Illegal Argument Exception....
No description

why intellij + maven?

a ton of people say that intellij and maven are the only professional way to go in order to use javafx. I find intellij and gradle to be much easier. and, just from reading, eclipse plus e(fx)java looks even easier. so why all the hate? is it just because Eclipse is open source so they refuse to take it serious?...

is this question outdated?

I am reading that the finalize() method is a thing for before Java 9 and is not advised to be used for more modern solutions. Including I am getting some errors when trying to @Override it in the IntelliJ IDE.&nbsp; Is it possible this question is outdated or what would be the expectation in terms of this...
No description

org.hibernate.exception.GenericJDBCException: unable to obtain isolated JDBC connection

I'm working with a Spring Boot application that connects to a PostgreSQL container running through Docker. However, when I try to run the application, I encounter the following error: org.hibernate.exception.GenericJDBCException: unable to obtain isolated JDBC connection [FATAL: password authentication failed for user "your_user"]...

Get a error when trying to create a new fxml file with e(fx)clipse plugin

An error has occurred. See error log for more details. org/eclipse/jface/databinding/swt/WidgetProperties this is a error pls help...
No description

Backoff and retry for parallel api calls

I have a list of objects that i make parallel api calls and store the result in database. But the problem I am having now is the api goes down and subsequent calls fails I am not sure how I should implement backoff and retry since these are parallel calls I have already executed those ```java...

Java classfile api example

https://openjdk.org/jeps/457 can anyone provide an example of using this to get the contents of a class method? its relatively new tech and couldn't find it anywhere...

Organization

Hey guys, I would like some pointers from an experienced Java programmer. How should I organize my classes, methods, packages, etc?