by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Excellent_Torch
@Excellent-Torch
SSD.PNG
riteonline
@riteonline
Hi All, I am new to jhipster. Getting below error while creating an app.

INFO! Using JHipster version installed globally
events.js:292
throw er; // Unhandled 'error' event
^

Error: Errors Detected in CST Visitor <CstPrettierPrinter>:
Missing visitor method: <unannPrimitiveTypeWithOptionalDimsSuffix> on CstPrettierPrinter CST Visitor.
at CstPrettierPrinter.validateVisitor (C:\Users\nveeraiah\AppData\Roaming\npm\node_modules\generator-jhipster\node_modules\java-parser\node_modules\chevrotain\lib\src\parse\cst\cst_visitor.js:59:23)
at new CstPrettierPrinter (C:\Users\nveeraiah\AppData\Roaming\npm\node_modules\generator-jhipster\node_modules\prettier-plugin-java\src\cst-printer.js:29:10)
at Object.<anonymous> (C:\Users\nveeraiah\AppData\Roaming\npm\node_modules\generator-jhipster\node_modules\prettier-plugin-java\src\cst-printer.js:133:23)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32)
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
at Module.require (internal/modules/cjs/loader.js:1025:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object.<anonymous> (C:\Users\nveeraiah\AppData\Roaming\npm\node_modules\generator-jhipster\node_modules\prettier-plugin-java\src\printer.js:2:31)
Emitted 'error' event on Environment instance at:
at Environment.error (C:\Users\nveeraiah\AppData\Roaming\npm\node_modules\generator-jhipster\node_modules\yeoman-environment\lib\environment.js:293:12)
at Environment.create (C:\Users\nveeraiah\AppData\Roaming\npm\node_modules\generator-jhipster\node_modules\yeoman-environment\lib\environment.js:615:19)
at C:\Users\nveeraiah\AppData\Roaming\npm\node_modules\generator-jhipster\cli\cli.js:74:31
at Array.forEach (<anonymous>)
at Object.<anonymous> (C:\Users\nveeraiah\AppData\Roaming\npm\node_modules\generator-jhipster\cli\cli.js:62:29)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
[... lines matching original stack trace ...]
at Module.require (internal/modules/cjs/loader.js:1025:19)

anyone familiar with this issue?
1 reply
Leif Segen
@mr_segen_twitter

Is there a better way to get help than StackOverflow...? https://stackoverflow.com/questions/63639321/authentication-using-jwt-from-outside-source-in-jhipster

Related to the above question, I'm looking for help on connecting a JHipster-generated microservice with an existing front end / gateway (currently using Keycloak) that uses an existing no-authentication backend

Willys otieno
@otienowillys_gitlab
Please can someone guide me on how I change the default data created by Faker.js in JHipster/Liquibase? What can I do to change the data inside the CSV files generated by the Faker and have that updated data render onto the client-side under the Entities page? An example would be great.
1 reply
Bobby King
@BLKingLLC
Maybe this is a n00b question, but why do my integration tests pass when I run mvn test but fail when I run mvn verify?
1 reply
Tibi Stibi
@tibistibi_gitlab
verify runs more tests
Juvenal Muniz
@juvenalmuniz
Hello! Is there a way to synchronize all users from Keycloak automatically? I have a jhipster+keycloak application but the jhipster user data is only synchronized when the user logs in (via the Account Resource endpoint /account).
venkaiah
@Venkaiah552
I am using Azure AD access token instead of default openID connect server (keycloak) to protect the backend REST API. Could you please let me know if i need to make any changes for AuidenceValidator class under package security.oauth2.
1 reply
Knowings R&D
@knowings
Hello, does anyone know what code respond to /swagger-resources? I'm trying to migrate to springdoc-openapi-ui.
Rick Poleshuck
@RickPoleshuck
What is best practice for implementing a ReST client in jHipster? I am thinking that I should not use javax.ws.rs.client.ClientBuilder.
km
@clncon
When I used jhispter, I encountered a problem, as shown in the figure below. This error always appeared suddenly in a certain period of time on a certain day, and then it never appeared again. It looks like an internal server reported an error. Everyone has encountered Ever? Thanks in advance
1 reply
image.png
lovelylip
@lovelylip
hello, i integrate primeng with jhipster, when use UPLOAD file, in backend using restfull method post with RequestBody Multipartfile, but error, type Multipartfile is wrong?
2 replies
Alejandro Matos
@amatosg
has some one successfully implemented material design into JHipster?
Manthis
@manthis.the_gitlab
I got it working by doing this: material design.png
2 replies
This message was deleted
3 replies
ZINE mahmoud
@fitdeveloper
Hey everyone i m trying to send email via jhipster application i did configured very well my application-dev.yml but i got this error :

2020-09-05 13:10:28.011 WARN 2012 --- [-simplex-task-1] ma.mfitness.service.MailService : Email could not be sent to user 'zine.mahmoud@gmail.com'

org.springframework.mail.MailSendException: Failed to close server connection after message failures; nested exception is javax.mail.MessagingException: Can't send command to SMTP host;
nested exception is:
java.net.SocketException: Software caused connection abort: socket write error. Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1)
;
nested exception is:
com.sun.mail.smtp.SMTPSenderFailedException: 550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1)

