Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Alejandro Matos
@amatosg
you use kubernetes :)
Daniel LaFlamme
@dlaflamme
as a monolith, or restructured as a jhipster microservice?
V W
@vw98075
It is not the first time that I get out of memory during the test ("./mvnw verify"). All of near 90 tests fails. After some online search, I learn that JAVA_OPTS setting is needed. But I haven't figured out how to set it on MacBook. Any other solutions?
Heavenstar
@heavenstar627
Hi
I want to build log in page (customized) with jhipster, and also I have a plan to change all sites ( java spring + jsp) to react..
How do I start this work??
John Poole
@johnpoole
Is there a way to remove an entity?
Alejandro Matos
@amatosg
@dlaflamme it can also be used with monolithic projects
@vw98075 I had this problem before. I had to create another project and migrate my code :(
@johnpoole I would delete the backend entity and dto and then solve issues, then remove the frontend entity and also resolve
V W
@vw98075
@amatosg That was a backup solution I had in mind. Does your situation have something to do with H2?
Alejandro Matos
@amatosg
sorry I never use H2, I always use the same db has prod
V W
@vw98075
I still encounter the java heap space error after I run the test in a new project folder.
V W
@vw98075
In the CD, the same error occurs. So, increasing my local memory doesn't solve the problem.
Alejandro Matos
@amatosg
how much ram do you have?
V W
@vw98075
I saw about 4G memory usage increase during the integration test. I set Xmx to 8G in jvm.config and .zshrc without luck.
kaffel
@kaffelmedhoussem:matrix.org
[m]
Hello guys I am trying to create a new query, How can I test my queries with jhipster ?
"SELECT SUM(entity.software.price) FROM sales entity AS sales entity JOIN software entity AS software entity ON entity.software.id= entity.sales.software_id"
kaffel
@kaffelmedhoussem:matrix.org
[m]
SELECT SUM(software.price) FROM sales AS sales JOIN software AS software ON software.id= sales.software_id
this is my query with sql , I don t know how to make it with h2
Alejandro Matos
@amatosg
"SELECT SUM(entity.software.price) FROM sales entity AS sales entity JOIN software entity AS software entity ON entity.software.id= entity.sales.software_id" this won't work as "sales entity" is not valid
2 replies
are you querying from Hibernate or is it a native query?
kaffel
@kaffelmedhoussem:matrix.org
[m]
hibernate
kaffel
@kaffelmedhoussem:matrix.org
[m]
:point_up: Edit: @amatosg: hibernate
Angelo Tricarico
@pcrevenge_twitter
Hello guys, could somebody please give a look to this problem I'm having with Jhipster compilation? https://stackoverflow.com/questions/69515255/jhipster-problem-with-filer-attempt-to-recreate-a-file-for-type-during-comp
Alejandro Matos
@amatosg
try mvn clean install -DskipTests
zackzack02
@zackzack02
Hello all,
I would like to directly execute SQL statement in my app, so I use DriverManager.getConnection("jdbc:h2:file:./target/h2db/db/myApp;USER=MyApp").createStatement() in order to get a direct SQL connection to the H2 database (Bypassing JPA).
Since, the app will use a Mysql database when in production, I would like to write something that will chose automatically the current database url.
So how to have access to the spring boot connection property defined and used in the JHipster generated source?
emilpaw
@emilpaw
Hey, I extended a service method to create the entity and also some directly associated entities. Now I want to add error handling to this method. That means all the .save() calls I did in this method should be rolled back if there is an exception thrown along the way. For this I used the @Transcational annotation. This seems to work,but in my tests the repositories are not reset when an error occurs. I think it's because they are Transactional too. Is there a way to get around this issue?
Alejandro Matos
@amatosg
@zackzack02 you want to run an SQL query? Why don't you use JpaRepsotiroy?
5 replies
@emilpaw try adding rollback=Exception.class to the @Transactional annotation
1 reply
Noah Wöhler
@NoahWoehler_twitter
Hi, can I post a call for participants in an interview study on open source projects here? If any mod wants more details via DM first, then I'm happy to oblige :)
Alejandro Matos
@amatosg
just post it :)
mabujaber
@mabujaber
Hello everyone
Is there any way to convert idl files to pdf?
Noah Wöhler
@NoahWoehler_twitter
Sure, I wasn't sure whether this falls under advertising. We are looking for open source contributors who are willing to talk to us about how security and trust are handled within their projects' communities. This is the landing page with more info: https://research.teamusec.de/2021-interviews-oss/
Daniel LaFlamme
@dlaflamme
I want to have a field in my entities that is a "user payload" and that wont be interpreted by the frontend or backend--essentially i want it to just be stored and passed through as a string. having a hard time getting this working if that string is a JSON blob, because the code always wants to be able to serialize/deserialize it automatically. Has anyone done this before and gotten it to work?
Alejandro Matos
@amatosg
isn't there an annotation called @JsonIgnore? I'm not sure though
khaledMpwin
@khaledMpwin
hey, i have a chat application work fine in local, but when i deploy it in heroku i make (/sockjs-node/info?t=1515290831331 ) , and any messege send ;
i actuel use
stompjs
sockjs-client
jquery
how can i fix that?
V W
@vw98075
I just notice that 7.3.1 is released (today?). Must be a critical bug fix in the minor release so soon. After running "npm update -g generator-jhipster", The command "jhipster --version" still lyeilds 7.3.0. Why?
Never mind, I see 7.3.1 when I run "jhipster upgrate".
V W
@vw98075
I don't know whether it is just me or not. I try to upgrade the JHipster version of my project to the latest 7.3.1 The auto upgrading command takes a long time. I got a time-out error with the VPN on. Now, I turn off VPN and it stays on core-js for about a half-hour and still counting. Shall I try a manual upgrade instead?
zackzack02
@zackzack02
Hello Guys, is there any updated tutorial to show how to use Let's Encrypt when deploying to gcloud Kubenete, for Jhipster monolithic application? This one (https://maximilian-boehm.com/hp2121/Create-a-Java-Keystore-JKS-from-Let-s-Encrypt-Certificates.htm) that I found in the prod yaml file is not accessible anymore ...
3 replies
Jason Millard
@jsm174
Messing around with docker (keycloak / jhipster-control-center) for the first time since v6 . I launched them both via combined docker-compose (to make sure they are on 100% on the same "network"). I even add a sleep for 60s. Control center always fails to start: Unable to resolve Configuration with the provided Issuer of "http://keycloak:9080/auth/realms/jhipster" I added to hosts file, and keycloak is running fine.
Jason Millard
@jsm174

I just tried to connect to the container before it shuts down:

docker ps
CONTAINER ID   IMAGE                                     COMMAND                   CREATED         STATUS         PORTS                                                                                                NAMES
7970d9c8fa91   jhipster/jhipster-control-center:v0.5.0   "/bin/sh -c 'echo \"`…"   5 seconds ago   Up 4 seconds   127.0.0.1:7419->7419/tcp                                                                             docker-jhipster-control-center-1
79d813a80176   jboss/keycloak:15.0.2                     "/opt/jboss/tools/do…"    6 seconds ago   Up 5 seconds   8080/tcp, 127.0.0.1:9080->9080/tcp, 127.0.0.1:9443->9443/tcp, 8443/tcp, 127.0.0.1:10990->10990/tcp   docker-keycloak-1
➜  ~ docker exec -it 7970d9c8fa91  /bin/bash
root@7970d9c8fa91:/# curl http://keycloak:9080/auth/realms/jhipster
{"realm":"jhipster","public_key":"....","token-service":"http://keycloak:9080/auth/realms/jhipster/protocol/openid-connect","account-service":"http://keycloak:9080/auth/realms/jhipster/account","tokens-not-before":0}
root@7970d9c8fa91:/#

so the container can see it

I just created an issue: jhipster/jhipster-control-center#174
V W
@vw98075
After manually upgrading my project, I get a "missing table" error. Not sure which file I messed up. Shall I rerun the upgrading or fix a file?
kaffelmedhoussem67
@kaffelmedhoussem67
I am trying to display replies to each complaint. this is my SQL query : @Query("SELECT * FROM repliesclaim entity WHERE entity.claim_id = :id") Flux<Repliesclaim> findByClaim(Long id); but I got this error : : No converter found capable of converting from type [io.r2dbc.h2.codecs.ValueLobClob] to type [java.lang.String] for this entity : Could not read property @org.springframework.data.relational.core.mapping.Column(value="jhi_describe")private java.lang.String com.crm.developer.gateway.domain.Repliesclaim.describe from column jhi_describe!
Alejandro Matos
@amatosg
@vw98075 try running mvn liquibase:diff