Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
freynder
@freynder
you could check your configuration file and see where the H2 database is saved
probably outside the target folder
JCbackenddev
@JCbackenddev
yeah it is impossible on gitter, I was thinking on google meet or so
I'll take a look at the configuaration file
freynder
@freynder
Can't right now but maybe later, let's hope you can just find out from config
JCbackenddev
@JCbackenddev
thanks a lot, I'll work on solving this problem until then!
freynder
@freynder
yeah, I think you are pretty close. the h2 db must be outside the target folder if it is not gone
MyriamHetchr
@MyriamHetchr
Hey guys! My startup is doing a quick survey on the most popular tools that software engineers use. I'd love it if you could take 30 seconds to fill it out and it would help me out so much with my research. Thanks! https://airtable.com/shraWROPeduwuCFJy
Alejandro Matos
@amatosg
has anyone made junit tests on the service layer?
bdssultan
@bdssultan
"A unidirectional one-to-many relationship Do a bidirectional mapping, and use it without modification: this is our recommended approach, as it is much simpler" seems it doesnt work in beta version bcs no multiselect appeared
Nagama Khalifa
@nagama.khalifa_gitlab
Hey guys..When i create an entity using command entity created but the table not created in the database i am using h2 db not throwing any issue but changes not reflecting in database.
9 replies
simiii
@simiii
Hey guys I am currently thrown into an old Jhipster App (v.5.3.4) with lots of entities and filter options. If I enable the swagger profile, startup time takes forever. I remember an issue with swagger startup time but I was not able to find the issue in your github issues. I am searching for 2 days for relevant information. The project must be updated to a newer Jhipser version, but I want to understand the related problem why the application startup takes forever. Any hint or information would be very nice. Thank you for you awesome work.
Nagama Khalifa
@nagama.khalifa_gitlab
Starting Liquibase asynchronously, your database might not be ready at startup getting this error
while creating entity showing a warning that chanelog date is missing in .jhipster .json file udin 24** as fallback
Trung Nguyễn
@thucnh96-dev_gitlab
Hi.
I am building a system.
how to build websocket to notify use in microservice. websocket is a microservice
1 reply
V W
@vw98075

I have run the latest version in docker. I always run into a version problem:

$ docker-compose -f src/main/docker/app.yml up
ERROR: Version in "./src/main/docker/app.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a version of "2" (or "2.0") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/

I need to change the version to 2.0 to solve the problem. Is something wrong with my local setup or JHipster problem?

2 replies
V W
@vw98075
I have two applications with the same DB configuration in the app.yml files. After running one application without any problem in docker, I run into an error about an existing database table when I run the second application in docker. That error cause is the same DB configuration, I believe. What is the best way to deal with the problem?
6 replies
bdssultan
@bdssultan
Hi hipsters!Can somebody clear liqubase flow.I understand it like this when we generete jdl it creates entities(and other stuff) and then executes liqubase diff that creates changelog file after jhipster includes it to master changelog file and then we run application and liqubase updates db?(but i don't see in pom executor goal update)
1 reply
KarstenBlume
@KarstenBlume

Hello everybody,
i am running (jhipster 6.10.5) the
jhipster openapi-client command to create the Java Feign REST client, the classes being generated extensively use JsonNullable:
@JsonProperty("name")
private JsonNullable<String> name = JsonNullable.undefined();
With the Feign Client i am successfully consuming a GET operation, but the deserialization of the response fails with:
Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of org.openapitools.jackson.nullable.JsonNullable (no Creators, like default construct, exist): no String-argument constructor/factory method to deserialize from String value ('aname')

that is because the JsonNullable has to be created by the .of() method.
So the generated Client is more or less useless, Feign is checking for an Optional Java Object in its OptionalDecoder, but this JsonNullable is a different approach.
Does anybody has an idea on how to fix this?

V W
@vw98075

I get microservices from Jhipster. After running the following command to deploy all those apps to Kubernets:

 bash kubectl-apply.sh -f

I get

Applying default `kubectl apply -f`
Unable to connect to the server: dial tcp 192.168.49.2:8443: i/o timeout

Where shall I look into to solve this problem?

2 replies
buiphuking
@buiphuking_twitter
image.png
hi everyone, i'm new with jhispter
i install project, after i try to login but i get this error, any idea, plz.
2 replies
ItzEdgar
@ItzEdgar
Hello, anybody with experience in developing microservices with jhipster?
1 reply
I've followed the tutorial, wrote a JDL file, but now when I'm trying to run one of the microservices locally (while the others are in Docker), it doesn't seem to be able to find the registry
I've tried every stackoverflow answer and none seemed to help
Rrok Luli
@Rrok_gitlab
Online-Store-ERD.png
3 replies
Hello Guys! I have created a JDL File based on this ERD Schema for Online Store, but when i try to generate it gives me error between User Entity and Cart Entity and again between User and Address Entity
onlineStoreJhipSter.png
How can I fix this?!!!
V W
@vw98075

With

bash kubectl-apply.sh -f

I get messages on services created without any error. I, however, can't see any of those services with

kubectl get pods

What do I do wrong?

Rick Poleshuck
@RickPoleshuck

I am curious about the choice of defaults for JDL. Typically, I modify the generated domain java class by adding the following to OneToMany relationships:

, cascade = CascadeType.PERSIST
@JsonManagedReference

Also, I frequently use a List rather than a Set.

Alejandro Matos
@amatosg
well, that's just a way to discard duplicates
procnet0
@procnet0
Hello, Is there someone who already experienced setting up SharedWorker on a 6.5.1 Jhipster monolithique generated App using worker-loader.
I ve got it Work in Dev mod but i can't understand how to bundle it correctly in production mod. I m aware that It's more a webpack problem than a Jhipster but as I am pretty new to webpack i don't want to broke my Jhipster generated configuration.
The only way i managed to get production compile is by excluding /\worker.ts$/ from the @ngtools/webpack modules and adding worker-load + ts-loader . But it seems that webpack bundle 2 different files and the worker generated only contain a webpack_require( ... the_other_file_with_my_source_code) and so it don't work ^^.
ItzEdgar
@ItzEdgar

Hello, I'm trying to run a microservices application. It's composed by 1 gateway and 1 microservice (as well as registry, keycloak, and an MSSQL database for each of the applications). When I run it all with "docker-compose up -d", it works well. But if I stop the microservice on docker and try to run it manually (either through IntelliJ or with .\mvnw commands - So far I've tried it with the flags -P-webapp and ./mvnw -Pprod and none worked), it's not working as expected.

The microservice is able to register on the registry, but whenever I choose an entity related to said microservice, it just gives me a blank page (on the console shows a 401 error) and logs out

If I'm missing any information that could help please tell me and I'll try to include it, it's kind of hard to explain it trough text
On the gateway I'm getting this error:
2021-03-01 12:48:34.986 WARN 1 --- [ XNIO-1 task-8] o.s.c.n.zuul.web.ZuulHandlerMapping : No routes found from RouteLocator

2021-03-01 12:48:41.011 WARN 1 --- [ XNIO-1 task-8] o.s.c.n.z.f.pre.PreDecorationFilter : No route found for uri: /services/gestorpedidos/api/pedido

2021-03-01 12:48:52.724 WARN 1 --- [ XNIO-1 task-3] o.z.problem.spring.common.AdviceTraits : Unauthorized: Full authentication is required to access this resource
ItzEdgar
@ItzEdgar
Btw when I run it with .\mvnw -Pprod it ends in error and doesn't run. When I run it with .\mvnw or .\mvnw -P-webapp it successfully compiles & runs, and registers in the registry. But I still can't add new entities
chess-equality
@chess-equality

Hi guys,

In GCP Kubernetes, I'm getting an UnknownHostException when my gateway tries to access my microservice. Where do I look to resolve this?

I also tried using prefer-ip-address: true but then I get a 401 Unauthorized.

buiphuking
@buiphuking_twitter
image.png
hi guys,
i have this error when i run: gradlew.bat -x webpack
a little help plz
Alejandro Matos
@amatosg
do the equivalent to mvn clean install
wole adetiba
@WoleAdetiba_twitter

I'm trying to generate war file running mvnw -Pprod package but i get BUILD FAILURE.

send me this error:

Hey @juanjocoto, were you able to get around this? I am having same issue

Rick Poleshuck
@RickPoleshuck
@WoleAdetiba_twitter , @juanjocoto , Did you modify the <packaging> tag in your pom? Did you change the spring-boot-starter-undertow dependency to provided? Did you update webpack.prod.js to include the path prefix? All mentioned in https://www.jhipster.tech/production/
wole adetiba
@WoleAdetiba_twitter
Hi @RickPoleshuck - Thanks for your input. Yes. I had checked the url before. I am building "JAR" so the step stated on the page is to do mvnw -Pprod package. I will try the "WAR" build if that will be successful.
Rick Poleshuck
@RickPoleshuck

Hi @RickPoleshuck - Thanks for your input. Yes. I had checked the url before. I am building "JAR" so the step stated on the page is to do mvnw -Pprod package. I will try the "WAR" build if that will be successful.

You are having a different problem than @juanjocoto. My biggest problem getting started was jumping in too quickly and skipping over the documentation.

Jun Huh
@junhuhdev

Hello I have an app deployed without a context path, routed to with context paths by the reverse proxy. When I upgraded to JHipster v6 I noticed that webpack configuration has changed. Basically to get it to work I had to modify

new BaseHrefWebpackPlugin({ baseHref: '/test/service/' }),

new HtmlWebpackPlugin({
            template: './src/main/webapp/index.html',
            chunks: ['vendors', 'polyfills', 'main', 'global'],
            chunksSortMode: 'manual',
            inject: 'body',
            base: '/test/service/'
        })

My question is since the context-path is set differently in app.properties, is there any way to propagate this property to the webpack config so it can set the base and baseHref dynamically?

duongaducit
@duongaducit
image.png
hello, my postgreSQL config in port 3307, can i change port default of postgreSQL when run jhipster?
Matt Raible
@mraible
Who's ready for v7?! We're working on it now...
Alejandro Matos
@amatosg
<3