Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
denisyao1
@denisyao1
node --max_old_space_size=4096 node_modules/webpack/bin/webpack.js "--config" "webpack/webpack.dev.js" "--env.stats=minimal"
[INFO] FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
I need your help.
Thanks.
Peter E Olsen III
@hepaestus
@denisyao1 Did it do anything at all or just stop and throw that error?
Jon Ruddell
@ruddell
@denisyao1 Have you tried increasing the max_old_space_size value (in package.json)?
Albert Iordache
@Abi79
Hey guys, first time using JHipster. I am running into an odd error... I generated a micro-service, and I am trying to apply a JDL to it. Getting...
Error while parsing applications and entities from the JDL TypeError: Cannot set property 'clientRootFolder' of undefined
From what I see in jhipster/jhipster-core#252 , there already is a default clientRootFolder value. Should I redefine it in the JDL ?
Albert Iordache
@Abi79
Nevermind this. I exported my existing app to a JDL, as per jhipster/jhipster-core#404, and then added the new entities to that JDL. Seems to have fixed the issue
nomuna
@nomuna
Hi everyone... I have a microservice with h2 in memory db and some rest endpoints. We are at the start phase so we don't have any security etc. I see the swagger api as raw json. Is there any way to integrate the swagger ui for the microservice as well?
nomuna
@nomuna
I have no gateway generated and have no plans to do so.
Szabolcs Kelemen
@SzabKel
Hello, is it possible to map the @JoinColumn with JDL? I want my entity to keep the foreign key column as a field. Like If I have a Source and Destination table using a one to many relationship and the Destination table would have the source_id (so source.id = destination.source_id), I would like the Destination table to have a field in Java called sourceId (and not just in db).
denisyao1
@denisyao1
@hepaestus just throw error and stop.
@ruddell No
Jon Ruddell
@ruddell
@SzabKel I don't think that is possible with JDL, you would have to make that change manually.
Szabolcs Kelemen
@SzabKel
@ruddell Sad, I just can't use the generated code side by side if I have to change the domain models
Jon Ruddell
@ruddell
@nomuna If you use the JHipster Registry, you can use the Swagger UI there to communicate with your microservice's APIs. It will load the Swagger JSON from the microservice
Gaurav Wadhwani
@im_GauravW_twitter

Hi
I updated an entity by adding a column. The files were generated but the database changes were not reflected.

As mentioned here
A new “change log” is created in your src/main/resources/config/liquibase/changelog directory, and has been automatically added to your src/main/resources/config/liquibase/master.xml file

I can see the the entity file got updated but it was already existing in master.xml

hence the db didnt update
Nicolas Kasprzyk
@coloco21
@im_GauravW_twitter do you have a checksum error when launching the app, at the liquibase stage?
if so, you can run ./mvnw liquibase:clearCheckSums + rebuild your database if it's persistent and it should work
btw guys, the JDL Studio app doesn't support Enums with values, is it normal ?
Gaurav Wadhwani
@im_GauravW_twitter
@coloco21 yes. I have checksum validations. I did liquibase:clearCheckSums but they say its nto recommended. How do we rebuild the database?
its Disk based H2
Łukasz Kurpiewski
@ecosse3
Anyone know how to generate documentation with jHipster? Or do you recommend some tools to angular/spring boot?
Gaurav Wadhwani
@im_GauravW_twitter
Even if i follow 2nd method
doing this -> mvnw liquibase:diff , generated a changelog file which doesnt have the changes for the entity
Gaurav Wadhwani
@im_GauravW_twitter

So it worked with the second method.

Modify your JPA entity (add a field, a relationship, etc.)
Compile your application (this works on the compiled Java code, so don’t forget to compile!)
Run ./mvnw liquibase:diff (or ./mvnw compile liquibase:diff to compile before)
A new “change log” is created in your src/main/resources/config/liquibase/changelog directory
Review this change log and add it to your src/main/resources/config/liquibase/master.xml file, so it is applied the next time you run your application

In point 2 , I ran "mvnw" command, and it gave errors. So i used "mvn package" to just build.
The application started this time with just one error in changelog - it said a sequence already existed.

Im concerned how it will behave in Production where it is deployed on PostgreSQL on Heroku

Jon Ruddell
@ruddell
@im_GauravW_twitter Here's what I recommend to avoid liquibase checksum errors when updating existing entities https://stackoverflow.com/a/53000074/3737815
Gaurav Wadhwani
@im_GauravW_twitter

Thanks @ruddell
I was reading the same thread, didnt realize it was answered by you.

I did the same thing except the 2nd step.

Artem
@kacetal
I have one error with jhipster react aplication in the file src/main/webapp/app/modules/login/login.tsx(26,11):
TS2339: Property 'from' does not exist on type '{} | { from: { pathname: string; search: string; }; }'.
const { location, isAuthenticated } = props;
const { from } = location.state || { from: { pathname: '/', search: location.search } };
this's code generated by default but why it's doesn't work?
afnanshirol
@afnanshirol

Hello Team,
I am trying to generate api-client code from swagger.yml file using 'jhipster openapi-client' command. I can see that it is generating feign client code . Is there any way to generate spring controller which return mock response from swagger.yml something like below code :

@Controller
public class MyController implements DefaultApi {

public ResponseEntity<Object> offers(){
String accept = request.getHeader("Accept");
if (accept != null && accept.contains("application/json")) {
try {
return new ResponseEntity<MyObject>(objectMapper.readValue("\"{\"status\": \"ok\"}\"", MyObject.class), HttpStatus.NOT_IMPLEMENTED);
} catch (IOException e) {
log.error("Couldn't serialize response for content type application/json", e);
return new ResponseEntity<MyObject>(HttpStatus.INTERNAL_SERVER_ERROR);
}
}
return new ResponseEntity<MyObject>(HttpStatus.NOT_IMPLEMENTED);
}

Has any used such thing or know how to do it.
Thanks

Albert Iordache
@Abi79
@kacetal Exact same thing happening to me in login.tsx. In my case I am generating a gateway with a React UI and JWT login.
Artem
@kacetal
Me too, react with jwt
Albert Iordache
@Abi79
Have you filed an issue? I can do it tomorrow if you haven't
Artem
@kacetal
I think it's a bug
I didn't
Artem
@kacetal
Can I resolved
Albert Iordache
@Abi79
Awesome, thank you @ruddell!
Artem
@kacetal
Thank you
Peter E Olsen III
@hepaestus
@ruddel Still having upgrade trouble. Here is a gist of the output: https://gist.github.com/hepaestus/a9da412cc4bee8b5bc6ca3dfde032fd1
Peter E Olsen III
@hepaestus
Looks like it removes the files then does a git status, sees all the deleted files, and then fails because there are changes. :(
Peter E Olsen III
@hepaestus
@ruddel Looks like it has something to do with the multitenancy blueprint not being up to date.
Bobby King
@BLKingLLC
When I sign-in with KeyCloak I get redirected back to the app but i'm not signed in... I have to click the sign-in button again. The second time doesn't direct me to keycloak but it does redirect me to the logged-in home page. Any idea what config I have that's wrong? This is using the keycloak.yml that came with the generator as well as my standalone production keycloak server.
Jon Ruddell
@ruddell
@BLKingLLC What version of JHipster? Instead of clicking login the second time, try refreshing. Are you then logged in? Or is the second click to login required?
Bobby King
@BLKingLLC
@ruddell I'm on 6.4.1 and a refresh doesn't work. It has to be a second click.
Jon Ruddell
@ruddell
@hepaestus I don't understand how git status shows no changes, but when JHipster runs git status --porcelain it shows changes. Might have something to do with how the blueprint version is undefined New generator-jhipster-multitenancy version found: undefined . I haven't tried the upgrade generator with blueprints involved