Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
herenow87
@herenow87
I am getting this error in
java.lang.IllegalStateException: REST API is not enabled. in UAA server and unable to access localhost:9999
herenow87
@herenow87
A file path that is implicitly relative to the current working directory is not allowed in the database URL "jdbc:h2:file:target/h2db/db/jhipsgate;DB_CLOSE_DELAY=-1". Use an absolute path, ~/name, ./name, or the baseDir setting instead. [90011-200]
simiii
@simiii
Hey there. I generated a new jhipster microservice app. Is it normal that hateoas ist configured by default? How do I disable it? Thanks in advance
Bobby King
@BLKingLLC
Does anyone have any idea why I'm getting this error during a Kubernetes deployment to Google? "Failed to pull image "brabbit/brabbit": rpc error: code = Unknown desc = Error response from daemon: pull access denied for brabbit/brabbit, repository does not exist or may require 'docker login': denied: requested access to the resource is denied"
Bobby King
@BLKingLLC
Found it... I think it may be a bug. The brabbit-deployment.yml had the wrong image address.
Bruce MARIAGE
@Brouce_gitlab
I there. I am struggling with a deployment issue: I need to CTRL+RELOAD button each time I redeploy the app, reloading is not enough, and I really can't explain that to clients. What should be the normal behaviour of the app after a new deployment ?
using JHipster v6.10.1 with vuejs blueprint
Please help !
7 replies
Bobby King
@BLKingLLC
How can I redeploy my entire Kubernetes deployment without deleting the cluster? Currently, I have to recreate the cluster then run kubeapply.sh -f
Balakrishna Kancharana
@balakrishna533

Hi all,

When I am trying to access jhipster through nginx, showing below error in the logs:

connect() failed (111: Connection refused) while connecting to upstream

Szabolcs Kelemen
@SzabKel
Hello! Could you please tell me if there is any way to ignore files during every generation? Like an import-jdl ignore file. I would use it to ignore files I already changed, like if I change the navbar manually for example, I would add the navbar's html to the ignore file so I wouldn't have to skip it manually every time I re-generate the code. (Or is there a better way?)
2 replies
cifilaci
@cifilaci
Hello Guys! I would like to ask around Oauth2, token refresh and revocation endpoint implementation. As far as I can see the the jwt token is persisted in the session of the user on the backend and I found no code validating the token expiration. So If I have a token with 5 mins lifespan this keeps working even after it is expired. Would it be a valid improvement to implement the validation and implementation of refreshing the token? My other question is about revocation. Why Jhipster is not implementing the revocation endpoint?
jeffry00777
@jeffry00777
After adding new entity, the tables are not added in the database.
Sang9xpro
@sang9xpro

After adding new entity, the tables are not added in the database.

yes. You have to create the table manually

Hello guys, How can I set default selected is Facebook in AvRadio react?
Example:

<AvRadioGroup name="radioSocial" required errorMessage="Pick one!" onChange={handleSocial}>
<AvRadio label="Facebook" value={Social.Facebook}/>
<AvRadio label="Youtube" value={Social.Youtube} />
<AvRadio label="Instagram" value={Social.Instagram} />
<AvRadio label="Tiktok" value={Social.Tiktok} />
</AvRadioGroup>

JCbackenddev
@JCbackenddev
Hey Guys! I am new here, could you advice me a good tutorial to create new views while respecting the preexisting architecture of the app! thank you in advance!
(I looked all over the internet and in the documentation but couldn't find a good one).
Armel BOBDA
@ArmelBobda_twitter
Hello!! Please I want to know if JHipster supports TLS 1.3?
jeffry00777
@jeffry00777
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'testingServiceImpl' defined in file [C:\Users\Hermina Louis\company\jpconferences\target\classes\com\jhipster\gateway\service\impl\TestingServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'testingRepository': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Validation failed for query for method public abstract java.util.List com.jhipster.gateway.repository.TestingRepository.findLastRecord()!
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:798)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:228)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1358)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1204)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:557)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:226)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:895)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:878)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
at com.jhipster.gateway.CompanyApp.main(CompanyApp.java:63)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'testingRepository': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Validation failed for query for method public abstract java.util.List com.jhipster.gateway.repository.TestingRepository.findLastRecord()!
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1796)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:595)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:226)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
a

public interface TestingRepository extends JpaRepository<Testing, Long> {

@Query("SELECT aa FROM Testing aa ORDER BY aa.id DESC")
public List<Testing> findLastRecord();

}

@Override
@Transactional(readOnly = true)
public List<Testing> getLastRecord() {
return testingRepository.findLastRecord();
}
@GetMapping("/testings/last")
public ResponseEntity<List<Testing>> getLast() {
//List<Testing> testing = testingService.getLastRecord();
return new ResponseEntity<>(testingService.getLastRecord(), HttpStatus.OK);
}
I am not able to fetch the data using custom query
Enes Dogan
@enesdogan27
Hi guys, could you advise me please? I want to access mongodb in docker container, it seems ports are not exposed in default? Which docker files should i change and rerun project? Assume i want to use mongodb for UAA server and want connect db from my host machine vai Robo 3T mongo client? Thanks
Enes Dogan
@enesdogan27

I solved myself after some research. Jhipster docker-compose generator does not expose ports. If you want to expose it you can manually alter docker-compose.yml file or related docker file. Sample docker compose file for exposing uaa server database exposed to be accessible from host machine:
`version: '2'
services:
blog:
image: blog
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'
  - 'SPRING_DATA_MONGODB_URI=mongodb://blog-mongodb:27017'
  - SPRING_DATA_MONGODB_DATABASE=blog
  - JHIPSTER_SLEEP=30
  - JHIPSTER_REGISTRY_PASSWORD=admin

blog-mongodb:
image: 'mongo:4.2.7'

gateway:
image: gateway
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'
  - 'SPRING_DATA_MONGODB_URI=mongodb://gateway-mongodb:27017'
  - SPRING_DATA_MONGODB_DATABASE=gateway
  - JHIPSTER_SLEEP=30
  - JHIPSTER_REGISTRY_PASSWORD=admin
ports:
  - '8080:8080'

gateway-mongodb:
image: 'mongo:4.2.7'

store:
image: store
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'
  - 'SPRING_DATA_MONGODB_URI=mongodb://store-mongodb:27017'
  - SPRING_DATA_MONGODB_DATABASE=store
  - JHIPSTER_SLEEP=30
  - JHIPSTER_REGISTRY_PASSWORD=admin

store-mongodb:
image: 'mongo:4.2.7'

uaa:
image: uaa
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'
  - 'SPRING_DATA_MONGODB_URI=mongodb://uaa-mongodb:27017'
  - SPRING_DATA_MONGODB_DATABASE=uaa
  - JHIPSTER_SLEEP=30
  - JHIPSTER_REGISTRY_PASSWORD=admin

uaa-mongodb:
image: 'mongo:4.2.7'
ports:

  - '27017:27017'

jhipster-registry:
extends:
file: jhipster-registry.yml
service: jhipster-registry

jhipster-elasticsearch:
extends:
file: jhipster-console.yml
service: jhipster-elasticsearch
jhipster-logstash:
extends:
file: jhipster-console.yml
service: jhipster-logstash
depends_on:

  - jhipster-elasticsearch

jhipster-console:
extends:
file: jhipster-console.yml
service: jhipster-console
depends_on:

  - jhipster-elasticsearch

jhipster-import-dashboards:
extends:
file: jhipster-console.yml
service: jhipster-import-dashboards
depends_on:

  - jhipster-elasticsearch

`

Maksim Muruev
@mmuruev
I've generated entity but it failes in generator seems because regexp... cant stand ' symbols or something like this.. so now I have no .jhipster/entity.json file in project but backend is generated (java + liquibase) any chance to restore it somehow? I want change the entity a bit?
1 reply
Ghost
@ghost~5fc16d44d73408ce4ff52135

Hi,

This is my jhipster conifg (actuall kotlin hipster).

<details>
<summary>.yo-rc.json file</summary>
<pre>
{
  "generator-jhipster": {
    "promptValues": {
      "packageName": "com.test.test",
      "nativeLanguage": "en"
    },
    "jhipsterVersion": "6.10.4",
    "applicationType": "monolith",
    "baseName": "ProjectShoesBackend",
    "packageName": "com.test.test",
    "packageFolder": "com/test/test",
    "serverPort": "8080",
    "authenticationType": "jwt",
    "cacheProvider": "ehcache",
    "enableHibernateCache": true,
    "websocket": false,
    "databaseType": "sql",
    "devDatabaseType": "h2Disk",
    "prodDatabaseType": "postgresql",
    "searchEngine": false,
    "messageBroker": false,
    "serviceDiscoveryType": false,
    "buildTool": "gradle",
    "enableSwaggerCodegen": false,
    "jwtSecretKey": "YourJWTSecretKeyWasReplacedByThisMeaninglessTextByTheJHipsterInfoCommandForObviousSecurityReasons",
    "embeddableLaunchScript": false,
    "useSass": true,
    "clientPackageManager": "npm",
    "clientFramework": "angularX",
    "clientTheme": "minty",
    "clientThemeVariant": "dark",
    "creationTimestamp": 1606397893626,
    "testFrameworks": [],
    "jhiPrefix": "jhi",
    "entitySuffix": "",
    "dtoSuffix": "DTO",
    "otherModules": [
      {
        "name": "generator-jhipster-kotlin",
        "version": "1.10.0"
      }
    ],
    "enableTranslation": true,
    "nativeLanguage": "en",
    "languages": ["en"],
    "blueprints": [
      {
        "name": "generator-jhipster-kotlin",
        "version": "1.10.0"
      }
    ],
    "herokuAppName": "project-shoes-backend",
    "herokuDeployType": "git",
    "herokuJavaVersion": "1.8"
  }
}

</pre>
</details>


##### **JDL for the Entity configuration(s) `entityName.json` files generated in the `.jhipster` directory**

<details>
<summary>JDL entity definitions</summary>

<pre>
entity Brand {
  name String
}
entity Shoes {
  name String
}
entity Size {
  lengthInCm Long,
  sizeUS Long,
  sizeEU Long
}
relationship OneToMany {
  Brand{shoe} to Shoes{brand},
  Shoes{sizes} to Size{shoe}
}


</pre>
</details>


##### **Environment and Tools**

openjdk version "1.8.0_272"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_272-b10)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.272-b10, mixed mode)

git version 2.24.3 (Apple Git-128)

node: v14.9.0

npm: 6.14.7

Docker version 19.03.13, build 4484c46d9d

docker-compose version 1.27.4, build 40524192

identical .jhipster/Brand.json
identical .jhipster/Shoes.json
identical .jhipster/Size.json

I have a problem creating entities via the Angular frontend. When creating a Brand entity, it works. But when I try to create a Shoe Entity and link it with a Brand I always recieve a bad request error.

The log shows the following error message:

JSON parse error: Parameter specified as non-null is null: method com.test.test.domain.Brand.setShoes, parameter <set-?>; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Parameter specified as non-null is null: method com.test.test.domain.Brand.setShoes, parameter <set-?>
 at [Source: (PushbackInputStream); line: 1, column: 63] (through reference chain: com.test.test.domain.Shoes["brand"]->com.test.test.domain.Brand["shoes"])]

Can somebody help me figure out the problem?

Thanks in advance

Mathieu Poussin
@Kedare_twitter
Hello everyone.
I got a small question, I am coming from a Python/Django/Celery background (did some ruby a long time ago also) and I wanted to know if you would recommend to start directly with JHipster or to start a first web app with just some plain Spring Boot ? (I will also use Angular that I used already).
I tried to start with JHipster directly but I feel a little bit overwhelmed by all the things I need to know from Spring Boot and then the specificity from JHipster :sweat_smile:
1 reply
Carlos Henrique
@henriqueof
I am using API first to generate controllers and would like to create only database related classes when importing my JDL entities, how can I achieve this? Currently it creates Controllers for all entities even those I don't want to.
3 replies
Abhishek Sharma
@abhisheksharma85
this could be a very dumb question, but I am curious. When I create jhipster gateway with Spring Webflux, it doesn't give an option to use Cache. Can anyone care to explain?
1 reply
EmmanuelDiazN09
@EmmanuelDiazN09
I am starting in jhipster I create the project in a basic way when I enter the server and add the username and password admin; admin "Login failed! Please check your credentials and try again."
cheetahtec
@cheetahtec
I am using jhipster 6.10.5. I built an application and created entities. When I run npm test and npm run e2e to see if all is ok I am getting issues in jest and protractor config. Has anyone experienced this ?
Tried to lint /Users/abhinavprakash/Projects/medihelp/bin/src/test/javascript/jest.conf.js but found no valid, enabled rules for this file type and file path in the resolved configuration.
Tried to lint /Users/abhinavprakash/Projects/medihelp/bin/src/test/javascript/protractor.conf.js but found no valid, enabled rules for this file type and file path in the resolved configuration.
3 replies
 1:18  error    Require statement not part of import statement                  @typescript-eslint/no-var-requires
  19:23  error    'mapTypescriptAliasToJestAlias' was used before it was defined  @typescript-eslint/no-use-before-define
 14:19  error  'process' is not defined                                                      no-undef
  35:5   error  Expected method shorthand                                                     object-shorthand
  41:5   error  Expected method shorthand                                                     object-shorthand
  42:9   error  'browser' is not defined                                                      no-undef
  44:9   error  Do not use "// @ts-ignore" comments because they suppress compilation errors  @typescript-eslint/ban-ts-ignore
  45:9   error  'browser' is not defined                                                      no-undef
  46:22  error  Require statement not part of import statement                                @typescript-eslint/no-var-requires
  47:32  error  Require statement not part of import statement                                @typescript-eslint/no-var-requires
  49:28  error  Require statement not part of import statement                                @typescript-eslint/no-var-requires
  51:9   error  Do not use "// @ts-ignore" comments because they suppress compilation errors  @typescript-eslint/ban-ts-ignore
Kirill Marchuk
@62mkv
Hi all. I'd like to know more about why "Angular Ivy" has been chosen as the way to generate apps by default w/JHipster (6.9.1, at least) ? It seems like there's tons of packages out there that are not supported by Angular Ivy at all. Or is there any straightforward way to resolve such issues?
5 replies
Kirill Marchuk
@62mkv
or, more specifically, which dependency for "copy element text to clipboard" will definitely work with JHipster 6.9.1 (Angular 10 + Ivy) application? I've tried out already 4 of them and none seems to be working.. (
JCbackenddev
@JCbackenddev
@EmmanuelDiazN09 Your backend is probably not running. Try to run ./mvnw in your terminal again ,it should normally work.
JCbackenddev
@JCbackenddev
@cheetahtec "'process' is not defined " the reason should be that a variable is not properly declared https://stackoverflow.com/questions/46477130/typescript-referenceerror-is-not-defined
clarkmc
@clarkmc
Hello all. I am using JHipster with Keycloak OAuth2 authentication. I have two distinct types of users (customer and vendor), and I'd like to set specific attributes on the user based on which registration link they click. Does anyone know of a way to customize the user-authorization-uri to pass along additional client scopes that were not included in the security.oauth2.client configuratoin in the YAML?
Or, if I'm going about it the wrong way, that would be helpful to know as well. My thought as of right now was to have them associated with different client scopes, but maybe there's another way.
Salome J Marquez
@Marqzman_gitlab
Hello everyone. I was wondering if User Management was an option when using OAuth2 authentication? Or is that something we would have to create ourselves with Keycloak's API?
1 reply
PaschalCO
@PaschalCO
Hi. I'd like to use angularx-social-login module to implement social login in my jHipster application but I don't really know what to do after obtaining user iinfo. Can anyone help?
aditya777hp
@aditya777hp
Hi
I want to remove core, admin components of the jhipster frontend project any suggestions or articles for the same ?
ddsultan
@ddsultan

-WARN in net.logstash.logback.appender.LogstashTcpSocketAppender[LOGSTASH] - Log destination localhost/127.0.0.1:5000: connection failed. java.net.ConnectException: Connection refused: connect

Have configured the Logstash input plugin with tcp with port 5000

samuel4Jesus
@samuel4Jesus

I have my entity with below attributes.

attribute1
attribute2
attribute3
attribute4

But on Angular I don’t want attributes 3 & 4 to be created.

How can I achieve this ??

JCbackenddev
@JCbackenddev

Hi
I want to remove core, admin components of the jhipster frontend project any suggestions or articles for the same ?

Hi @aditya777hp, I you just want to suppress it from the front end, I would recommend to simply delete/comment out the admin options from the core / jhi-navbar (id="admin-menu"). This way you keep the possibility to re-implement those functions if needed.

JCbackenddev
@JCbackenddev
@samuel4Jesus "But on Angular I don’t want attributes 3 & 4 to be created." if you mean by that, that you do not want them to appear on your frontend. you can manually hide them. Webapp / app entities. There is even a video on this subject https://www.youtube.com/watch?v=wNNCrrc5x4o
Have fun!
samuel4Jesus
@samuel4Jesus

@samuel4Jesus "But on Angular I don’t want attributes 3 & 4 to be created." if you mean by that, that you do not want them to appear on your frontend. you can manually hide them. Webapp / app entities. There is even a video on this subject https://www.youtube.com/watch?v=wNNCrrc5x4o
Have fun!
Thanks ... I went through the video and it shows how to hide column on the table.

But on my case I wish to restrict attributes from backend and frontend as well.

But it those restricted columns will be set manually on the service implementation class.

I hope am clear now.

JCbackenddev
@JCbackenddev
ok, so you want to refactor your entity in order not to have attributes 3 & 4. (I hope I understand well this time).
In order to do that you can go on https://www.jhipster.tech/jdl-studio/ to redo your entity, and then import it again without the two attributes you do not want. If you do not have your .jdl file anymore, you can always run jhipster export-jdl <FILE_NAME> in your app’s root folder in order to get it.
Helder Macedo
@HeldrMacedo
image.png
Could you help me with this error, it only occurs during production, in development it does not happen