personium / personium-engine

Additional module for personium-core to enable server-side JavaScript execution.
Apache License 2.0
16 stars 7 forks source link

Principal cannot be cast to Role #44

Closed dixonsiu closed 6 years ago

dixonsiu commented 6 years ago

Executing '_p.AclManager.prototype.get' produces the following error.

Server Error : _p.PersoniumException: io.personium.client.Principal$1 cannot be cast to io.personium.client.Role (/opt/apache-tomcat-8.0.44/webapps/personium-engine/WEB-INF/classes/js-lib/personium-dao.js#347)

The root cause is that Principal Class.