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.

Problems importing JDL

See original GitHub issue
Overview of the issue

I’m trying to import a “jh” file. I’m using jdl studio, and I’m using the default template downloaded from the jdl studio web page.

Motivation for or Use Case

I’m starting with the project and it’s my first example.

Reproduce the error
  1. Go to https://jhipster.github.io/jdl-studio/ and download the file (without touching the code).
  2. Create a folder “v2”.
  3. Run yo jhipster:import-jdl jhipster-jdl.jh and the error appears:

The jdl is being parsed. { name: ‘NullPointerException’, message: ‘The parsed JDL content and the database type must be passed.’, prototype: Error at new buildException (C:\Users\Jgutierrez\AppData\Roaming\npm\node_modules\generator-jhipster\node_modules\jhips ter-core\lib\exceptions\exception_factory.js:43:25) at Object.parse [as convertToJDL] (C:\Users\Jgutierrez\AppData\Roaming\npm\node_modules\generator-jhipster\node_m odules\jhipster-core\lib\parser\jdl_parser.js:36:11) at module.exports.JDLGenerator.extend.default.parseJDL (C:\Users\Jgutierrez\AppData\Roaming\npm\node_modules\gene rator-jhipster\generators\import-jdl\index.js:45:41) at Object.<anonymous> (C:\Users\Jgutierrez\AppData\Roaming\npm\node_modules\generator-jhipster\node_modules\yeoma n-generator\lib\base.js:439:23) at C:\Users\Jgutierrez\AppData\Roaming\npm\node_modules\generator-jhipster\node_modules\yeoman-generator\node_mod ules\run-async\index.js:25:25 at C:\Users\Jgutierrez\AppData\Roaming\npm\node_modules\generator-jhipster\node_modules\yeoman-generator\node_mod ules\run-async\index.js:24:19 at C:\Users\Jgutierrez\AppData\Roaming\npm\node_modules\generator-jhipster\node_modules\yeoman-generator\lib\base .js:440:9 at runCallback (timers.js:566:20) at tryOnImmediate (timers.js:546:5) at processImmediate [as _immediateCallback] (timers.js:525:5) } Error jhipster:import-jdl .\jhipster-jdl.jh -db h2

ERROR! Error while parsing entities from JDL

Related issues

https://github.com/jhipster/generator-jhipster/issues/3532

Suggest a Fix

Just fix it!

JHipster Version(s)

java version “1.8.0_91” Java™ SE Runtime Environment (build 1.8.0_91-b15) Java HotSpot™ 64-Bit Server VM (build 25.91-b15, mixed mode)

git version 2.9.0.windows.1

node: v6.3.0

npm: 3.10.3

bower: 1.8.0

gulp: [11:38:55] CLI version 1.2.2

yeoman: 1.8.5

Docker version 1.12.3, build 6b644ec

docker-compose version 1.8.1, build 004ddae

JHipster version is the latest one… I think 3.12.2.

JHipster configuration, a .yo-rc.json file generated in the root folder

I don’t have this file because the importation is not working.

Entity configuration(s) entityName.json files generated in the .jhipster directory

I don’t have this file because the importation is not working.

Browsers and Operating System

I’m using windows 10 pro.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
deepu105commented, Jan 26, 2017

Just read the documentation!

4reactions
jduboiscommented, Jan 26, 2017

Just add a .yo-rc.json! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot import jdl file using jhipster - Stack Overflow
I am on jhipster v7.8.1, i can generate an app using the cli questions but when i try importing a jdl file i...
Read more >
JHipster Domain Language - Troubleshooting
The JDL import only finds one entity when matching MS baseName Permalink to "The JDL import only finds one entity when matching MS...
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) - EasyNode
Simply run yo jhipster:import-jdl yourJdlFilePath.jh from the root of the generated JHipster ... Commenting; All the relationships; Annexes; Issues and bugs ...
Read more >
JHipster Domain Language (JDL)
If you have an existing project (either created with jhipster import-jdl or generated ... Issues and bugs ... jhipster import-jdl my_file1.jdl my_file2.jdl.
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