any idea ?
siddharth-27
@siddharth-27
Hi everyone, I just got into JHipster and was wondering if there were any metrics available on the adoption of Couchbase vs MongoDB when generating applications with JHipster.
AlvinSanusi
@AlvinSanusi
in Reactjs front end, the index.tsx has render(AppComponent) where AppComponent is imported from './app'. But when go through app.tsx, only export const App available. Is there a good explanation on how it work? Really need help.
itassiou
@itassiou
I'm a New jhispter how Can i use a stores procedure in jhispter
3 replies
fred37b
@fred37b
Hello, I just started with Jhipster, I try to modify my navbar angular component, I have duplicate the home button, but it didn't appear. I am supposed to build my angular components but how am i supposed to do that ? With the terminal ? With which command ?
3 replies
V W
@vw98075
I try to see the difference APIS call flows between two microservices with and without UAA. Based on the UAA document, I think that every incoming API calls will be redirected to the UAA. I, however, can't find such routes. Can someone give a hint in this regard?
Matt Davidson
@MattJDavidson
Hello, I've built a monolithic style app using jhipster and the react frontend template. I'm having issues trying to customise the theme of the react webapp. It seems the details of how to do so are out of date https://www.jhipster.tech/customizing-bootstrap-4/, or is this for angular apps only?
Does anyone have advice for creating bootswatch templates or easy ways to "reskin" the app for MVP releases
Willys otieno
@otienowillys_gitlab
Hello, I am getting "java.lang.UnsupportedOperationException: Reflective setAccessible(true) disabled" error. I am using Jhipster 6 with Java 11. Does anyone have an idea of the source of UnsupportedOperationException?
veeracherukuri
@veeracherukuri
image.png
Getting the above error while accessing jhipster-registry. Any help to resolve it
veeracherukuri
@veeracherukuri
Also another question. While creating jhipster application and choose "Application type" as "Microservices". Does Jhipster provide any client code for web services?
medbenchaaben
@medbenchaaben
Hi i am new in jhipster can you give me a link tutorial "build crud app with jhipster springboot and angular)
thank you
2 replies
SHASHI JAISWAL
@Mylifewithmyexperiment
while i am running mvnw command in my hipster folder I get the following error:-
[INFO] --- frontend-maven-plugin:1.10.0:npm (npm install) @ jhipster-sample-application ---
[INFO] Running 'npm install' in E:\sts\onlineJhipster
[INFO] npm WARN @fortawesome/angular-fontawesome@0.6.1 requires a peer of @angular/core@^9.0.0 but none is installed. You must install peer dependencies yourself.
[INFO] npm WARN @fortawesome/angular-fontawesome@0.6.1 requires a peer of tslib@^1.10.0 but none is installed. You must install peer dependencies yourself.
[INFO] npm WARN @fortawesome/angular-fontawesome@0.6.1 requires a peer of tslib@^1.10.0 but none is installed. You must install peer dependencies yourself.audited 2599 packages in 59.967s
[INFO] npm WARN @ng-bootstrap/ng-bootstrap@6.1.0 requires a peer of @angular/common@^9.0.0 but none is installed. You must install peer dependencies yourself.
[INFO] npm WARN @ng-bootstrap/ng-bootstrap@6.1.0 requires a peer of @angular/core@^9.0.0 but none is installed. You must install peer dependencies yourself.
[INFO] npm WARN @ng-bootstrap/ng-bootstrap@6.1.0 requires a peer of @angular/forms@^9.0.0 but none is installed. You must install peer dependencies yourself.
[INFO] npm WARN @ng-bootstrap/ng-bootstrap@6.1.0 requires a peer of @angular/localize@^9.0.0 but none is installed. You must install peer dependencies yourself.
[INFO] npm WARN @ng-bootstrap/ng-bootstrap@6.1.0 requires a peer of tslib@^1.10.0 but none is installed. You must install peer dependencies yourself.
[INFO] npm WARN @ngx-translate/core@12.1.2 requires a peer of tslib@^1.10.0 but none is installed. You must install peer dependencies yourself.
[INFO] npm WARN @ngx-translate/http-loader@5.0.0 requires a peer of tslib@^1.10.0 but none is installed. You must install peer dependencies yourself.
[INFO] npm WARN bootstrap@4.5.0 requires a peer of jquery@1.9.1 - 3 but none is installed. You must install peer dependencies yourself.
[INFO] npm WARN bootstrap@4.5.0 requires a peer of popper.js@^1.16.0 but none is installed. You must install peer dependencies yourself.
[INFO] npm WARN codelyzer@5.2.2 requires a peer of @angular/compiler@>=2.3.1 <10.0.0 || >9.0.0-beta <10.0.0 || >9.1.0-beta <10.0.0 || >9.2.0-beta <10.0.0 but none is installed. You must install peer dependencies yourself. [INFO] npm WARN codelyzer@5.2.2 requires a peer of @angular/core@>=2.3.1 <10.0.0 || >9.0.0-beta <10.0.0 || >9.1.0-beta <10.0.0 || >9.2.0-beta <10.0.0 but none is installed. You must install peer dependencies yourself.
[INFO] npm WARN ngx-cookie-service@3.0.4 requires a peer of @angular/common@^9.0.5 but none is installed. You must install peer dependencies yourself.
[INFO] npm WARN ngx-cookie-service@3.0.4 requires a peer of @angular/core@^9.0.5 but none is installed. You must install peer dependencies yourself.
[INFO] npm WARN ngx-cookie-service@3.0.4 requires a peer of tslib@^1.10.0 but none is installed. You must install peer dependencies yourself.
[INFO] npm WARN ngx-webstorage@5.0.0 requires a peer of @angular/common@^9.0.0 but none is installed. You must install peer dependencies yourself.
[INFO] npm WARN ngx-webstorage@5.0.0 requires a peer of @angular/core@^9.0.0 but none is installed. You must install peer dependencies yourself.
[INFO] npm WARN ngx-webstorage@5.0.0 requires a peer of tslib@^1.10.0 but none is installed. You must install peer dependencies yourself.
[INFO] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\browser-sync\node_modules\fsevents):
[INFO] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32"})
[INFO] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules\fsevents):
[INFO] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32"})
[INFO] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\watchpack-chokidar2\node_modules\fsevents):
[INFO] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.1
[INFO] npm ERR! A complete log of this run can be found in:
[INFO] npm ERR! C:\Users\win10\AppData\Roaming\npm-cache_logs\2020-09-14T17_53_11_921Z-debug.log
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:34 min
[INFO] Finished at: 2020-09-14T10:53:12-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.10.0:npm (webpack build dev) on project jhipster-sample-application: Failed to run task: 'npm run webpack:build' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 134 (Exit value: 134) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
some one who has come across the same errror
in windows
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.10.0:npm (webpack build dev) on project jhipster-sample-application: Failed to run task: 'npm run webpack:build' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 134 (Exit value: 134) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
this error
Priyanka Singh
@priyankadgp21_gitlab
Hey! I am using jhpister along with gradle, h2 db. I want to update the datatype varchar size. How can I do that? Jhipster version is 6.9.0
I have tried couple of approach but nothing worked. I am kind of new to jhipster, so correct me if I didnt mention anything or posted incorrectly?!
Selma0498
@Selma0498

Evening all! I am fairly new to jhipster and am working on a microservice based application with kafka. I generated a few microservices using jhipster and have selected Asynchronous messaging with apache kafka during generation. Once I run these services I get the following warning however:

2020-09-14 18:09:14.483  WARN 3704 --- [ad | producer-1] org.apache.kafka.clients.NetworkClient   : [Producer clientId=producer-1] Connection to node -1 (localhost/127.0.0.1:9092) could not be established. Broker may not be available.

2020-09-14 18:09:14.483  WARN 3704 --- [ad | producer-1] org.apache.kafka.clients.NetworkClient   : [Producer clientId=producer-1] Bootstrap broker localhost:9092 (id: -1 rack: null) disconnected

2020-09-14 18:09:15.314  WARN 3704 --- [pool-8-thread-1] org.apache.kafka.clients.NetworkClient   : [Consumer clientId=consumer-notifications-2, groupId=notifications] Connection to node -1 (localhost/127.0.0.1:9092) could not be established. Broker may not be available.

My kafka.yml file is:
`services:
zookeeper:
image: confluentinc/cp-zookeeper:5.5.0
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
kafka:
image: confluentinc/cp-kafka:5.5.0
ports:

  - 9092:9092
environment:
  KAFKA_BROKER_ID: 1
  KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
  KAFKA_ADVERTISED_LISTENERS: PLAINTEXT_HOST://kafka:9092
  KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
  KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
  KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1`

