Closed edilsonmendes closed 4 months ago
Can you please try with JHipster 8.5.0?
FWIW, I've been unable to get MySQL to start in Docker with 8.5.0. See https://github.com/jhipster/generator-jhipster/issues/26319 for more information.
@mraible , sorry for the delay in responding. Yes, the error also occurs in jhipster v8.5.0, as shown in the image below.
This error appears to be related to issue #25979.
If I remove the value of the spring.profiles.active property in application.yml the application runs without error.
JHipster has completed the sample check
.yo-rc.json
: valid
Entities JDL: valid
Application: successfully generated
Frontend check: success
Backend check: success
E2E check: success
This check uses jhipster info
output from the issue description to generate the sample.
Bug report that does not contain this information will be marked as invalid.
Hi @mraible, the error remains in version 8.6.0. The application runs without error if the profile is informed (./mvnw -P dev), however, when changing any file in the backend it fails (same error) when performing the hot reload.
Should I open a new issue?
Overview of the issue
I generated an application with jhipster 8.4.0. When I try to run it using the ./mvnw command or npm run backend:debug, it does not display the default profile in the JHipster banner but the @spring.profiles.active@ placeholder. Furthermore, the application fails to create the LoggingConfigurarion bean, as it is unable to inject the value of the server.port property, as shown in the message below.
Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'server.port' in value "${server.port}"
This property is profile specific (application-dev.yml and application-prod.yml)
The application runs without error if the profile is informed (./mvnw -P dev), however, when changing any file in the backend it fails (same error) when performing the hot reload.
Motivation for or Use Case
The application should run without error using the default profile and shows the correct profile in the banner.
Reproduce the error
-Genarate a monolith JHipster 8.4.0 -Run the application with ./mvnw or npm run backend:debug
Related issues
This error appears to be related to issue #25979.
Suggest a Fix
N/A
JHipster Version(s)
8.4.0
JHipster configuration
██╗ ██║ ██╔═══██║ ██║ ██╔════╝ ╚═══██╗ ██║ ██╔═══╝ ██╔══██║ ╚██████╔╝ ██║ ██║ ████████╗ ██║ ██████╔╝ ██║ ████████╗ ██║ ╚██╗ ╚═════╝ ╚═╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═╝ https://www.jhipster.tech Welcome to JHipster v8.4.0
Welcome to the JHipster Information Sub-Generator
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
Environment and Tools
openjdk version "17.0.6" 2023-01-17 OpenJDK Runtime Environment Temurin-17.0.6+10 (build 17.0.6+10) OpenJDK 64-Bit Server VM Temurin-17.0.6+10 (build 17.0.6+10, mixed mode, sharing)
git version 2.25.1
node: v20.12.2 npm: 10.5.0
Docker version 24.0.1, build 6802122
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryBrowsers and Operating System