Problems importing JDL
See original GitHub issueOverview 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
- Go to https://jhipster.github.io/jdl-studio/ and download the file (without touching the code).
- Create a folder “v2”.
- 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:
- Created 7 years ago
- Comments:8 (5 by maintainers)
Just read the documentation!
Just add a
.yo-rc.json
! 😃