Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
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
g14wx
@g14wx
hi, i'm new, i would like to contribute to vuejs blueprint, somebody can give me a wiki on how the blueprint works?
1 reply
i just read that Sahbi KTIFA its realted whit vuejs
g14wx
@g14wx
nevermind i start to looking for something and found this https://github.com/jhipster/jhipster-vuejs/blob/master/CONTRIBUTING.md#setup
Digant Kusulia
@Digant20
Hello everybody, I am looking for a way to create separate JARs using maven for different classes(controller class, service class, domain class) in springboot app. Can someone please help me with it.
1 reply
JCbackenddev
@JCbackenddev
Hey, would anybody using Jhipster with Vuejs and needing help be interested in some Google meets, I have an intermediate understanding of the software, ~fluent in java. So I can answer a few questions but I also require some help (mostly for the front part). I'm basically looking for a Jhipster coding buddy to co-work/help each other and advance faster. I don't know if it makes really sense for you but contact me if you are interested.
My project is to build a sort of PayPal, allowing people to send money to each other (this is a study project not a business project)
Ratna
@nani2ratna_twitter
hi guys, can i create microservice and angular ui seperately with jhipster ?
1 reply
Yasir Karam
@yasir2000
Hi everyone, how to deploy API microservices API First within K8 service mesh with EFK stack, Jaeger, Prometheus, Kafka, Zipkin, API gateway like Kong, Keycloak identity server, swagger 3.0, ....etc using JHipster, Entando?
3 replies
dhavalmshah
@dhavalmshah

hello, I needed help debugging jhipster monolith angular app with vscode. It runs fine from command line. However in vscode I have the spring boot dashboard which recognizes the project and gives me option to run/debug. When I run/debug I get the following error *
APPLICATION FAILED TO START


Description:

Failed to bind properties under '' to com.zaxxer.hikari.HikariDataSource:

Property: driverclassname
Value: org.h2.Driver
Origin: "driverClassName" from property source "source"
Reason: Failed to load driver class org.h2.Driver in either of HikariConfig class loader or Thread context classloader
veeracherukuri
@veeracherukuri
Getting following error "java.lang.IllegalAccessException: class io.netty.util.internal.PlatformDependent0$6 cannot access class jdk.internal.misc.Unsafe (in module java.base) because module java.base does not export jdk.internal.misc to unnamed module @60a3a52b" Java version is "Java HotSpot(TM) 64-Bit Server VM (build 14.0.2+12-46, mixed mode, sharing)"
after this I am getting erro with elastic search. I am on AWS linux. Any help is appreciated " Cannot execute jest action , response code : 403 , error : {"root_cause":[{"type":"cluster_block_exception","reason":"blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"}],"type":"cluster_block_exception","reason":"blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"} , message : null'
Pierre Le Mignant
@plemignant_gitlab
Failed to build application with jhipster command

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: essai-1@0.0.1-SNAPSHOT
npm ERR! Found: axios@0.19.2
npm ERR! node_modules/axios
npm ERR! axios@"0.19.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer axios@"^0.18.0" from react-jhipster@0.11.0
npm ERR! node_modules/react-jhipster
npm ERR! react-jhipster@"0.11.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/pierre/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/pierre/.npm/_logs/2020-12-18T17_28_24_727Z-debug.log

2 replies
someone can help me thanks
Ebsan Uddin
@Ebsan
Does anyone know why the jhipster-console was deprecated? Is there an announcement with details? Can't really find anything
1 reply
lovelylip
@lovelylip
hi everyone, how to import file .js in angular 9 with jhipster ?
2 replies