Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Jesse Moseman
@jmoseman01
I'm having problems configuring the react native build with keycloak
but It just goes from start?authUrl="<authUrl>" to NotFound?authUrl="<authUrl>"
the authUrl seems to work.
Jesse Moseman
@jmoseman01
This is the call it makes before going to NotFound
const authResult = await AuthSession.startAsync({ authUrl, returnUrl: Linking.makeUrl('/') });
singhcharanjot20
@singhcharanjot20

Hey, I am new to jhipster and trying to import an existing project. When I am creating an entity with just 2 fields and no foreign key mapping at all, I get this exception :

ERROR! Error looking for otherEntity Authority at ~(Table Names)

The authority is missing in .jhipster folder and I cannot create an Authority entity because I get this : ERROR! Is not possible to override built in Authority

Application is build on springboot.

"jhipsterVersion": "7.1.0",
"applicationType": "monolith",

Will appreciate any help on this one. Thanks

1 reply
V W
@vw98075
Can a non-JVM application register at the JHipster Control Center? We have an open source app that is built with Go as an OAuth2 provider and an app built with JHipster as its OAuth client.
choubani amir
@amirensit
Hello
I has been a while since I am away from jhipster
I noticed other communities like angular, vuejs and reacts has created their discord server communities
It is more better than gitter
Is it possible for jhipster ?
Alejandro Matos
@amatosg
it is, but the server is empty :)
2 replies
choubani amir
@amirensit
We need to add our own server on discord and invite people there
Alejandro Matos
@amatosg
I've created a server, just in case :)
Peter E Olsen III
@hepaestus
I am using the elasticsearch search option for my entities in the JDL. I keep getting circular reference errors when saving entities. How do I get around this issue?
1 reply
 2021-07-22 11:22:58.233 ERROR 62059 --- [  XNIO-2 task-2] c.h.auntieginny.service.ArtService       : Exception in save() with cause = 'NULL' and exception = 'null'

 java.lang.StackOverflowError: null
    at org.springframework.data.util.Lazy.get(Lazy.java:114)
    at org.springframework.data.util.TypeDiscoverer.getType(TypeDiscoverer.java:285)
    at org.springframework.data.util.ParentTypeAwareTypeInformati

And Further down:

    at java.base/java.util.Spliterators$1Adapter.hasNext(Spliterators.java:681)
    at java.base/java.lang.Iterable.forEach(Iterable.java:74)
    at org.springframework.data.elasticsearch.core.convert.MappingElasticsearchConverter.writeCollectionValue(MappingElasticsearchConverter.java:710)

2021-07-22 11:22:58.238 ERROR 62059 --- [  XNIO-2 task-2] c.h.auntieginny.web.rest.ArtResource     : Exception in updateArt() with cause = 'NULL' and exception = 'null'

