Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
duconja
@duconja
is something wrong? I mean ... this is all out of the box generated
mirandarfsm
@mirandarfsm_gitlab
try it
version: '2'
services:
  app:
    image: app
    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_DATASOURCE_URL=jdbc:postgresql://app-postgresql:5432/app'
      - JHIPSTER_SLEEP=30
      - JHIPSTER_REGISTRY_PASSWORD=admin
    links:
      - "jhipster-registry"
mirandarfsm
@mirandarfsm_gitlab
  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_DATASOURCE_URL=jdbc:postgresql://gateway-postgresql:5432/gateway'
      - JHIPSTER_SLEEP=30
      - JHIPSTER_REGISTRY_PASSWORD=admin
    ports:
      - '8080:8080'
    links:
      - "jhipster-registry"
duconja
@duconja
but my test-neo4j image won't build
@mirandarfsm_gitlab I can't even run it as spring app
mirandarfsm
@mirandarfsm_gitlab
the jib:dockerBuild doesn't work for me too. I create my owner Dockerfile.
duconja
@duconja
ok, I'm confused a bit -- these are for which files? app.yml in src/main/docker, docker-compose.yml or in two microservices?
duconja
@duconja
looks like I solved it
problems seems to be port mapping in neo4j.yml
ZinebLalaouiMoutarajjji
@ZinebLalaouiMoutarajjji
Hey, I try to run the job bootRun of a jhipster project after imorting a jdl file but the app won't run completely it's stop on started swagger. I don't know why
duconja
@duconja
show jdl?
ZinebLalaouiMoutarajjji
@ZinebLalaouiMoutarajjji
I don't have permission to share it with public
it's a company project
duconja
@duconja
I don't know how to help ... maybe someone else can
Wissam ENNABIRHA
@Wissam_ennabirha_gitlab
@ZinebLalaouiMoutarajjji show the error
ZinebLalaouiMoutarajjji
@ZinebLalaouiMoutarajjji
there's 40 tables and 60 relationships. It's beacause there's a lot of data
??
there's no error
it's stop here
2020-04-02 16:18:42.872 DEBUG 76436 --- [ restartedMain] i.g.j.c.apidoc.SwaggerAutoConfiguration : Starting Swagger
2020-04-02 16:18:42.895 DEBUG 76436 --- [ restartedMain] i.g.j.c.apidoc.SwaggerAutoConfiguration : Started Swagger in 21 ms
@duconja thank you !
mirandarfsm
@mirandarfsm_gitlab
@duconja good!
@ZinebLalaouiMoutarajjji show all log
Thomas McCarrron
@ThomasMcCarron
@Wissam_ennabirha_gitlab Could you please follow up on the interceptor you mentioned last night? Im not entirely sure what you mean by that
mirandarfsm
@mirandarfsm_gitlab
hi guys! I have a problem with a sort + elastic search + string
when i try to sort a string in elastic search. It's show this error:
2020-04-02 15:39:44.594 ERROR 19953 --- [ XNIO-1 task-56] o.z.problem.spring.common.AdviceTraits   : Internal Server Error

com.github.vanroy.springdata.jest.exception.JestElasticsearchException: Cannot execute jest action , response code : 400 , error : {"root_cause":[{"type":"illegal_argument_exception","reason":"Fielddata is disabled on text fields by default. Set fielddata=true on [nome] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead."}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"dfs","grouped":true,"failed_shards":[{"shard":0,"index":"mirandarfsm-grupo","node":"fqxkoTXTTjiyyVjG9ipWXA","reason":{"type":"illegal_argument_exception","reason":"Fielddata is disabled on text fields by default. Set fielddata=true on [nome] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead."}}],"caused_by":{"type":"illegal_argument_exception","reason":"Fielddata is disabled on text fields by default. Set fielddata=true on [nome] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead.","caused_by":{"type":"illegal_argument_exception","reason":"Fielddata is disabled on text fields by default. Set fielddata=true on [nome] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead."}}} , message : null
        at com.github.vanroy.springdata.jest.mapper.DefaultErrorMapper.mapError(DefaultErrorMapper.java:30)
        at com.github.vanroy.springdata.jest.JestElasticsearchTemplate.execute(JestElasticsearchTemplate.java:1126)
        at com.github.vanroy.springdata.jest.JestElasticsearchTemplate.execute(JestElasticsearchTemplate.java:1116)
        at com.github.vanroy.springdata.jest.JestElasticsearchTemplate.executeSearch(JestElasticsearchTemplate.java:1229)
        at com.github.vanroy.springdata.jest.JestElasticsearchTemplate.doSearch(JestElasticsearchTemplate.java:1216)
        at com.github.vanroy.springdata.jest.JestElasticsearchTemplate.queryForPage(JestElasticsearchTemplate.java:414)
        at com.github.vanroy.springdata.jest.JestElasticsearchTemplate.queryForPage(JestElasticsearchTemplate.java:405)
        at com.github.vanroy.springdata.jest.JestElasticsearchTemplate.queryForPage(JestElasticsearchTemplate.java:91)
        at org.springframework.data.elasticsearch.repository.support.AbstractElasticsearchRepository.search(AbstractElasticsearchRepository.java:209)
        at jdk.internal.reflect.GeneratedMethodAccessor425.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.springframework.data.repository.core.support.RepositoryComposition$RepositoryFragments.invoke(RepositoryComposition.java:359)
        at org.springframework.data.repository.core.support.RepositoryComposition.invoke(RepositoryComposition.java:200)
        at org.springframework.data.repository.core.support.RepositoryFactorySupport$ImplementationMethodExecutionInterceptor.invoke(RepositoryFactorySupport.java:644)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
        at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:608)
        at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.lambda$invoke$3(RepositoryFactorySupport.java:595)
        at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethod
image.png
Anush B M
@BMAnush
Hi....I have a couple of questions on JHipster's version of UAA.....Need help in fixing these.
1) For the login API - how to avoid sending credentials as query parameters rather make it a post-call so you can send them in body
2) On logout - How to destroy the access token?
Alejandro Matos
@amatosg
@ZinebLalaouiMoutarajjji yes, showing the full log would help us understand what could be going wrong
@mirandarfsm_gitlab Fielddata is disabled on text fields by default. Set fielddata=true on [nome] in order to load fielddata in memory by uninverting the inverted index
mirandarfsm
@mirandarfsm_gitlab
thanks
Jon Ruddell
@ruddell
@BMAnush 1) It uses a POST call by default, users should log in through the gateway endpoint to properly load-balance across multiple UAA instances. The request from gateway->uaa also uses a POST with a body
2) On logout (also through the gateway endpoint) the related auth cookies are reset to empty (see the Set-Cookie response headers)
Anush B M
@BMAnush

@ruddell I am using Spring UAA.....also I am using a custom gateway (WSO2) .....How do I handle both login and logout if I am not using the gateway?

Thanks for the help.....

Jon Ruddell
@ruddell
@BMAnush The Angular code I referenced is how JHipster's UI logs into the UAA through a JHipster gateway, using the POST request with a body. The second link shows how to make a post request to the UAA to authenticate (at least using user credentials), you can implement that in whatever language you use. Not sure how that would work with a custom gateway
Thomas McCarrron
@ThomasMcCarron
With the default setup of keycloak/a gateway/a microservice (Using Kotlin if that matters), if I log into my gateway via keycloak should that session be shared with the microservice? I'm getting a 401 authorised error when making queries to the microservice, and noticed that the microservice is setup to use the "internal" Client on Keycloak, but the gateway uses "web_app"
Anthony Nguyen
@NgyAnthony
Hi, I just started using JHipster and when I generated my project I first tried tests and "yarn e2e" didn't work because I had an outdated version of chromedriver. I used "jhipster upgrade" to fix this so everything is fine now but I have to ask, is it expected behavior to generate a jhipster project and not have everything updated to the latest release ?
Alejandro Matos
@amatosg
I have Order and OrderLine, if I delete a line, list all Orders and go back to the one for which I deleted a line, I get an exception (a line with id xx does not exists). I need to evict the cache and I’m not sure if I should evict the lines or the whole entity. Most important, I don’t know how to do either. any help?
My first solution was to remove @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) from Order class, line variable.
Thomas McCarrron
@ThomasMcCarron
Hmm, so I've permitted requests too all the API endpoints and its getting weird
Thomas McCarrron
@ThomasMcCarron
The request is Unauthorised every time now, running in debug mode in my ide vs as a docker container
but the request still resolves
Thomas McCarrron
@ThomasMcCarron
(This is using Spring Reactive too)
Thomas McCarrron
@ThomasMcCarron
Interestingly it doesnt happen when both the gateway and the server arent running in docker...?
Juvenal Muniz
@juvenalmuniz
My JHipster app (v6.8.0) has OIDC for authentication using Keycloak. My front-end is a VueJS SPA. Everything is working fine. I need to implement a user search functionality. Where should I send the search request: JHipster backend or Keycloak? All my users live inside Keycloak but everytime someone logs in, a user is also created and synced on the JHipster backend.
Bobby King
@BLKingLLC
@juvenalmuniz , I'm facing the same problem but i would go with searching the local database not KeyCloak. The only downside is you won't get ALL users, only those that have logged in before.
brindadesai
@brindadesai
created demo jhipster application . not able to log in with default password. please help
ductmkma
@ductmkma
Hi all, i using vue with jhipster.
I want check user authenticated in main.ts. How to check ? Thanks
Henri Tremblay
@henri-tremblay
Hello everyone. I'm running the new jhipster. Am I right to say that relational databases have been removed?