Open javagrails opened 2 months ago
@javagrails To provide all the information we need, please run jhipster info
in your project's root folder, and copy/paste the result into the issue description. Please add ##### **JHipster configuration**
before the output so our automation can verify.
@mraible I added the info of your given command
@javagrails if you add System.setProperty("spring.devtools.restart.enabled", "false");
here:
public static void main(String[] args) {
SpringApplication app = new SpringApplication(JheszApp.class);
DefaultProfileUtil.addDefaultProfile(app);
System.setProperty("spring.devtools.restart.enabled", "false");
Environment env = app.run(args).getEnvironment();
logApplicationStartup(env);
}
is it working?
JHipster has completed the sample check
.yo-rc.json
: valid
Entities JDL: blank
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.
Seems related to https://github.com/hazelcast/hazelcast/issues/26361 if you generate the same app without hazelcast
it works
Maybe fixed with #27063 ?
@javagrails if you add
System.setProperty("spring.devtools.restart.enabled", "false");
here:public static void main(String[] args) { SpringApplication app = new SpringApplication(JheszApp.class); DefaultProfileUtil.addDefaultProfile(app); System.setProperty("spring.devtools.restart.enabled", "false"); Environment env = app.run(args).getEnvironment(); logApplicationStartup(env); }
is it working?
@qmonmert yes I tried both you mentioned and below
spring:
devtools:
restart:
enabled: false # true
in application-dev.yml
file but same issue still there
I will check without hazelcast
and inform here
@qmonmert it's true may the problem is hazelcast
because when I use Ehcache
it's working though I didn't try other cache like redis
yet. Now my Question is a bit above @OmarHawk said Maybe fixed with https://github.com/jhipster/generator-jhipster/pull/27063 seems it merged with main branch of jhipster .. so how can I use that main branch with my current project specifically for hazelcast
fix or code gen
Overview of the issue
login error in spring boot app after creating a fresh app using jhipster 8.7.0
Motivation for or Use Case
Problem happen in spring boot app when Login button pressed in Angular app
DomainUserDetailsService class below method line
.map(user -> createSpringSecurityUser(login, user)) AND .map(user -> createSpringSecurityUser(lowercaseLogin, user))
AccountResource class below method line
.map(AdminUserDTO::new)
Reproduce the error
? What is the base name of your application? jhesz ? Which type of application would you like to create? Monolithic application (recommended for simple projects) ? What is your default Java package name? com.jhesz.app ? Would you like to use Maven or Gradle for building the backend? Maven ? Do you want to make it reactive with Spring WebFlux? No ? Which type of authentication would you like to use? JWT authentication (stateless, with a token) ? Besides JUnit, which testing frameworks would you like to use? ? Which type of database would you like to use? SQL (H2, PostgreSQL, MySQL, MariaDB, Oracle, MSSQL) ? Which production database would you like to use? PostgreSQL ? Which development database would you like to use? H2 with disk-based persistence ? Which cache do you want to use? (Spring cache abstraction) Hazelcast (distributed cache, for multiple nodes, supports rate-limiting for gateway applications) ? Do you want to use Hibernate 2nd level cache? Yes ? Which other technologies would you like to use? Elasticsearch as search engine, WebSockets using Spring Websocket, API first development using OpenAPI-generator ? Which framework would you like to use for the client? Angular ? Besides Jest/Vitest, which testing frameworks would you like to use? Cypress ? Do you want to generate the admin UI? Yes ? Would you like to use a Bootswatch theme (https://bootswatch.com/)? Default JHipster ? Would you like to enable internationalization support? Yes ? Please choose the native language of the application English ? Please choose additional languages to install Arabic (Libya), Bengali, Turkish, Thai ? Would you like to generate code coverage for Cypress tests? [Experimental] Yes ? Would you like to audit Cypress tests? Yes
Suggest a Fix
may be related with Spring DevTools dependency and hot-reload settings I made false hot-reload {spring.devtools.restart.enabled=false} but still problem is there
JHipster Version(8.7.0)
JHipster configuration
Welcome to JHipster v8.7.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" 2021-09-14 OpenJDK Runtime Environment (build 17+35-2724) OpenJDK 64-Bit Server VM (build 17+35-2724, mixed mode, sharing)
git version 2.45.2
node: v20.17.0 npm: 10.8.2
Docker version 24.0.7, build afdd53b
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
@mraible