Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException #3

Open
ghost opened this issue Jan 28, 2020 · 1 comment
Open

NullPointerException #3

ghost opened this issue Jan 28, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Jan 28, 2020

Hello,
im having two issues:

  1. I have a JSON file (https://github.com/dashevo/dpns-contract/blob/v0.2-dev/src/schema/dpns-documents.json) that visualizes great with your "JSON Discoverer" but does not work at all with this eclipse plugin. Actually none of my simple examples run. They all have no header and just start with the json structure. There will be no errror and the resulting uml is just:

<?xml version="1.0" encoding="UTF-8"?> <uml:Model xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xmi:id="_DZCE0EHBEeqcCL9vRpPMpg" name="myJSON"> <packagedElement xmi:type="uml:Package" xmi:id="_DZCE0UHBEeqcCL9vRpPMpg" name="myJSON"> <packagedElement xmi:type="uml:Class" xmi:id="_DZCE0kHBEeqcCL9vRpPMpg" name="Unknown"/> <packagedElement xmi:type="uml:Class" xmi:id="_DZCE00HBEeqcCL9vRpPMpg" name="Dpns-schema"/> </packagedElement> </uml:Model>

  1. So it seems the eclipse plugin needs a header with "schema" and "id". But now I tested the testValid.json from your repo (https://github.com/SOM-Research/jsonSchema-to-uml/blob/master/plugins/edu.uoc.som.jsonschematouml.test/inputs/testValid.json) and this file produces NullPointerException:
    An internal error occurred during: "edu.uoc.som.jsonschematouml.ui.popup.handlers.ConvertToClassDiagram". java.lang.NullPointerException

I saw the solved issue with similar problem, but testValid.json should have valid URI as id.

best regards,

@jlcanovas
Copy link
Member

Hello @README55, thanks for the feedback, I'll have a look to that thing and report back asap

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

No branches or pull requests

1 participant