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

[BUG] AspectModelLoader throws NullPointerException #652

Closed
external-Bogdan-Toma opened this issue Sep 5, 2024 · 1 comment · Fixed by #658
Closed

[BUG] AspectModelLoader throws NullPointerException #652

external-Bogdan-Toma opened this issue Sep 5, 2024 · 1 comment · Fixed by #658
Labels
acknowledged Has been viewed by one of the maintainers and is ready for further work, discussion or other steps. bug Something isn't working

Comments

@external-Bogdan-Toma
Copy link

external-Bogdan-Toma commented Sep 5, 2024

How: List of performed steps

  • load an invalid model using AspectModelLoader

What: Actual result vs expected result

  • actual: loader fails with NullPointerException with message Cannot invoke "org.apache.jena.rdf.model.Statement.getObject()" because "dataType" is null
  • expected: other exception describing the actual problem

Where: (e.g. component, version, url, your system info)
org.eclipse.esmf:esmf-aspect-meta-model-java:2.9.5

Additional context (e.g. references)
org.example.validation.test.zip

  • run test ValidationTest
  • in SDK 2.7.0 there was a chance to validate: the model was loaded, resolved and then validated. The validation message was
    [No datatype is defined on the Characteristic instance ':Characteristic1'.]
@external-Bogdan-Toma external-Bogdan-Toma added the bug Something isn't working label Sep 5, 2024
@atextor atextor added the acknowledged Has been viewed by one of the maintainers and is ready for further work, discussion or other steps. label Sep 16, 2024
Copy link

Release v2.9.6 addresses this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
acknowledged Has been viewed by one of the maintainers and is ready for further work, discussion or other steps. bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants