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

Exception caused when creating an oslc-shape out of the shacl-shape class annotations - using JMH #16

Closed
jadelkhoury opened this Issue May 17, 2018 · 3 comments

Comments

Projects
None yet
3 participants
@jadelkhoury
Copy link
Contributor

jadelkhoury commented May 17, 2018

The attribute "order" of a ShaclProperty is set to BigDecimal which is not support by oslc4J. This causes an exception OSLC005.

This occurs when trying to create an OSLC-resource-shape out of the class annotations on org.eclipse.lyo.validation.shacl.ShaclShape.

Caused by: org.eclipse.lyo.oslc4j.core.exception.OslcCoreInvalidPropertyTypeException: OSLC005: Invalid property type java.math.BigDecimal returned by method getOrder of class org.eclipse.lyo.validation.shacl.ShaclProperty
at org.eclipse.lyo.oslc4j.core.model.ResourceShapeFactory.getDefaultValueType(ResourceShapeFactory.java:324)
at org.eclipse.lyo.oslc4j.core.model.ResourceShapeFactory.createProperty(ResourceShapeFactory.java:219)
at org.eclipse.lyo.oslc4j.core.model.ResourceShapeFactory.createResourceShape(ResourceShapeFactory.java:153)
at org.eclipse.lyo.oslc4j.core.model.ResourceShapeFactory.createProperty(ResourceShapeFactory.java:300)

@jadelkhoury jadelkhoury changed the title Exception caused when marshalling a shacl-shape instance using JMH Exception caused when creating an oslc-shape out of the shacl-shape class annotations - using JMH May 17, 2018

@berezovskyi

This comment has been minimized.

Copy link
Member

berezovskyi commented May 28, 2018

What's the plan for this one? It is solved by your recent changes to the Designer types?

@jadelkhoury

This comment has been minimized.

Copy link
Contributor Author

jadelkhoury commented May 30, 2018

@yashkhatri can you confirm if/that issue is already dealt with?

@yashkhatri

This comment has been minimized.

Copy link
Member

yashkhatri commented May 30, 2018

Yes. Resolved Fixed!

@yashkhatri yashkhatri closed this May 30, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment