question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Jhipser error parsing during import jdl

See original GitHub issue

Hello,

I create a jdl file with “http://www.jhipster.tech/jdl-studio/”, but when I launch import in my jhipster project I have this error : (I have no error in jdl Studio)

`Using JHipster version installed locally in current project’s node_modules Executing jhipster:import-jdl jhipster-jdl.jh Options: The jdl is being parsed. events.js:160 throw er; // Unhandled ‘error’ event ^

Error: ERROR! Error while parsing entities from JDL

at Environment.error (D:\workspace\yvidya\node_modules\yeoman-environment\lib\environment.js:157:40) at error (D:\workspace\yvidya\node_modules\generator-jhipster\generators\generator-base.js:1676:18) at parseJDL (D:\workspace\yvidya\node_modules\generator-jhipster\generators\import-jdl\index.js:105:26) at Object.<anonymous> (D:\workspace\yvidya\node_modules\yeoman-generator\lib\index.js:399:25) at D:\workspace\yvidya\node_modules\run-async\index.js:25:25 at D:\workspace\yvidya\node_modules\run-async\index.js:24:19 at self.env.runLoop.add.completed (D:\workspace\yvidya\node_modules\yeoman-generator\lib\index.js:400:11) at runCallback (timers.js:672:20) at tryOnImmediate (timers.js:645:5) at processImmediate [as _immediateCallback] (timers.js:617:5)`

There is my jdl file

`entity Entite { nom String required maxlength(100), numeroLicence String maxlength(30), siret String maxlength(15), adresse String maxlength(100), adresseComplement String maxlength(100), codePostal String maxlength(10), ville String maxlength(50) }

entity TypeEntity { nom String required maxlength(30) }

entity WebService { nom String required maxlength(30), methode String required maxlength(10) }

entity Profil { nom String required maxlength(20) }

entity UserFonc { nom String required maxlength(30) }

entity TypeBon { nom String required maxlength(15) }

entity NatureBon { nom String required maxlength(15) }

entity Permission { }

entity BonSav { uuid String required maxlength(40), logicielId String required maxlength(40), codeMagasin String maxlength(10), numeroFournisseur String maxlength(40), codeReparation String required maxlength(10), libelleReparation Text required, dateDepot ZonedDateTime required, dateRetrait ZonedDateTime required, codeClient String required maxlength(10), nomClient String required maxlength(30), prenomClient String required maxlength(20), emailClient String maxlength(50), telephoneClient String maxlength(20), photo Blob, dateCreation ZonedDateTime required, dateModification ZonedDateTime required }

entity Memo { titre String required maxlength(200), commentaire Text, flagTraiter Boolean, dateCreation ZonedDateTime required, dateModification ZonedDateTime required }

relationship ManyToMany { Profil{WebService(nom)} to WebService{profil} }

relationship ManyToMany { WebService{TypeEntity(nom)} to TypeEntity{webService} }

relationship ManyToOne { Entite{typeEntity(nom)} to TypeEntity }

relationship ManyToMany { Permission{entite(nom)} to Entite{permission} }

relationship ManyToOne { Permission{profil(nom)} to Profil }

relationship ManyToOne { Permission{UserFonc(nom)} to UserFonc }

relationship ManyToOne { BonSav{entite(nom)} to Entite }

relationship ManyToOne { BonSav{nature(nom)} to NatureBon }

relationship ManyToOne { BonSav{type(nom)} to TypeBon }

relationship ManyToOne { BonSav{destinataire(nom)} to Entite }

relationship ManyToOne { Entite{entiteMere(nom)} to Entite }

relationship ManyToOne { Memo{bonSav} to BonSav }

relationship ManyToOne { Memo{createur(nom)} to UserFonc }

relationship ManyToOne { Memo{modificateur(nom)} to UserFonc }

relationship ManyToOne { BonSav{createur(nom)} to UserFonc }

relationship ManyToOne { BonSav{modificateur(nom)} to UserFonc }

// Set pagination options paginate WebService, Profil, NatureBon, TypeBon with infinite-scroll paginate Entite, TypeEntity, BonSav, Memo, UserFonc, Permission with pagination

dto * with mapstruct

// Set service options to all except few service all with serviceImpl`

Can you give me the error parsing? I don’t understand…

I am using jhipster 4.9.0 and use function import-jdl

Thanks

Vincent

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
deepu105commented, Oct 12, 2017

@vleboulanger it is not nice to cross post as you waste more peoples time. Please stick to one platform and follow our guidelines below

Tickets must follow our Guidelines, as mentioned in:

  1. our Readme file on the front page of the project,
  2. the “create a new ticket” page and
  3. our Help page

We have also created a template on the “create a new ticket” page to help you follow those guidelines.

If this is indeed a JHipster bug, please open a new issue with proper details or update this issue with all details and request to reopen. Issues opened without proper details will be closed without explanation.

If you have a question please use Stack Overflow, and tag the question with jhipster. This helps the project to keep the issue tracker clean. Also, Stack Overflow will give your question a larger audience:

  • This will increase your chances to get an answer
  • Answers will be of higher quality, as there is a voting system
  • This will also help other users who might have the same issue, as questions are tagged and easily searchable
0reactions
agoncalcommented, Oct 12, 2017
Read more comments on GitHub >

github_iconTop Results From Across the Web

import-jdl parse error when entity field with pattern ... - GitHub
Overview of the issue if entity field contains pattern, and a block comments follow, then import-jdl command report error.
Read more >
Cannot import jdl file using jhipster - Stack Overflow
This occurs due to a recent bug in the one of JHipster libraries. As a temporary solution you can go to the JHipster...
Read more >
jhipster/JDL - Gitter
The JDL is being parsed. Error: Relationships from the User entity is not supported in the declaration between 'User' and 'MyEntity'. ERROR! ERROR!...
Read more >
JHipster Domain Language (JDL) - Getting Started
In this page, you'll learn about the JDL and how to create applications and ... If you do not want to regenerate your...
Read more >
JHipster Domain Language (JDL)
If you want to use JHipster UML instead of the import-jdl sub-generator you need to install it by running npm install -g jhipster-uml...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found