Questions tagged [jhipster]
JHipster is a development platform to generate, develop and deploy Spring Boot, Angular/React/Vue Web applications and Spring microservices.
4,761
questions
0
votes
0
answers
15
views
JHipster 7.x missing modules?
When generating an application with version 7.9.3, during the questions to configure which modules to install, the modules for integrations with social networks and the type of cache do not appear.
...
0
votes
0
answers
16
views
Facing errors when try to build Jhipster app for production
When i run the command: mvnw -Pprod package -DskipTests i got theses errors:
PROJET_DIRECTORY>npm run webapp:prod
> guineeinfo@0.0.1-SNAPSHOT webapp:prod
> npm run clean-www && npm ...
0
votes
0
answers
33
views
JHipster - Keycloak - React: I am always getting redirected to localhost:9000/oauth2/authorization/oidc when trying to register a new user
I have an app built with JHipster 7.8, spring, react, keycloak.
When I try to register a user, in debug mode, it always call UserService.syncUserWithIdp... In the browser it seems to infinitly ...
0
votes
1
answer
24
views
JHipster Version 7.9.3 Using Local Blueprint Gives npm ERR! 404 Not Found
I use JFrog to manage my npm repository and have already created a virtual directory in which the blueprint exists (as part of the local directory). I have the following in my ~/.npmrc:
//...
0
votes
0
answers
43
views
Jhipster Auditing Entities
Hello I am using Jhipster to generate my backend code and I'm trying to add auditing fields to my entities, I am aware that my custom entity should extend the AbstractAuditingEntity class, but the ...
3
votes
1
answer
44
views
Internal distribution of JHipster blueprints and themes
Q. How can the generator-jhipster leverage an internal distribution point, e.g., Nexus NPM, &tc. for jhipster blueprints?
Background
We are adopting JHipster for several major application and ...
0
votes
2
answers
22
views
How to create columns in JDL, that only accepts two values, Y or N? Y meaning Yes and N meaning No
entity Platform {
platformName String required maxlength(100),
onPermiseFlag String maxlength(1),
cloudFlag String maxlength(1)
}
The column 'onPermiseFlag' and 'cloudFlag' can have only ...
0
votes
1
answer
26
views
Passing arguments to a dependent task in gradle
When I run ./gradlew bootRun, I'd like for the npmInstall task that it depends on to run with the "--force" or "--legacy-peer-deps" arguments.
I tried using ./gradlew bootRun ...
0
votes
0
answers
30
views
How to make jhipster react-js validateField select dropdown filterable?
I have a small Jhipster-generated application. And the application frontend client is React.
The application has a relationship with another entity and on create/update page there's a select dropdown ...
0
votes
1
answer
95
views
I'm trying to run Docker container from built image but get registry error
I cannot get the registry container for a Jhipster app to run. I'm following the instructions from https://www.jhipster.tech/docker-compose/#7 I'm at the step of executing the command
docker-...
0
votes
1
answer
44
views
How to create multiple FK from one table reference same column of other table using JDL?
There are two tables Period_Type & Product_Subscription
Period_Type
->ID
->Period_Type_Name
---------------------------------------
Product_Subscription
-> RENEWAL_PERIOD_TYPE_ID
-> ...
0
votes
0
answers
19
views
Seperating Jhipster admin and angular project into to frontend with mvn clean install
I have an Jhipster Monolithic application, where when I use mvn clean install I build my frontend into the target folder and then can simulteanously start my backend and frontend reaching them with ...
-1
votes
0
answers
17
views
JHipster - How to add Swagger after application generation
I have generated an app without using the Registry, the http://localhost:8081/api is accessible but not the swagger UI, how do you enable it ?
Note : Running JHipster 7.9.3
It's for Microservice App
...
1
vote
0
answers
221
views
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/util/namespace' is not defined by "exports"
When I enter jhipster in the cmd command, I get an error Package subpath './lib/util/namespace' is not defined by "exports" in C:Program Filesnodejsnode_globalnode_modulesgenerator-...
0
votes
0
answers
17
views
About the project generator-jhipster-flutter
This generator is not inside the official JHipster GitHub, does anyone know why?
1
vote
0
answers
45
views
JHipster: Invalid values not being detected
I was using JHipster, with its autogenerated code. And ran into the following issue regarding detecting whether the request is valid or not based on the following:
I have a schema of the following:
...
0
votes
0
answers
81
views
How to fix jhipster: No MethodInvocation found: Check that an AOP invocation is in when using repository
I have a jhipster generated gateway, where I want to add a new method to an existing repository (generated with jhipster entity command) This repository is extending by default R2dbcRepository. So far ...
0
votes
0
answers
38
views
How to solve ArchTest violation of Config Layer accessed from Service Layer
My project violates a given structure test. I don't understand why the "config" layer must not be accessed by any other. Of course, I could use @Value annotation to directly access some K,V ...
0
votes
0
answers
38
views
How to add new entities to frontend and backend?
We have separated frontend and backend and used the jhipster --skip-server command to create frontend and used jhipster --skip-client to create backend service.
Now we would like to add more entities ...
0
votes
0
answers
118
views
Keycloak SSO Session Idle timeout does not trigger while user session is idle for that configured time
Our application is created by Jhipster which comprise with spring boot and keycloak and postgress db. I have set the "SSO Session Idle" time as 1 minute in the keycloak realm settings.
...
-1
votes
1
answer
51
views
JHipster - Best practices for REST API
I'm trying to create a REST API using JHipster.
Is JHipster available for creating REST Api?
Should I create the paths and DTOs using Openapi (swagger) or with JHipster?
Is there an easier way to ...
0
votes
0
answers
50
views
Custom Json ResponseBody in Swagger Http error
In a Jhipster SpringBoot project I use swagger 2.0 ,
I want to have a static Json in this Http Error : 400
Custom Json wanted:
{ "ErrorID": -1 , "CustomMessage": "ERROR" ...
1
vote
0
answers
107
views
Spring Boot & QueryDSL with compilation error: due to QClass symbol not found
I am new to Querydsl , but I am having problems with generating Q classes.
I get a lot of errors that a Q'class' cannot be resolved , like this :
Cannot find symbol class QProduct
the code
private ...
1
vote
0
answers
82
views
Jhipster blueprint can't override the entire priority
I want to customize addEntityToMenu function. I created a blueprint with entities-client as sub-generator then override POST_WRITING_PRIORITY with my custom functions.
My purpose is creating a custom ...
1
vote
1
answer
29
views
How is Mustache used in Jhipster Lite?
Great work on Jhipster Lite!
The goal is to integrate Mustache templates into a project called sql-to-jdl I have been contributing to lately. Currently my preliminary work uses mustache.java.
Does ...
0
votes
1
answer
62
views
How to debug JHipster in Eclipse?
I'm new on using JHipster . I'm having trouble debugging in Eclipse IDE on JHipster 5.x (springboot and angular) . I use maven to build the project
So I'm looking for a tutorial to debug with eclipse.
0
votes
1
answer
196
views
Use access token from Keycloak social login to consume Google API in Java
I have 2 pieces of code I want to integrate.
I have a working Google API (Youtube) integration that gets some user related information using the correct scopes while asking for authentication.
...
0
votes
0
answers
62
views
Jhipster react form Value get from input field
I have a react form like this.
<ValidatedForm onSubmit={filterData}>
<div className="row">
<ValidatedField
className="col"...
0
votes
1
answer
33
views
How to use the data type "text" in Jhipster jdl
Good Morning, pls I wish to know if it is possible to use the data type 'text' in Jhipster jdl.If Yes, pls help me.
I 've try by inserting "text" but it seems not been recognize by the Jdl
I ...
0
votes
1
answer
27
views
Not able to get classes in domain package when trying to generate filtered entities
In my domain package I am not getting Book_.java,Client_.java,Author_.java,BorrowedBok_.java and Publisher_ .java classes after trying to generate filtered entities in my jhipster application. ...
0
votes
1
answer
117
views
How do I implement tenant-based routing for elasticsearch in JHipster?
I´m currently trying to implement multi-tenancy into my JHipster microservices. However, I can't find a way to implement tenant-based routing for elasticsearch.
So far I have managed to implement ...
0
votes
0
answers
26
views
After creating an entity with command, the database does not recognize the entity
This is shown in the log of my container in docker:
Hellang.Middleware.ProblemDetails.ProblemDetailsMiddleware[1]
An unhandled exception has occurred while executing the request.
Microsoft.Data....
0
votes
1
answer
46
views
Create array field in jhipster using mongodb
I want create one field e.g URL in that field we can insert multiple value url that data is stored in array format using jhipster mongodb
Created getter setter of string[]url in dto.java
0
votes
0
answers
29
views
Error response from daemon: ADD failed: no source files were specified
Dockerfile:
FROM openjdk:11-jre-slim
ENV SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \
JHIPSTER_SLEEP=0 \
JAVA_OPTS=""
# Add a jhipster user to run our application so that it doesn't ...
0
votes
0
answers
46
views
Set value of nested object in JHipster/Angular
In a JHipster Application I have the following entities and relationships:
entity Request {
description String required
}
entity RequestPerson {
firstName String required,...
0
votes
1
answer
39
views
Jhipster custom blueprint: How define a custom command line parameter (option)
I'm building a custom blueprint for my organization's projects. Apparently, It's everything working fine.
I need to ask for a specific information to the blueprint user. So I've done in the PROMPTING ...
1
vote
0
answers
29
views
Integration test doesn't work with liquibase, throws: Failed load ApplicationContext
I wrote integration test but it doesn't work. It throws Failed load ApplicationContext. I think problem with liquibase but I hadn't fix that. Other tests are worked but it didn't.
My entity liquibase ...
1
vote
1
answer
41
views
Spring not starting when Kafka is Offline
I am using spring cloud messaging to connect and receive messages from Kafka, so far so good, but my application can work without Kafka if needed, Kafka is used for some events only. However, when ...
-1
votes
1
answer
195
views
npm | ERR! code EEXIST | Refusing to delete | File exists | Move it away, and try again
When executing npm, I get the next error message:
[ERROR]
[ERROR] npm ERR! path C:\Desarrollo\DragoMED.web\node_modules\.bin\webpack-dev-server.cmd
[ERROR] npm ERR! code EEXIST
[ERROR] npm ERR! ...
0
votes
0
answers
19
views
JHIPSTER JPA Call using Authorities
I am trying to fetch users with a specific Authority using a JPA query.
The query works for only one instance of Authority, APP1, but when i try the same exact call with APP2 as a parameter, the query ...
0
votes
0
answers
30
views
How to debug an Html component of an agular application?
I'm trying to inspect the values of a variable on a html template of a Angular component, but i'm getting this message:
Parsing error: "parserOptions.project" has been set for @typescript-...
1
vote
0
answers
24
views
How can I fixed npmw install command while generating project with JHipster?
I used JHipster. Program throw error when generating code. In the beginning Jhipster didn't see JAVA_HOME, I've fixed that. After that npmw install didn't work. I thought JHipster couldn't find node....
0
votes
2
answers
177
views
New JHipster project: All integration tests fail
Today, I tried starting a new project using JHipster. My environment includes:
Windows 10 22H2 build 19045.2251 (64 bit)
OpenJDK Runtime Environment Temurin-16.0.2+7
node 16.17.0
npm 8.19.1
Gradle 7.5....
0
votes
0
answers
15
views
SSE events are received when the connection is closed in JHIpster and Gateway
I have a simple code in Jhipster microservice which sends words periodically:
@GetMapping(path = "/words", produces = MediaType.TEXT_EVENT_STREAM_VALUE)
SseEmitter getWords() {
List<...
1
vote
1
answer
35
views
can I send Criteria in a spring feign client GetMapping request?
I'm trying to get userConfig from Organisation microservice, the app is getting quite large to I had too fetch UserConfig with userConfigCriteria for further use,
I wrote my feign service like this:
@...
0
votes
0
answers
64
views
Can we create an entity with jhipster jdl for a complex data structures that can be embedded in a single table
Hello I'm pretty new to jhipster, and I am trying to create an entity with a complex JSON with multi nested arrays. It would be best to have this whole structure in a single table as none of the sub-...
0
votes
0
answers
38
views
JHipster Login Redirection Throws 401 Unauthorized
OIDC Keycloak gives error in K8S
{"type":"https://www.jhipster.tech/problem/problem-with-message","title":"Unauthorized","status":401,"detail&...
0
votes
0
answers
22
views
ContextMapper to JDL using JHipster - incomplete jdl file creation
CML to JDL file using JHipster is not working and the file that is generated using the templates are incomplete
below the details of the code
The CML file that I used for this JDL generation is here
...
0
votes
0
answers
43
views
How to send more than one log file to logstah in spring boot application with jhipster
In my jhipster spring boot app, I produce two separate log files with two different formats.
I want to send them in logstash (with ELK) and use a separate index (to exploiting them in the different ...
0
votes
1
answer
57
views
OneToMany relationship generated with JHipster causes Exceptions
I have written the following JDL:
enter code here
entity A {
name String required
}
entity B {
name String unique required,
}
relationship OneToMany {
B{children} to A{owner}
}
application {
...