Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Tibor Strausz
@tibistibi
yes it worked
rm package-lock.json
rm -rf node_modules
npm i
nice
Tibor Strausz
@tibistibi
one more strange thing is that from a shared component i made i link to interfaces from the generated jhipster model. this worked fine but after the upgrade i get following warning:
[INFO] WARNING in ./src/main/webapp/app/shared/question/question.component.ts 60:87-96
[INFO] "export 'IQuestion' was not found in 'app/shared/model/question.model'
i use IQuestion in otherplaces fine. I changed it to using the class Question and that removed the warnings... strange though
Tibor Strausz
@tibistibi

@ruddell i would like to give feedback on the upgrade, not sure how to do it, i guess you are close to the commiters :)

with this upgrade the path of fake data changed, which is a minor thing. but what happens is that the liquibase files need a change.
the way liquibase works is that it keeps track of files it has run and hash them. so changing old files is not possible.
so now this minor change gets into a problem. if i want to recreate my local db i need to change this url but if I do my production base will not work and liquibase will complain that there has been made changes.

Tibor Strausz
@tibistibi

this is the error message of liquibase:
Liquibase could not start correctly, your database is NOT ready: Validation Failed

changing all hash codes by hand is the easiest option i think

fahmimrabti
@fahmimrabti10
@ruddell I used the blueprint but it generated a lot of errors
Michelle Santana
@michellelsantana_gitlab
Hi, is it possible to change the in memory database to a mysql database after the JHipster app was already configured? If so can anyone point me a tutorial?
Tibor Strausz
@tibistibi
you can just change the applicatoin-dev.yml
this is with maria db:
    type: com.zaxxer.hikari.HikariDataSource
    url: jdbc:mariadb://localhost:3306/deeldocent?useLegacyDatetimeCode=false&serverTimezone=UTC
    username: dedo
if you want it to be also used when upgrading jhipster you should change .yo-rc.json file
Michelle Santana
@michellelsantana_gitlab

Well we tried your first option, but got ```ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.cache.spi.RegionFactory]
2019-09-05 14:58:07.610 WARN 10406 --- [arch-Executor-1] com.zaxxer.hikari.pool.ProxyConnection : HikariPool-1 - Connection com.mysql.jdbc.JDBC4Connection@11bc7b20 marked as broken because of SQLSTATE(08S01), ErrorCode(0)

com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet successfully received from the server was 8 milliseconds ago. The last packet sent successfully to the server was 7 milliseconds ago.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)```

DaiNiu
@niudai
Hey developers, why jhipster choose undertow as the default web container instead of tomcat or jetty? What's the consideration? Just ask, undertow is ok and I'm happy with it.
Alejandro Matos
@amatosg
is it possible to dinamically change the theme?
fahmimrabti
@fahmimrabti10
Is there anyone who has successfully created an application with generator-jhipster-vuejs and jhipster 6.2?
Nico Flaig
@nflaig

short questions in regards to https://www.jhipster.tech/using-uaa/

how are the access tokens checked when a resource server is called? Does it just check the signature and expiration or is there an additional check against a blacklist e.g. managed with redis for example?

Mart Sõmermaa
@mrts

Hello! I get the infamous "The JDL object and the database type are both mandatory." error while importing JDL into a project generated with Kotlin and Vue.js blueprints. I did a console.log in entity_parser.js in the place where the error occurs and other information is present, but DB type is indeed missing:

INFO! The JDL is being parsed.
{ jdlObject:
   JDLObject {
     applications: {},
     deployments: {},
     entities:
      { Bin: [JDLEntity], BinSession: [JDLEntity], User: [JDLEntity] },
     enums: JDLEnums { enums: [Map] },
     relationships: JDLRelationships { relationships: [Object] },
     options: JDLOptions { options: [Object], optionSize: 3 } },
  applicationType: 'monolith',
  databaseType: undefined }
Error: The JDL object and the database type are both mandatory.

Before running the import, I generated the application and generation seemed to succeed, the application runs without errors and I can log in.

Mart Sõmermaa
@mrts
Anyhow, I was able to work around the problem by adding application configuration directly into JDL and generating application fully from JDL, so case closed (however, I'm concerned that this may affect others)
Alejandro Matos
@amatosg
you don't need to add the app config in the jdl when importing new entities
Alejandro Matos
@amatosg
I'm getting TransientPropertyValueException: object references an unsaved transient instance - save the transient instance before flushing on a @OneToOne relationship, any ideas why? I don't want to save the reference (it's actually null)
Michael Kofman
@mishkaechoes
Hey folks. I'm taking jhipster (khipster w/ react) for a spin for the first time and while the spring/java side of things makes a lot of sense the frontend feels a bit overwhelming. I've read https://www.jhipster.tech/using-react/ but could really benefit from additional guidance via blog posts or video tutorials. Can anyone point me in the right direction that address the current* implementation with react?
samiTab
@samiTab
Hello guys,
I am actually struggling to export JDL model using jhipster 6, the command line outpot of 'jhipster export-jdl my-model.jdl' report that the export operation terminated successfuly! But no jdl file is generted
does any one faced the same problem before, or have any clue to fix it ?
thank you guys in advance
Jon Ruddell
@ruddell
@samiTab Check the directory for other JDL files, when I run that command in a project generated with v6.2.0, the JDL is exported into app.jdl at the project root
Laurent Kafka M.
@Fakau
Hello, i am using jhipster 5, i tried to using smtp in my app but there is a bad credential exception email or password incorrect. I use a correct password and a coreect email. I need your help please
Alejandro Matos
@amatosg
check that the ports are correct
Laurent Kafka M.
@Fakau
I use the port 587 and the server return a bad credential exception
Jon Ruddell
@ruddell
@Fakau What service are you using for sending mail? This tip has the required config for several providers
ChipchipLovely
@haxuanlac_gitlab
I want send file in feign client in jhiptster (using @AuthorizedUserFeignClient).Please tell me solution.Many thanks
Bobby King
@BLKingLLC
@mishkaechoes Try getting a react course from Udemy;
Johannes Weiß
@dependencyinjection81
Hi guys. I am trying the entire Day to generate a simple entity relation with jdl studio and import it. But stuck on the logic itself and there is no matching example wich I could customize. A User can buy many courses and a course itself can have many users that are subscribed to them. So is this a simple manyToMany relationship or should I introduce a third entity like order for that task? Any Ideas are welcome:-)
Alejandro Matos
@amatosg
@ManyToMany is the right way to do it :)
Mule52
@Mule52
If I am using Keycloak MySQL standalone and JHipster together, should my keycloak.USER_ENTITY.ID be the same as my jhipsterdb.jhi_user.id? When I create a new user in the app (register them), it uses Keycloak to create the user and I can see it in the keycloak.USER_ENTITY table. Jhipster will sync that user up so that new user gets added to jhipsterdb.jhi_user, however, I do see users in jhipsterdb.jhi_user that have different GUID ID's than that is in keycloak.USER_ENTITY. Should I try to clean these up and keep them the same? I am asking because I am adding a user_extra table and I was thinking I needed a foreign key to jhi_user and that is when I noticed these IDs are not the same. Is this a good practice to keep them the same or does it not matter? Thanks.
Alejandro Matos
@amatosg
I’m doing some mods to have one sequence for each entity, but I’m getting this error: Non-resolvable import POM: Failure to find io.github.jhipster:jhipster-dependencies:pom:3.0.5-SNAPSHOT in http://oss.sonatype.org/content/repositories/snapshots was cached in the local repository
any idea why?
it’s complaining that I haven’t specified the dependency version
Alejandro Matos
@amatosg
oh I see, 3.0.5-SNAPSHOT cannot be found
Sudharaka Palamakumbura
@SudharakaP
@amatosg : Maybe you already figured it out; but anyways information regarding that can be found at jhipster/generator-jhipster#9571
Alejandro Matos
@amatosg
so I missed the -Dgpg.skip=true thanks!!
Jonathan Leitschuh
@JLLeitschuh

@/all Full disclosure of the security vulnerability in JHipster. This enables account takeover of any of your users arbitrarily.

https://github.com/jhipster/generator-jhipster/issues/10401#issuecomment-531404568

Jon Ruddell
@ruddell
In summary, an attacker can exploit this to take over an account if they know the target's email address and crack the app's random state. Your app is vulnerable if you don't use OAuth2. The simple fix is to update your app's RandomUtil.java from one these, depending on your auth type.
samiTab
@samiTab
@ruddell Hello Jon, you're right the jdl is exported in app.jdl at the project root.. Thank you very much for your help
So in my oint of view the only issue is that the argument "FILE-NAME" in the command export-jdl FILE-NAME is not considered... But the main important is that I have my JDL file generated accordingly to the created entities. great!
Jon Ruddell
@ruddell
@samiTab You are correct, opened an issue jhipster/jhipster-core#362
iamacodercalledlei
@iamacodercalledlei
may I speak Chinese?
wlminus
@wlminus
Hi guys. I'm working with Oracle database and it's only allow 30 char for table name and column name as well. I have a .jdl file with many table have 20-25 char so jhipster not allow me to generate code cause "table name is too long to form constrains" but i can't change the table name. So is there any easy way i can still generate code with long table name or is there anyway i can specific the constrains column name?
Alan.He
@alanhg
@iamacodercalledlei english please