Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Gordon Child
@gordolio
I'm just going to be fixing it in my own blueprint for the time being.
Gordon Child
@gordolio
Except that function (prepareFieldForTemplates) isn't able to be extended in a blueprint. Ugh.
Adrian Glez
@Adri-Glez

Anyone tried the last release of Jhipster 7.0.0?. It loks like don't work corretly. I create a empty gateway project with oauth2 keycloak authorization It starts without errors but the restricted area don’t works. I login to the admin user but after that the browser redirect to this url http://localhost:8098/login?error with this json error:

{
  "type" : "https://www.jhipster.tech/problem/problem-with-message",
  "title" : "Unauthorized",
  "status" : 401,
  "detail" : "Not Authenticated",
  "path" : "/login",
  "message" : "error.http.401"
}

. This is the yo-rc.json with the configuration that I choose :

{
  "generator-jhipster": {
    "blueprints": [],
    "otherModules": [],
    "applicationType": "gateway",
    "baseName": "testGatewayWeb",
    "jhipsterVersion": "7.0.0",
    "skipClient": false,
    "skipServer": false,
    "skipUserManagement": true,
    "skipCheckLengthOfIdentifier": false,
    "skipFakeData": false,
    "jhiPrefix": "jhi",
    "entitySuffix": "",
    "dtoSuffix": "DTO",
    "testFrameworks": ["cypress", "gatling", "cucumber"],
    "pages": [],
    "creationTimestamp": 1616514640129,
    "serviceDiscoveryType": "eureka",
    "reactive": true,
    "authenticationType": "oauth2",
    "packageName": "es.adrian",
    "serverPort": "8098",
    "cacheProvider": "no",
    "enableHibernateCache": false,
    "databaseType": "sql",
    "devDatabaseType": "h2Disk",
    "prodDatabaseType": "mysql",
    "buildTool": "maven",
    "serverSideOptions": [],
    "websocket": false,
    "searchEngine": false,
    "messageBroker": false,
    "enableSwaggerCodegen": false,
    "clientFramework": "angularX",
    "withAdminUi": true,
    "clientTheme": "none",
    "enableTranslation": true,
    "nativeLanguage": "en",
    "packageFolder": "es/adrian",
    "clientPackageManager": "npm",
    "clientThemeVariant": "",
    "languages": ["en", "es"]
  }
}
Anyone can help me to solve this problem?
Adrian Glez
@Adri-Glez
I create a bug with It anyway : jhipster/generator-jhipster#14445
olegtatsyun
@olegtatsyun
Hi everyone.
I have "An error has occurred :-(" issue instead of description when looking for my site after google search
3 replies
Does anybody faced with same ?
Fhasi Ben Sellam Mouad
@mouadFahsi
Hi everyone.
i need to use bitbucket pipelines to test and publish a jhipster monolith to heroku
does anybody had any luck with this?
1 reply
Konstantin Pribluda
@ko5tik
have problem running fresh app.yml generated from bleeding edge - "Host '172.18.0.2' is not allowed to connect to this MySQL server" Setting - MYSQL_ROOT_HOST=172.18.0.2 does not help. Anybody seen this?
olegtatsyun
@olegtatsyun
Fixed "An error has occurred :-(" !!!
I fixed it by forcing Google re-index my site. I used tool - Google search console.
Konstantin Pribluda
@ko5tik

have problem running fresh app.yml generated from bleeding edge - "Host '172.18.0.2' is not allowed to connect to this MySQL server" Setting - MYSQL_ROOT_HOST=172.18.0.2 does not help. Anybody seen this?

ok, git if fixed. as it turns out MYSQL_USER=root is wrong - removing it helped

nguyenthaiduy277@gmail.com
@MYuitsu
Sorry my English is pretty bad, But I'm having trouble getting the HA keycloak on kubernetes, when I increase the number of GATEWAY's PODs the app can't log in, the same problem happened when I increased the number of PODs of other business SERIVCEs.
Can anyone help me,please ?
Michał Matusiak
@michaelloo35
This message was deleted
1 reply
AMuravev
@AMuravev
I generate simple application via jhipster. I choice JWT token and H2 DB. In dev mode, I want to have access to the h2-console, but I get 500 error and nullPointExseption. What could be the problem? Also h2.console.enabled set true
java.lang.NullPointerException: null
        at io.undertow.servlet.spec.HttpServletRequestImpl.getHttpServletMapping(HttpServletRequestImpl.java:253)
        at javax.servlet.http.HttpServletRequestWrapper.getHttpServletMapping(HttpServletRequestWrapper.java:117)
        at javax.servlet.http.HttpServletRequestWrapper.getHttpServletMapping(HttpServletRequestWrapper.java:117)
        at org.springframework.web.util.UrlPathHelper$Servlet4Delegate.skipServletPathDetermination(UrlPathHelper.java:780)
        at org.springframework.web.util.UrlPathHelper.skipServletPathDetermination(UrlPathHelper.java:272)
        at org.springframework.web.util.UrlPathHelper.getLookupPathForRequest(UrlPathHelper.java:251)
        at org.springframework.web.util.UrlPathHelper.resolveAndCacheLookupPath(UrlPathHelper.java:200)
        at org.springframework.web.servlet.handler.AbstractHandlerMapping.initLookupPath(AbstractHandlerMapping.java:579)
        at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.getHandlerInternal(AbstractHandlerMethodMapping.java:373)
        at org.springframework.web.servlet.mvc.method.RequestMappingInfoHandlerMapping.getHandlerInternal(RequestMappingInfoHandlerMapping.java:123)
        at org.springframework.web.servlet.mvc.method.RequestMappingInfoHandlerMapping.getHandlerInternal(RequestMappingInfoHandlerMapping.java:66)
        at org.springframework.web.servlet.handler.AbstractHandlerMapping.getHandler(AbstractHandlerMapping.java:498)
        at org.springframework.web.servlet.DispatcherServlet.getHandler(DispatcherServlet.java:1254)
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1036)
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:962)
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
        at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
        ...
        at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
        at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:103)
        at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
        at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:327)
        at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:115)
        at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:81)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
        at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119)
        at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
        at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:126)
        at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:81)
        at org.springframework.security.web.FilterChain
4 replies
Hongxin
@zhx828
Hi guys, this question maybe asked before but I cannot find any information online. Does latest v7 support MySQL JSON data type? If not, is there another solution I can use? I'm thinking to use textblob then parse the JSON after getting the content from DB. Any suggestions? Thank you!
Konstantin Pribluda
@ko5tik

Hi guys, this question maybe asked before but I cannot find any information online. Does latest v7 support MySQL JSON data type? If not, is there another solution I can use? I'm thinking to use textblob then parse the JSON after getting the content from DB. Any suggestions? Thank you!

Did not found this, but integrating JSON BLOB into react app was pretty easy. My map editor viewer just received JSON string :
const MapEdit = ({ track, callback }) => {
// this function just parses JSON inside , points and center are now objects
const { points, center } = prepareTrack(track);

// initial values
const [myPoints, setPoints] = useState(points);
const [myCenter, setCenter] = useState(center);
const [selectedIndex, setSelectedIndex] = useState(undefined);

and passed result back via callback function:
// somewhere later at the appropriate place
savePointsCallback(JSON.stringify(myPoints));

And callback function itself:
const passThePoints = (data: string) => {
// just use generated setBlob on appropriate proerty name
props.setBlob('track', data, undefined);
};

Seethis in action: http://www.pribluda.de:8080/

4 replies
kaffel houssem
@kaffelmedhoussem:matrix.org
[m]
Hello guys i am newbie , i just wanna know how to redirect to another page after login with jihpster , i want to change redirection to page of an entity i made ?
1 reply
kaffel
@kaffelmedhoussem:matrix.org
[m]
i am using angular and i don t know how to redirect
3 replies
Vlad Mazin
@vmazin
With v7, cannot login into microservices gateway w/o DB - default admin/admin returns 401 Unauthorized. Here is json:
{
"generator-jhipster": {
"blueprints": [],
"otherModules": [],
"applicationType": "gateway",
"baseName": "egdbcgw",
"jhipsterVersion": "7.0.0",
"skipClient": false,
"skipServer": false,
"skipUserManagement": true,
"skipCheckLengthOfIdentifier": false,
"skipFakeData": false,
"jhiPrefix": "jhi",
"entitySuffix": "",
"dtoSuffix": "DTO",
"testFrameworks": [],
"pages": [],
"creationTimestamp": 1617142128017,
"serviceDiscoveryType": "eureka",
"reactive": true,
"authenticationType": "jwt",
"packageName": "com.aaa.bbb.ccc.gw",
"serverPort": "8090",
"cacheProvider": "no",
"enableHibernateCache": false,
"databaseType": "no",
"buildTool": "maven",
"serverSideOptions": [],
"websocket": false,
"searchEngine": false,
"messageBroker": false,
"enableSwaggerCodegen": false,
"clientFramework": "react",
"withAdminUi": true,
"clientTheme": "darkly",
"clientThemeVariant": "primary",
"enableTranslation": false,
"nativeLanguage": "en",
"packageFolder": "com/aaa/bbb/ccc/gw",
"jwtSecretKey": "XXXXXXXXXXXXXXXXXXXXXXXXX=",
"devDatabaseType": "no",
"prodDatabaseType": "no",
"clientPackageManager": "npm",
"languages": ["en"]
}
}
HaithemOtt
@HaithemOtt
@kaffelmedhoussem:matrix.org you can navigate after login success (angular) using this.router.navigate(['your route']); in login() method under src\main\webapp\app\shared\login
kaffel
@kaffelmedhoussem:matrix.org
[m]
@HaithemOtt: I changed
before
but it won t be changed
Ghost
@ghost~606575c26da037398478e429
jhipster 在已有的实体上加关联关系怎么搞 求教,自己研究了两星期还没好
1 reply
Jérôme
@JeromeRider

Hi, I'm having trouble building a project since latest 7.0 release.
After multiple tries, when I run mvnw install -DskipTests as I always did before, there is a conflict :

WARNING in DefinePlugin Conflicting values for 'process.env.NODE_ENV' 1 WARNING in child compilations (Use 'stats.children: true' resp. '--stats-children' for more details) webpack 5.26.3 compiled with 2 warnings in 24066 ms

Then when I import my JDL, there are another conflicts :

`Error: Cannot find module 'ajv/dist/compile/context'
Require stack:

  • C:.........\La cache d'art\La_cache_d'art_BACK\node_modules\ajv-formats\dist\limit.js
  • C:.........\La cache d'art\La_cache_d'art_BACK\node_modules\ajv-formats\dist\index.js
  • C:.........\La cache d'art\La_cache_d'art_BACK\node_modules\conf\dist\source\index.js
  • C:.........\La cache d'art\La_cache_d'art_BACK\node_modules\generator-jhipster\generators\statistics.js
  • C:.........\La cache d'art\La_cache_d'art_BACK\node_modules\generator-jhipster\generators\app\prompts.js
  • C:.........\La cache d'art\La_cache_d'art_BACK\node_modules\generator-jhipster\generators\app\index.js
  • C:.........\La cache d'art\La_cache_d'art_BACK\node_modules\yeoman-environment\lib\store.js
  • C:.........\La cache d'art\La_cache_d'art_BACK\node_modules\yeoman-environment\lib\environment.js
  • C:.........\La cache d'art\La_cache_d'art_BACK\node_modules\generator-jhipster\cli\environment-builder.js
  • C:.........\La cache d'art\La_cache_d'art_BACK\node_modules\generator-jhipster\cli\program.js
  • C:.........\La cache d'art\La_cache_d'art_BACK\node_modules\generator-jhipster\cli\cli.js
  • C:......\AppData\Roaming\npm\node_modules\generator-jhipster\cli\jhipster.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
    at Function.Module._load (internal/modules/cjs/loader.js:725:27)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (C:\Users\jerome\eclipse-workspace\La cache d'art\La_cache_d'art_BACK\node_modules\ajv-formats\dist\limit.js:4:19)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19) {
    code: 'MODULE_NOT_FOUND'`

What I already tried to overcome this :

  • Build the project on older version, 6.9 per exemple -> doesn't work either

I figured out there are a lot of issues reported because of this release so I tried solutions from this thread jhipster/generator-jhipster#14492, but none worked...
I'm personnally out of solutions and can't build my project so far. Is there a crew working on it ? Are there solutions to build a project before a fix ?

Thank yall !

3 replies
kaffel
@kaffelmedhoussem:matrix.org
[m]
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)
);
}
Tony Trung Thanh Vo
@tonytvo
generate the application with jhipster 7.0.0 and I can't start microservice application with ./gradlew
9 replies
Ghost
@ghost~606575c26da037398478e429
jhipster 怎样升级最新版本
kaffel
@kaffelmedhoussem:matrix.org
[m]
run your application at the same time
Tony Trung Thanh Vo
@tonytvo
image.png
image.png
kaffel
@kaffelmedhoussem:matrix.org
[m]
Can you secreen the cmd ?
Tony Trung Thanh Vo
@tonytvo
image.png
actually, I think it's working now ->
much appreciated for your help
kaffel
@kaffelmedhoussem:matrix.org
[m]
Anytime 😊
Tony Trung Thanh Vo
@tonytvo
actually, now I ran into the issue with jacocoreport
image.png
looks like for some reasons it doesn't generate cucumberTest.exec
Tony Trung Thanh Vo
@tonytvo
this seems to fix it -> gradle/gradle#5898
jacocoTestReport {
getExecutionData().setFrom(fileTree(buildDir).include("/jacoco/*.exec"))
}
alex440440
@alex440440
How do I get the updated version that includes fix for the issue
jhipster/generator-jhipster#14492
I see that pull request was merged 2 days ago but if I run
npm install -g generator-jhipster
the version is 7.0.0
2 replies
Knowings R&D
@knowings
Hi all, noob question: Why original URL is lost on a JHipster stack using Keycloak ? If anyone has a clue ?
1 reply
udarapathirage
@udarapathirage
How to check for authority in a submenu. ex. App.tsx
HaithemOtt
@HaithemOtt

@kaffelmedhoussem:matrix.org i remember i did some thing similar in the past and it worked perfectly this is an example, i hope will help you : 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(['your-route']);
    } 
  }    
});

}

don't forget to handle a null account exception
kaffel
@kaffelmedhoussem:matrix.org
[m]
@HaithemOtt Thanks i ll try it
Guys i faced a new problem