java.lang.StackOverflowError: null
    at org.springframework.data.util.Lazy.get(Lazy.java:114)
    at org.springframework.data.util.TypeDiscoverer.getType(TypeDiscoverer.java:285)
    at org.springframework.data.util.ParentTypeAwareTypeInformation.getType(ParentTypeAwa

Any Ideas on how to fix this?

arunjain501
@arunjain501
is anybody know about this ?

2021-07-22 21:23:28.734 INFO 1292 --- [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet ''
2021-07-22 21:23:28.734 INFO 1292 --- [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet ''
2021-07-22 21:23:28.757 INFO 1292 --- [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 23 ms

java.io.FileNotFoundException: class path resource [config/application.yml] cannot be resolved to URL because it does not exist

at org.springframework.core.io.ClassPathResource.getURL(ClassPathResource.java:195)
at org.springframework.core.io.AbstractFileResolvingResource.getFile(AbstractFileResolvingResource.java:150)
at com.risesmart.search.Swagger2MarkupTest.setup(Swagger2MarkupTest.java:45)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
at org.junit.internal.runners.statements.RunBefores.invokeMethod(RunBefores.java:33)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75)
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
V W
@vw98075
I create a JDL file on the online JDL-studio. After running it with "jhipster jdl app.jdl", I get an error "TypeError: cannot read property 'charCodeAt" of undefined". How to find out the cause?
1 reply
Carlos Garcés
@CGarces
I need to use a different value on client side based on the environment.
On Java side there in no problem, is set on aplication*.yml. But how do the same on Angular?
4 replies
Konstantin Pribluda
@ko5tik
Somehow all the entities are subject for ealstic search even if I specify just one of them. Is there a feature to prohibit this? Or is it a bug?
ikomangmahendra
@ikomangmahendra

Hi, anybody know how to change webpack servlet base context on JHipster 7?
Before JHipster 7 I change webpack.common.js and change the base:'/'

But start from JHipster 7, I can't find it. Thanks id advanced.

ikomangmahendra
@ikomangmahendra

Hi, anybody know how to change webpack servlet base context on JHipster 7?
Before JHipster 7 I change webpack.common.js and change the base:'/'

But start from JHipster 7, I can't find it. Thanks id advanced.

Ignore. Solved this question refer to https://www.jhipster.tech/production/

Manthis
@manthis.the_gitlab
exception.MigrationFailedException: Migration failed for change set config/liquibase/changelog/00000000000000_initial_schema.xml::00000000000001::jhipster:
     Reason: liquibase.exception.DatabaseException: Table 'jhi_user' does not have the identity property. Cannot perform SET operation. [Failed SQL: (8106) SET IDENTITY_INSERT jhi_user ON]

liquibase.exception.LiquibaseException: liquibase.exception.MigrationFailedException: Migration failed for change set config/liquibase/changelog/00000000000000_initial_schema.xml::00000000000001::jhipster:
     Reason: liquibase.exception.DatabaseException: Table 'jhi_user' does not have the identity property. Cannot perform SET operation. [Failed SQL: (8106) SET IDENTITY_INSERT jhi_user ON]
How to solve this error after generating new "Microsoft SQL Server" in dev profile jhipster app?
fans
@hackpros
image.png
Darius Rus
@dariusrus

Hi, I'm testing Jhipster 7.1.0 (reactive=true), I have packaged the application in a jar and when I access it I get this error:

io.netty.util.IllegalReferenceCountException: refCnt: 0, decrement: 1
        at io.netty.util.internal.ReferenceCountUpdater.toLiveRealRefCnt(ReferenceCountUpdater.java:74)
        at io.netty.util.internal.ReferenceCountUpdater.release(ReferenceCountUpdater.java:138)
        at io.netty.buffer.AbstractReferenceCountedByteBuf.release(AbstractReferenceCountedByteBuf.java:100)
        at io.netty.buffer.WrappedByteBuf.release(WrappedByteBuf.java:1037)
        at io.netty.buffer.SimpleLeakAwareByteBuf.release(SimpleLeakAwareByteBuf.java:102)
        at io.netty.handler.codec.http.DefaultFullHttpRequest.release(DefaultFullHttpRequest.java:103)
        at io.netty.util.ReferenceCountUtil.release(ReferenceCountUtil.java:88)
        at reactor.netty.http.server.HttpServerOperations.compression(HttpServerOperations.java:509)
        at reactor.netty.http.server.HttpServerOperations.afterMarkSentHeaders(HttpServerOperations.java:580)
        at reactor.netty.http.HttpOperations.lambda$then$3(HttpOperations.java:199)
        at reactor.netty.FutureMono$DeferredFutureMono.subscribe(FutureMono.java:115)
        at reactor.core.publisher.Mono.subscribe(Mono.java:4150)

I have tried this solution:
https://stackoverflow.com/questions/65248119/debugging-illegalreferencecountexception-refcnt-0-decrement-1

and added
spring codec: max-in-memory-size: 20MB
but the error is still there. Any idea what should I do to fix it?

V W
@vw98075
Where is the configuration of pre-filled test data?
5 replies
Fabio Arcidiacono
@arci
Hi! I'm writing a blueprint using JHipster version 7.1.0 but all the java classes get formatted with prettier-java. Is there a way to disable this behavior? I wasn't able to find anything in the doc
1 reply
Dũn
@dungreact
image.png
how can I change name of init schemes
I want to remove jhi_ name
2 replies
Maksim Muruev
@mmuruev
Hi, enyone has experience with JHipster 7.1.0 keycloak google auth setup ? I have issue with localhost. Which only allowed in google but at the login jhipster does redirect to keycloak:9080 which is resolvable with help of /etc/hosts.. but seems not fine with google
I belive right way to fix this make 'sign in' work to localhost:9080. But how to do so? I have vuejs frontend
javadori
@javaha
스크린샷 2021-08-02 오전 10.28.40.png
The cache is set to hazelcast when creating the gateway, but if you check the .yo-rc.json file after creating the gateway, cacheProvider is set to no.
Below are the set values and the contents of .yo-rc.json.
스크린샷 2021-08-02 오전 10.30.59.png
zuzhi hu
@zuzhi
Hi all. After I update an entity(adding new column), how do I update fake data in that table? I use mysql as development database, fake-data's csv file is updated, but not applied to that table.
5 replies
or am I suppose to update newly fake-data manually?
Dũn
@dungreact
How can I set relationships for my entities? I tried this but I can't generate, always error
Ajay Ramesh
@ajay443
I need one help on clearing all frontend code. I created a microservice using jhipster with frontend and gateway+ frontend:Angular. Now I want to remove frontend, what files are associated with frontend ? Deleting this src/main/webapp, deletes the frontend ? any advices ?
Alejandro Matos
@amatosg
try creating a similar project and skip the frontend (there is an option to do so), then use Meld (free app) to compare both projects
Ajay Ramesh
@ajay443
Thank you, I think that is the only and easy way :smile: using beyond compare tool
Alejandro Matos
@amatosg
yeap lol
Ajay Ramesh
@ajay443
can someone please provide suggestions, right now I have a Gateway, few microservice and Jhipster Registry. Now I see the routing is happening from gateway to microservices. I want to add user roles and check some custom scope before routing it to microservice, how to achieve this from high level ? I am thinking in ApiGateway SecurityConfiguration.java file, write custom jwt token validation ? or I should write Api Reverse Proxy, like another controller in gateway ? How usually custom scope is checked in API gateway ? I am using OpenID/OIDC user authorization. Any example links ?
Shawn Debnath
@sdebnath

Hello. I have an oauth2 (Okta) enabled gateway/microservice working where the gateway hosts the angular app and calls are being proxied to the microservice in the back correctly. Gateway has no database as I want all requests to be services by the microservice. I have set up a separate ApplicationUser entity to hold more data and all other entities in the microservice will be referencing this table. This keeps the jhi_user independent. My question revolves around how to intercept the oauth2 access token for any API call where the gateway is passing down the okta generated access token. Goal is to insert entries into the jhi_user and also create an entry in the ApplicationUsers table.

In a monolith, getUserFromAuthentication() would call syncUserWithIdP() which would populate the entries. Since the database has moved behind the API service, how can I go about accomplishing upserting the user entry?

1 reply
Dũn
@dungreact
Hello, how can I point my domain to docker container?
2 replies