-
Notifications
You must be signed in to change notification settings - Fork 27
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] SAMM2AASX - incorrect serialization of Entities in Set #307
Comments
I recreated the SM as discussed in the referenced ticket and received the following output:
Thus, I would conclude that AAS4J is behaving as expected. You can reproduce it on your own using the following code:
|
Thank you so much, we will check for other reasons this might have happened... |
We have investigated this issue and its cause is neither the AAS creation logic in the esmf-sdk nor the aas4j AAS XML serialization itself. The issue only appears in samm-cli when it's compiled to a native executable (using GraalVM). The cause is aas4j's mechanism to write XML using Jackson mixins, which relies on reflection to find the mixins. If mixin classes are not found using reflection, the XML serialization seemingly still works, but the result will then be missing XML tags and will be invalid AAS XML. IMO there are two options to proceed from here:
If you'd consider option 2 but have no time to deal with GraalVM, I'd offer for us to contribute this feature (since we've now collected lots of experience of making aas4j work with GraalVm :-)). |
Thanks for offering your support. We will discuss the best way forward in the coming weeks and come back to you. Right now, we are discussing if we would like to use aas-core-works in the background and thus replace our own serialization logic, most likely already fixing this issue with GraalVM. |
see eclipse-esmf/esmf-sdk#603 for details and example files, might not be an ESMF/SDK-CLI error but an error of aas4j: may you please check? Thank you.
A syntactically incorrect aasx file is generated. This means that all generated files in Catena-X are invalid (at least those containing SMC in SML)
The text was updated successfully, but these errors were encountered: