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

Cannot read property '0' of undefined #267

Open
1 task
yacosta738 opened this issue Mar 8, 2019 · 2 comments
Open
1 task

Cannot read property '0' of undefined #267

yacosta738 opened this issue Mar 8, 2019 · 2 comments

Comments

@yacosta738
Copy link

Modelio v3.8 introduces a bug when dealing with bidirectional Many-to-Many relationships (the error when JHipster UML parses the XMI is Cannot read property '0' of undefined)

In the official documentation of jhipster UML it is explained that there is a bug with Modelio 3.5.x in the generation of bidirectional Many-to-Many relationships and that it will be fixed for version 6. As it turns out, I am using version 3.8 and even persite the problem

jhipster-uml .\dallay.xmi

Parser detected: MODELIO.

An error has occurred:
        TypeError
Error message:
        Cannot read property '0' of undefined
Stack trace:
TypeError: Cannot read property '0' of undefined
    at addAssociation (C:\Users\Acosta\AppData\Local\Yarn\Data\global\node_modules\jhipster-uml\lib\editors\modelio_parser.js:161:38)
    at fillAssociations (C:\Users\Acosta\AppData\Local\Yarn\Data\global\node_modules\jhipster-uml\lib\editors\modelio_parser.js:155:5)
    at Object.parse (C:\Users\Acosta\AppData\Local\Yarn\Data\global\node_modules\jhipster-uml\lib\editors\modelio_parser.js:28:3)
    at Object.<anonymous> (C:\Users\Acosta\AppData\Local\Yarn\Data\global\node_modules\jhipster-uml\lib\jhipsteruml.js:54:25)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)


Reproduce the error

This is the model
image
xmi

The XMI file

image
xmi

Versions

JHipster JHipster UML Editor & version
5.8.2 2.0.3 Modelio 3.8
  • Checking this box is mandatory (this is just to show you read everything)
@MathieuAA
Copy link
Member

The only workaround I found was to downgrade or upgrade to a more stable version. Can you do it?

@Yerikshu
Copy link

hey, i aslo meet this error, and my jhipster's version is 5.7.1, jhipster uml's version is 2.0.3, and modelio is 3.8.
this is my xmi

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

No branches or pull requests

3 participants