Skip to content
This repository has been archived by the owner on Oct 28, 2019. It is now read-only.

Invalid Type Exception with Modelio #8

Closed
outis10 opened this issue Jun 15, 2015 · 6 comments
Closed

Invalid Type Exception with Modelio #8

outis10 opened this issue Jun 15, 2015 · 6 comments

Comments

@outis10
Copy link

outis10 commented Jun 15, 2015

Hi, there, I try to use the app with this basic model

model

but when y ran the jhipster-uml it throws me the following error

λ jhipster-uml spyderfox.xmi
Parser detected: MODELIO.

C:\Users\narciso.parra\AppData\Roaming\npm\node_modules\jhipster-uml\lib\editors\modelio_parser.js:62
throw new InvalidTypeException(
^
Error
at Object. (C:\Users\narciso.parra\AppData\Roaming\npm\node_modules\jhipster-uml\lib\editors\modelio_parser.js:329:34)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object. (C:\Users\narciso.parra\AppData\Roaming\npm\node_modules\jhipster-uml\lib\editors\editors.js:3:22)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)

Thanks in advance!

@MathieuAA
Copy link
Member

Hi!

I may be wrong, but I doubt 'Date' (from the 'Credito' entity) exists for your database type. Date is only supported by JHipster for Cassandra. If you're using a SQL database, or a MongoDB one, the error is normal.

However, another issue is pointed by your problem: the display of exceptions. We're currently trying to make it work as intended (Javascript doesn't make it easy for us), and help users see their mistakes, or --better, our mistakes.

I'm not closing this thread until I fix the exception problem.

I hope my answer helped you, thanks for using JHipster-UML!

@MathieuAA MathieuAA self-assigned this Jun 15, 2015
@MathieuAA MathieuAA added the bug label Jun 15, 2015
MathieuAA pushed a commit that referenced this issue Jun 15, 2015
Thrown exceptions from other files than jhipster-uml.js now are correctly displayed.
See bug #8 for more details.
@MathieuAA
Copy link
Member

The exception problem is now fixed as of the last commit.

@MathieuAA MathieuAA removed the bug label Jun 15, 2015
@outis10
Copy link
Author

outis10 commented Jun 15, 2015

Ok, i see the correct error right now
The type 'Date' isn't supported by JHipster, exiting now.
Error...
and I modify my model with LocalDate Class

image

And there is a new error message
The type 'EDate' isn't supported by JHipster, exiting now.
Error
at Object. (C:\Users\narciso.parra\AppData\Roaming\npm\node_modules\jhipster-uml\lib\editors\modelio_parser.js:333:34)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object. (C:\Users\narciso.parra\AppData\Roaming\npm\node_modules\jhipster-uml\lib\editors\editors.js:3:22)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)

I don´t know is this is for a bug or something wrong whit the manner of i design the model

@MathieuAA
Copy link
Member

You must have chosen the wrong date type. EDate could be the Ecore type. Something's wrong with your diagram. Try to export it to XMI and look for the EDate DataType or PrimitiveType.
If there's one, you have your error.

@outis10
Copy link
Author

outis10 commented Jun 16, 2015

You are right. I fix my model and it run well. its awesome

And Again Thanks!

@outis10 outis10 closed this as completed Jun 16, 2015
@MathieuAA
Copy link
Member

Happy to help =)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants