Skip to content

[BUG] CLI SAMM2AASX: command fails with infinite recursion error during XML serialization #802

@o-muzyka

Description

@o-muzyka

How: List of performed steps

  1. Create or use an existing valid Aspect Model file (e.g., TestAspect.ttl)
  2. Run the SAMM CLI command to generate AAS: samm aspect TestAspect.ttl to aas
  3. Command fails with StackOverflowError

What: Actual result vs expected result

Actual result:

  • Command throws AasGenerationException with nested SerializationException
  • Root cause: JsonMappingException: Infinite recursion (StackOverflowError)
  • The circular reference occurs in DefaultAssetAdministrationShell["submodels"]->ArrayList[0]->DefaultReference["type"]
  • The AAS file is not generated

Expected result:

  • Command should successfully generate an AAS submodel template in XML format

Where
SAMM CLI Version: Reproduced on multiple versions:

  • esmf-sdk 2.11.1 (latest)
  • esmf-sdk 2.10.3
  • esmf-sdk 2.9.10

Command: samm aspect to aas
Operating System: macOS Sequoia 15.6
System Architecture: arm64

Input
samm aspect AspectModel.ttl to aas

Output (screenshot)

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    acknowledgedHas been viewed by one of the maintainers and is ready for further work, discussion or other steps.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions