We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is not really a bug, but rather a suggestion to add documentation.
In a fully modularized application, when the embedded storage manager attempts to persist entities, it fails with:
java.lang.reflect.InaccessibleObjectException: Unable to make protected datamodel.product._Product.ProductEntity() accessible: module datamodel does not "opens datamodel.product._Product" to module org.eclipse.serializer.persistence.binary at java.base/java.lang.reflect.AccessibleObject.throwInaccessibleObjectException(AccessibleObject.java:391) at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:367) at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:315) at java.base/java.lang.reflect.Constructor.checkCanSetAccessible(Constructor.java:194) at java.base/java.lang.reflect.Constructor.setAccessible(Constructor.java:187) at org.eclipse.serializer.persistence.binary@1.3.1/org.eclipse.serializer.persistence.binary.org.eclipse.serializer.entity.BinaryHandlerEntityLayerIdentity.WrapDefaultConstructor(BinaryHandlerEntityLayerIdentity.java:61) at org.eclipse.serializer.persistence.binary@1.3.1/org.eclipse.serializer.persistence.binary.org.eclipse.serializer.entity.BinaryHandlerEntityLayerIdentity.New(BinaryHandlerEntityLayerIdentity.java:50) at org.eclipse.serializer.persistence.binary@1.3.1/org.eclipse.serializer.persistence.binary.types.BinaryTypeHandlerCreator$Default.createEntityLayerIdentityHandler(BinaryTypeHandlerCreator.java:368) at org.eclipse.serializer.persistence.binary@1.3.1/org.eclipse.serializer.persistence.binary.types.BinaryTypeHandlerCreator$Default.internalCreateTypeHandlerEntity(BinaryTypeHandlerCreator.java:351)
This is fixed by declaring the entity module "open" (also notice that the generated packages like _Product would need to be exported as well):
_Product
open module datamodel { //... exports datamodel.product._Product; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Environment Details
Describe the bug
This is not really a bug, but rather a suggestion to add documentation.
In a fully modularized application, when the embedded storage manager attempts to persist entities, it fails with:
Additional context
This is fixed by declaring the entity module "open" (also notice that the generated packages like
_Product
would need to be exported as well):The text was updated successfully, but these errors were encountered: