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

Error marshalling SCL after automatic scd creation call #126

Closed
samirromdhani opened this issue Jul 28, 2022 · 0 comments · Fixed by #127
Closed

Error marshalling SCL after automatic scd creation call #126

samirromdhani opened this issue Jul 28, 2022 · 0 comments · Fixed by #127
Assignees
Labels
bug Something isn't working
Milestone

Comments

@samirromdhani
Copy link
Contributor

samirromdhani commented Jul 28, 2022

Subject of the issue

SCD file is not valid after automatic scd creation, it will not converted to string through marshalling. Right now it's not tested.
This issue is related to RSR-367

Your environment

  • Version of CoMPAS : 0.0.4

Steps to reproduce

Add marshalling after an existing test createSCD()

MarshallerWrapper marshallerWrapper = createWrapper();
marshallerWrapper.marshall(expectedSCD.getCurrentElem());

Execute test : createSCD()

Expected behaviour

No exception should happen

Actual behaviour

org.lfenergy.compas.core.commons.exception.CompasException: Error marshalling the Class: javax.xml.bind.MarshalException
 - with linked exception:
[com.sun.istack.SAXException2: impossible de sérialiser le type "org.lfenergy.compas.scl2007b4.model.TCompasICDHeader" en tant qu'élément car il lui manque une annotation @XmlRootElement]
CORE-0007 -> org.lfenergy.compas.core.commons.exception.CompasException: Error marshalling the Class: javax.xml.bind.MarshalException
@samirromdhani samirromdhani added the bug Something isn't working label Jul 28, 2022
@samirromdhani samirromdhani self-assigned this Jul 29, 2022
massifben added a commit that referenced this issue Aug 9, 2022
Signed-off-by: massifben <105049157+massifben@users.noreply.github.com>
massifben added a commit that referenced this issue Aug 9, 2022
[#126] fix importSTDElementsInSCD when copying Compas ICDHeader and add assertIsMarshallable to tests

Signed-off-by: samirromdhani <samir.romdhani@rte-france.com>
Signed-off-by: massifben <105049157+massifben@users.noreply.github.com>
Co-authored-by: samirromdhani <samir.romdhani@rte-france.com>
Co-authored-by: massifben <105049157+massifben@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant