Questions tagged [jhipster]
JHipster is a development platform to generate, develop and deploy Spring Boot, Angular/React/Vue Web applications and Spring microservices.
4,845
questions
1
vote
0
answers
81
views
Extra directory layer added to path with Maven compile
I am trying to use maven to compile my first JHipster basic app. I have node as an exe & npm as a symbolic link locally at the path /home/myuser/.nvm/versions/node/v16.17.0/bin (see ll below), and ...
0
votes
1
answer
64
views
Jhipster mock always returning 0
I'm trying to test a rest controller method that returns message count. But it always returns 0. Service class is mocked before each run.
The controller extends the parent controller auto generated by ...
0
votes
1
answer
30
views
How to have a data type be the name of a field in JDL file (jHipster)
I have an entity in a JDL file.
entity Person {
Name String,
Duration Integer
}
The word 'Duration' is a data type in the Jhipster Domain Language.
https://www.jhipster.tech/jdl/entities-fields
...
3
votes
1
answer
981
views
How to create a custom blueprint?
I'm trying to create a customized JHipster blueprint for my organization.
I've started my journey:
Installed Yeoman v4.3.0
Installed Jhipster v7.9.3
Created a directory for my future blueprint mkdir ...
0
votes
1
answer
144
views
Usage of Pick in JHipster client entities
I'm trying to understand the usage of Pick/Omit in generated client entities in JHipster. For instance, I have this generated:
export interface IHouse {
id: number;
creationDate?: dayjs.Dayjs | ...
0
votes
1
answer
170
views
Cannot find module 'fs/promises' using JHipster
I'm using nvm and I'm having this error when using jhipster. It was previously working when I'm not using nvm.
jhipster version: v7.9.3
node: v12.22.12
npm: 6.14.16
ERROR! Cannot find module 'fs/...
0
votes
1
answer
460
views
Spring Cloud Stream Rabbit Binder serialization problem for Pojo
I have 2 applications running. One of them is Producer , other one is Consumer. I am using spring cloud stream rabbitmq binder for messaging infrastructure. I am using POJO classes to send messages ...
0
votes
1
answer
69
views
Jhipster monolithic with angular : show a specific component from the backend
I need some help. I'm trying to integrate a different payment API than you are used to.
It is CINETPAY. They have a payment method with redirection.
It works as follows: With the backend part (Spring ...
0
votes
1
answer
165
views
ChildDTO into ParentDTO in JHIPSTER with mapstruct
I have this entities
entity Employee {
firstName String
lastName String
}
entity Role {
Name String
}
relationship OneToMany {
Employee{role} to Role{employee required}
}
And i ...
0
votes
0
answers
98
views
Spring boot JPA query timeout issue
Using JHipster / Spring Boot: I am having an issue where a request for a large amount of data is returning 503 after exactly 30 seconds. This seems to be stemming from the database read.
Tried setting ...
0
votes
0
answers
45
views
how can I add this child field to parentDTO?
I have this two entities
entity Country {
name String
} ...
0
votes
1
answer
103
views
why in the json i get from jhipster dtos automatic generation give me null one to many relationship?
I generated DTOs with JHipster automatically. I didn't know how to see my json just with console and i get null in one to many relationship.
This is what i get.[OperationDTO{id=1, date='2015-08-05T08:...
0
votes
2
answers
447
views
Jhipster - Installation issues with latest version
I have a problem working with jhipster
My installation of java, and node worked fine.
Also installed the hipster fine. Now when I work on a project. I see a npm error
I have attached the log file
0 ...
0
votes
1
answer
623
views
Issuer "http://localhost:9080/auth/realms/jhipster" provided in the configuration metadata did not match the requested issuer
I am trying to set up a JHipster app using KeyCloak via docker-compose.yml
On start up am getting:
The Issuer "http://localhost:9080/auth/realms/jhipster" provided in
the configuration ...
0
votes
0
answers
22
views
npm install frozen when mvnw exectued
frozen command prompt
I am trying to launch a jhipster application, and when I run mvnw in my project it dosen't execute and exits with status code 1.
this is my error message
Failed to execute goal ...
0
votes
0
answers
62
views
Running Prometheus in a jhipster application using docker compose is down
I run my applications generated by jhipster using the command docker-compose up -d but when i go to prometheus i see that my application is down whereas in jhipster registry my applications are up!
...
0
votes
1
answer
84
views
JHipster WebFlux H2db initial config notworking
When I created jhipster webflux application. After run ./mvnw, I did not login on the webpage.
Console Error message:
java.lang.NoSuchMethodError: 'void org.h2.engine.ConnectionInfo.<init>(java....
1
vote
1
answer
292
views
What are the metrics sent to Prometheus + Grafana in a generated jhipster project?
I running a gateway and a microservice using jhipster docker compose and i have chosen to generate metrics with prometheus but i couldn't visualize what's in the grafana because the gateway failed to ...
0
votes
1
answer
627
views
JHipster - Java build not compatible with the base image - jib
I run a Docker image build command of a JHispter app
./mvnw package -Pprod verify jib:build
that yields an error:
Your project is using Java 17 but the base image is for Java 11, perhaps you should ...
1
vote
0
answers
260
views
Build Failure: Integration test fails on Jhipster generated project
I am running the following docker command on a gateway generated by jhipster project
.\mvnw -ntp -Pprod verify jib:dockerBuild
However, an error related to a failed integration test, here is the full ...
0
votes
1
answer
119
views
How to edit this popup in Jhipster?
Popup in Jhipster
I don't know how to edit this popup , I can't find the file where it is modified. I use react for the front-end
0
votes
0
answers
94
views
JHipster OneToMany relations don't show up in the front-end as lists
So I created a monolith (Spring+Angular) with JHipster 7.8.1 CLI, then proceeded to add 2 entities with the CLI too, I first created Author, then created Book and specified its ManyToOne relation to ...
1
vote
1
answer
94
views
JHipster: configuring log levels through jdl file
I am looking for a way to configure the microservices generated by jhipster using jdl file to precide which level of loggins i want to have.
Is there a way to do this using jdl file?
Hope to shed some ...
0
votes
1
answer
195
views
How can a table be a field type in jHipster jdl?
Tables
I'm having a problem generating these tables using JHipster jdl with mysql. I need to know if I can create a field with a table as type or if a field can have a JSON type and how. If there's ...
4
votes
2
answers
647
views
Cannot import jdl file using jhipster
I'm new to jhipster. I am on jhipster v7.8.1, i can generate an app using the cli questions but when i try importing a jdl file i got the following error:
**ERROR! Class constructor GAstVisitor cannot ...
0
votes
1
answer
196
views
Jhipster app with no .jdl file and .json files in .jhipster folder
i am working in an application generated with jhipster and this application has no .jdl file or .json files in .jhipster folder because when a team member wants to add an entity or modify it or ...
0
votes
1
answer
215
views
JIB is not able to detect docker credentials
I am building a generated app whith Jhipster.
I run the command to build the images and run the app containerized. I started Docker Desktop on windows 11.
To remind, this is the command: ./gradlew -...
1
vote
1
answer
99
views
jhipster creating microservice with sample apps.jdl causing multiple npm errors
I am trying to build sample jhipster micro service app from the blog
https://dev.to/jhipster/how-to-deploy-jhipster-microservices-on-amazon-eks-using-terraform-and-kubernetes-49a5
while generating ...
1
vote
1
answer
75
views
How and where to use OAuth2RefreshtokensWebFilter?
Hi I am new to both JHipster and Stackoverflow. I tried asking the same question on Should OAuth2RefreshtokensWebFilter Be Used Some Where? however, it was removed for some reason; hence, I am asking ...
0
votes
1
answer
447
views
JHIPSTER Application UPGRADE
I want to upgrade an app which was built with jhipster 4.14.4 to 7.9.2 the latest version right now.
Do you have any ideas how should I proceed ? (the steps to follow)(the best way to do it)
I already ...
0
votes
1
answer
161
views
jhipster failed at npm install puppeteer when running ./mvnw
hi i have generated jhipster application with the flowing configurations.
my .yo.rc.json file used for application generation is below
{
"generator-jhipster": {
"applicationType&...
0
votes
0
answers
82
views
Jhipster 3.8.0 Spring @Transaction doesn't work
I am using JHIPSTER 3.8.0, although there is a method using @Transactional I saw that there was no log:
logging.level.org.springframework.transaction.interceptor = TRACE
Any idea?
EDIT
...
@Repository
...
0
votes
1
answer
252
views
jHipster use enum in specification to find only entites that have one concrete value of Enum
There is entity:
@Getter
@Setter
@ToString()
@Entity
@Table
@Builder
@NoArgsConstructor
@AllArgsConstructor
class DocumentEntity implements Serializable {
(...)
@Enumerated(EnumType.STRING)
...
1
vote
1
answer
689
views
pre-commit Failed : an unexpected error. spawn UNKNOWN -- Jhipster project
I got an error while trying to commit !
node : v16.16.0
generator-jhipster : 6.10.1
error :
$ git commit -m "message"
husky > pre-commit (node v16.16.0)
Stashing changes... [started]
...
3
votes
0
answers
216
views
Jhipster : what is the meaning of "Unify blueprints configurations"?
I am trying to upgrade my app.
When I type this cmd: npx jhipster upgrade.
I have this question:
? Unify blueprints configurations? (Y/n)
so I don't know how to answer it.
What does it mean to unify ...
0
votes
0
answers
149
views
jhipster control center with oauth2 keycloak docker
I have generated jhipster application using sample
https://github.com/jhipster/generator-jhipster/blob/main/test-integration/jdl-samples/ms-mf-vue-consul-oauth2-mysql-memcached/blog-store.jdl
I have ...
1
vote
1
answer
419
views
CSV file is downloaded instead of opened in browser
I'm using Jhipster and Jhipster generate a function to open file in browser. The problem is: I don't understand so much the function, and I don't know why, when the file is a CSV file, the file is not ...
2
votes
1
answer
228
views
How to specify a field name in an entity in jhipster
I have an existing database that I am using with jhipster, The issue is that I have a field named country_iso2 but it seems jhipster adds another underscore just before the number i.e country_iso_2. I ...
1
vote
1
answer
232
views
jHipster 7.9 switches to testcontainers by default - how to revert back to old testing mechanism?
The jHipster 7.9 release uses testcontainers by default for running Java integration tests. This is causing problems with my existing bitbucket-pipeline.
Is there a way to switch back to the previous ...
1
vote
1
answer
499
views
jhipster v7.9.0 got error when generate the project
I was trying to create the project using the following .yo-rc.json file:
{
"generator-jhipster": {
"applicationType": "monolith",
"authenticationType":...
0
votes
2
answers
107
views
JHipster Blueprint | Yeoman Generator - How to configure application-dev.yml with functions?
I am developping a blueprint for JHipster. For now, I prompt the user for the database URL, username and password. I want to then take the user's answers and add it to application-dev.yml.
What I want ...
0
votes
1
answer
70
views
JHipster OAuth2 Suddenly Does not Show Entity Menu After Successfull Okta Login
I have an application which was working perfectly fine; however, today when I tried to login to the JHipster app using my Okta credentials, I do not get the entities menu. There are no logs in the ...
1
vote
1
answer
90
views
JHipster Registry - why is it mandatory to run in the cloud for production?
I am working on an app that needs to be self-hosted on a Windows 10 PC where all the clients are inside a company network. I am using docker-compose for the various microservices and I am considering ...
0
votes
0
answers
136
views
Deploy 2 pods gateway api then got token expired error
I deploy my gateway api on k8s, I sync token with spring session hazelcast. It's work fine until I scale replica to 2, hazelcast session cluster worked but when I login (with keycloak) and then when ...
1
vote
1
answer
403
views
Creating entity relationship using a jdl in jhipster
I have the below JDL that I am using to create the jhipster application.
entity AuthClient(auth_client) {
msisdn String required maxlength(255),
email String required unique maxlength(255),
...
0
votes
0
answers
66
views
Jhipster app can not login within an iframe
My application which is created in jHipster and resides in an iFrame,
However I get an
unauthorized
page whenever i want to login.
i already tried disabling CSRF , but i am not able to login, it ...
0
votes
0
answers
712
views
SonarCloud New Code and Code Coverage Setup for Spring Boot
I am trying to perform analysis on the new code however the sonarCloud seems to analyze everything. I am not sure what's missing.
I am using 2 Github workflows, one during pull request
name: ...
1
vote
0
answers
170
views
Jhipster Blueprint - Override base generators templates
I am developing a jhipster blueprint (base generator 7.8.1) that will have a completely different angular UI with Jhipsters spring-boot backend with customization. I have got the UI part working (...
2
votes
0
answers
213
views
Jhipster microservice with no registry
I am trying to create a gateway+microservice setup (using jhipster 7.8.1) something similar to this sample but without eureka service discovery.
After generation, the applications boots fine but the ...
0
votes
0
answers
178
views
How to search float fields as text in elastic using QueryBuilder
I ve document named plan that correspond plan entity
@Entity
@Table(name = "plan")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@org.springframework.data.elasticsearch.annotations....