Java Community | Help. Code. Learn.

JCH

Java Community | Help. Code. Learn.

We are a Community full of Java developers. Connect with other devs, get help, help others and do much more!

Join

java-help

❓︱qotw-answers

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?

helppp

When i install the java ORACLE setup it doesnt open, what i can do, bc, i have java jdk but i dont have oracle for minecraft mods

How to start Spring

I have grasped the Java SE and am going to start the Java Spring journey, but I have a little knowledge of Tomcat server and Java Servlet. Therefore, when I read some spring books such as Spring 6 in action, there are so many challenging for me like understanding some parts of terms in these books. Hope anyone can recommend some spring learning resources or what should I do before learning Spring!!...

No Persistence provider for EntityManager named IceCreamShopPU

``` Jan 30, 2025 9:51:12 AM jakarta.persistence.spi.PersistenceProviderResolverHolder$DefaultPersistenceProviderResolver log WARNING: jakarta.persistence.spi::No valid providers found. Exception in thread "main" jakarta.persistence.PersistenceException: No Persistence provider for EntityManager named IceCreamShopPU at jakarta.persistence.Persistence.createEntityManagerFactory(Persistence.java:96)...

VS Code Setup Help for Maven Web App and Apache Tomcat Server

Guys, I am learning Servlet, JSP, and Hibernate, and I want to build a project using themβ€”a Maven Web Project. My plan is to first set up a Maven Web Project and then use JSP, Servlet, and Hibernate to build the project in VS Code. I am able to create the Maven Web Project using the maven-archetype-webapp, and I want to run this project on the Apache Tomcat server. Additionally, I want to see real-time changesβ€”whenever I modify my index.jsp file or anything else, it should reflect immediately after starting the server. I have tried everything and watched 20+ videos, but I am still unable to properly set up or configure my Maven Web App with the Tomcat server....