I am getting the following error when trying to do a REST query on an entity with an embedded entity.
16:34:36.687 ERROR c.h.r.c.RestControllerExceptionHandler - Exception in REST controller
java.lang.ClassCastException: com.daryn.ecosmart.entity.AddressEmbeddable cannot be cast to com.haulmont.cuba.core.entity.BaseGenericIdEntity
at com.haulmont.restapi.common.RestControllerUtils$FillingInaccessibleAttributesVisitor.visit(RestControllerUtils.java:113)
You say that the user doesn’t have a role that denies access to entity attribute? Could you please check? According to the piece of the stacktrace from your initial message, the exception occurs at RestControllerUtils, line 113.