Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Otik Indriyana
@otik1_gitlab
hi, any refrence to make OTP in jhipster?
thanks
Faarax maxamuud Cabdi
@Farah-Mohamoud
Hello There!
Konstantin Pribluda
@ko5tik
What would be correct way to create relation to User entity in JDL - I would like to associate user (also currently logged ) with some objects
Ryan-ZA
@Ryan-ZA
Hi - hit an issue when updating from jhipster 6.10 to jhipster 7 - I'm using the aws elasticbeanstalk generator 'jhipster aws' - when I upgrade and then deploy, I'm just getting 503 error
have the ports changed or do I need to do some other kind of elasticbeanstalk config?
Carlos Garcés
@CGarces
@Ryan-ZA I'm not sure if AWS generators has been tested on hjipster 7. I'm trying to use aws-containers on monolitic and it not works. (also see jhipster/generator-jhipster#14264)
Ryan-ZA
@Ryan-ZA
Ah... damn... I guess I need to find some other way to deploy then
Ryan-ZA
@Ryan-ZA
is there an easy alternative for deploying to AWS with existing postgres db?
Carlos Garcés
@CGarces
No Idea. I'm still trying to made aws-containers work. Check https://build-first-devops-ecs.workshop.aws/monolithapp.html to get some ideas about deploy jhipster without AWS generators
It's very frustrating. aws-contaniers no longer ask for DDBB password during the setup and I don't know why
Carlos Garcés
@CGarces
Imposible, I can't make it work.
2021-04-13T16:35:24.802922Z 10 [Note] Access denied for user 'demo'@'10.0.xx.xxx' (using password: NO)
2021-04-13T16:36:27.992500Z 11 [Note] Access denied for user 'demo'@'10.0.xx.xxx' (using password: NO)
It's not passing the password to the DDBB.
I get a 503 like @Ryan-ZA becouse the application is trying to restart again and again.
Ryan-ZA
@Ryan-ZA

trying to deploy using other means, getting this warning though even for dev build :

WARNING in DefinePlugin
Conflicting values for 'process.env.NODE_ENV'

unsure what causes that, I only see it defined once

1 reply
Karsten Silz
@ksilz
My InfoQ article about the JHipster 7.0 release was published this morning: https://www.infoq.com/news/2021/04/jhipster-java-app-generator/
Musa Aliyev
@klaudi007

Hi,

I have issue like that (Current jhipster version 7.0.0)

java.lang.IllegalArgumentException: Unable to serialize claims object to json: Unable to serialize object: Java 8 date/time type `java.time.Instant` not supported by default: add Module "com.fasterxml.jackson.
datatype:jackson-datatype-jsr310" to enable handling (through reference chain: io.jsonwebtoken.impl.DefaultClaims["subject"]->com.store.service.dto.SysUserDTO2["createdOn"])
        at io.jsonwebtoken.impl.DefaultJwtBuilder.compact(DefaultJwtBuilder.java:338)
  1. checked with default - JacksonConfiguration
  2. AdminCloudApp - with configuring ObjectMapper
  3. Annotation oveer Instant type
  4. application-dev.yml - config file (I can't find right configuration to add Instant serilizer on config file)
  5. checked with java version 8/9/11/15,

How to solve issue?

kaffel
@kaffelmedhoussem:matrix.org
[m]
@HaithemOtt: I make the changes but it dosen t work
By the way guys , I want to redirect to another page after login and I don t know how to do it , i made some changes but it dosen t work . this is the code . any suggestions please
Carlos Garcés
@CGarces
@kaffelmedhoussem:matrix.org redirect after login? in which frontend? angular? See src\main\webapp\app\login\login.component.ts login function.
kaffel
@kaffelmedhoussem:matrix.org
[m]
@CGarces: Angular yeah i made some changes

login(): void {
this.loginService
.login({
username: this.loginForm.get('username')!.value,
password: this.loginForm.get('password')!.value,
rememberMe: this.loginForm.get('rememberMe')!.value,
})
.subscribe(
() => {
this.authenticationError = false;
this.activeModal.close();
if (
this.router.url === '/account/register' ||
this.router.url.startsWith('/account/activate') ||
this.router.url.startsWith('/account/reset/')
) {
this.router.navigate(['/leads']);
}
},
() => (this.authenticationError = true)
);

// get user account
this.authSubscription = this.accountService.getAuthenticationState().subscribe(account => {
  this.account = account;
  if (this.account) {
    this.userRole = this.account.authorities[0];
    if (this.userRole === 'ROLE_ADMIN') {
      this.router.navigate(['/leads']);
    }
  }
});

}

Carlos Garcés
@CGarces
@kaffelmedhoussem:matrix.org So where is the problem?, looks like a valid code for me...
kaffel
@kaffelmedhoussem:matrix.org
[m]
yeah but it dosen t work
i don t know what is the problem
Carlos Garcés
@CGarces
Maybe you have a problem with the /leads route, not with the code, /leads exists?
My current code:
  login(): void {
    this.loginService
      .login({
        username: this.loginForm.get('username')!.value,
        password: this.loginForm.get('password')!.value,
        rememberMe: this.loginForm.get('rememberMe')!.value,
      })
      .subscribe(
        acount => {
          this.authenticationError = false;
          if (!this.router.getCurrentNavigation()) {
            // There were no routing during login (eg from navigationToStoredUrl)
            this.router.navigate(['']);
          }
          if (acount?.authorities.includes('ROLE_USER') && !acount.authorities.includes('ROLE_ADMIN')) {
            this.router.navigate(['/foo-bar']);
          }
        },
        () => (this.authenticationError = true)
      );
  }
Use .includes('ROLE_ADMIN') instead of evaluate only the firsts element.
kaffel
@kaffelmedhoussem:matrix.org
[m]
actually my code works but in a specific way like when i log from my home page it dosent work but when i log from register page it works
i got this result
but when i log from register page
it works now ...
kaffel
@kaffelmedhoussem:matrix.org
[m]
@CGarces Thank you bro it works
i just add this.activeModal.close();
kaffel
@kaffelmedhoussem:matrix.org
[m]
to make it work perfectly
Pablo
@PabloGancharov
Hello, can somebody point me some documentation about using a mapper inside another mapper?
Thanks!
Manoj Deb
@manojdeb922_gitlab
I am trying to use filter option, not working for me. I have changed the entity by setting service to serviceClass or serviceImpl from no, and jpaMetamodelFiltering to trueupdate UNDER .jhipster folder. After re-generate with jhipster entity <entity name>. It re creates the json file and override jpaMetamodelFiltering . ALso in the console I see warning message "Not compatible with jpaMetamodelFiltering, disabling" ... Any thoughts?
Lucas Bracher
@lucasbracher
Hi there! I'm pretty new to jhipster, and I got a project from another developer that gave up on developing this project.
So I went through the basic documentation, I installed generator-jhipster, yo, npm install, and when I issued the command ./mvnw I got this error message after a long time: https://dpaste.org/aWXU
What am I missing? Could you help me on it?
Thanks a lot!
John Poole
@jdpoole_gitlab
@lucasbracher If you installed the newest version it's probably incompatible with that project's version. You could install the version they used to get it running, but long term you'll want to upgrade to the new one.
Lucas Bracher
@lucasbracher
@jdpoole_gitlab I discovered what happened... sql script that installed the db named it on minuscules, while the code expected it in CamelCase... it was simple! Thanks! :)
Konstantin Pribluda
@ko5tik
Are there blueprints to generate client libraries for microservices?
Kodis Babu
@kodisj_twitter
Hi guys, can i run the react only build (--skip-server) using s3 ?
1 reply
rbill
@rbill
Hi everyone, I want to create a unidirectional ManyToMany-relationship with JDL, but it complains that I have to set both field names. However, while I want that it is a ManyToMany relationship in the Database (i.e. a table), I want that it can only be accessed/managed from one side. Is there any way to do that?
Lucas Bracher
@lucasbracher
Hello! I'm trying to fix a third-party developed application whose backend runs on jhipster and the frontend runs on ReactJS.
I see package.json on frontend that has the entry "proxy": "http://localhost:8080" that points to jhipster, but when I try to authenticate on frontend (´http://localhost:3000´), browser presents an error 404. I don't know if I need to solve it on backend or frontend. Anybody had the same issue?
Rutuja
@RtzS

Hello
I am trying to dockerize jhipster application but every time when I execute "mvnw package -Pprod verify jib:dockerBuild" build get failed with some npm error.

[INFO] node_modules/jest-diff/build/printDiffs.d.ts(8,13): error TS1005: '=' expected.
[INFO] node_modules/jest-diff/build/printDiffs.d.ts(8,57): error TS1005: ';' expected.
[INFO]
[ERROR] npm ERR! A complete log of this run can be found in:
[ERROR] npm ERR! C:\Users\rswami\AppData\Roaming\npm-cache_logs\2021-04-21T09_48_33_879Z-debug.log
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:30 min
[INFO] Finished at: 2021-04-21T15:18:35+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.7.6:npm (webpack build prod) on project test-app: Failed to run task: 'npm run webpack:prod' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 2 (Exit value: 2) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Rutuja
@RtzS
Hi All, I am new to Jhipster and using latest Jhipster version for my angular application. But observed Dockerfile is not created in docker folder. Now I want to dockerize my application but I am not aware how to do this. Can any one please guide me on this.
Thankyou in advance:)
kaffel
@kaffelmedhoussem:matrix.org
[m]
this will help you
Guys i want to add sidebar to main componenet any suggestion how to make this happen ?
2 replies