and app.yml file:
`services:
notifications-app:
image: notifications
environment:

  - _JAVA_OPTIONS=-Xmx512m -Xms256m
  - SPRING_PROFILES_ACTIVE=prod,swagger
  - MANAGEMENT_METRICS_EXPORT_PROMETHEUS_ENABLED=true
  - EUREKA_CLIENT_SERVICE_URL_DEFAULTZONE=http://admin:$${jhipster.registry.password}@jhipster-registry:8761/eureka
  - SPRING_CLOUD_CONFIG_URI=http://admin:$${jhipster.registry.password}@jhipster-registry:8761/config
  - JHIPSTER_SLEEP=30 # gives time for other services to boot before the application
  - KAFKA_BOOTSTRAPSERVERS=kafka:9092

kafka:
extends:
file: kafka.yml
service: kafka
environment:

  - KAFKA_ADVERTISED_HOST_NAME=kafka
  - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092

zookeeper:
extends:
file: kafka.yml
service: zookeeper
jhipster-registry:
extends:
file: jhipster-registry.yml
service: jhipster-registry
environment:

  - SPRING_CLOUD_CONFIG_SERVER_COMPOSITE_0_TYPE=native
  - SPRING_CLOUD_CONFIG_SERVER_COMPOSITE_0_SEARCH_LOCATIONS=file:./central-config/docker-config/`

In my application.yml file I have the following definition:
kafka: bootstrap-servers: localhost:9092 consumer: key.deserializer: org.apache.kafka.common.serialization.StringDeserializer value.deserializer: org.apache.kafka.common.serialization.StringDeserializer group.id: notifications auto.offset.reset: earliest producer: key.serializer: org.apache.kafka.common.serialization.StringSerializer value.serializer: org.apache.kafka.common.serialization.StringSerializer

Do any of you by any chance have experience with such an issue and have a possible suggestion/solution?
Many thanks in advance!

Muhammad Amer
@muhammad.amer_gitlab
Hello,Hope everyone is doing good.
I needed to know how can i enable console.log rule in jhipster its not allowing me to console.log
Manthis
@manthis.the_gitlab

Hello,Hope everyone is doing good.
I needed to know how can i enable console.log rule in jhipster its not allowing me to console.log

add: to .eslintrc.json
{
"plugins": ["@typescript-eslint/tslint"],
"extends": ["jhipster"],
"parserOptions": {
"project": "./tsconfig.base.json"
},
"rules": {
"no-console": "off", <<<<<<<<<<------------------------

V W
@vw98075

Here is a statement from JHIpster document:

To enable Zipkin tracing, package your application with the zipkin maven/gradle profile.

Can someone explain what is "package your application with the zipkin maven/gradle profile"?

4 replies
Mohammadreza Yektamaram
@mohammad1ta

Hello guys,
Can anyone help me to fix this error?

% ./subgenerator axon

  • jhipster axon --skip-git --blueprint cst
    INFO! Using JHipster version installed globally
    INFO! No custom sharedOptions found within blueprint: generator-jhipster-cst at /usr/local/lib/node_modules/generator-jhipster-cst
    events.js:288
    throw er; // Unhandled 'error' event
    ^

TypeError: Cannot read property 'replace' of undefined
.....

talk2starGit
@talk2starGit
Hi, I am not able to go past this error for my service. Can anyone pls help ?
Access to XMLHttpRequest from origin has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header contains multiple values but only one is allowed
samuel4Jesus
@samuel4Jesus
Hello gents please assist what is wrong here ... on creating new project
erroronnewproject.JPG
Mathieu ABOU-AICHI
@MathieuAA
Can you try reinstalling your dependencies?