BonitaStudio 7.10 - object accès restricted

Hello everyone,
I have migrate a process in 7.6.4 to 7.10.
But i have lot of error in my groovy code. The error is :

Restriction d’accès : Le type User n’est pas accessible en raison d’une restriction pesant sur la bibliothèque requise C:\BonitaStudioCommunity-7.10.0\plugins\org.bonitasoft.studio.console.libs_7.10.0\lib\bonita-common.jar


For example, i can't do something like that now:

import org.bonitasoft.engine.identity.User

List<User> users = new ArrayList<User>();
users.add(actor);
return users;

Because, 'User' class is restricted by Bonita. I have try to configure access rule with the wildcard '*' but it's not possible.
If you have already encounter this issue, i'm taking any help ;)

Hi,

It feels like a compiler issue.

I have found similar threads related to Eclipse (Bonita Studio is based on Eclipse RCP), maybe it can help:

https://www.developpez.net/forums/d1523913/java/general-java/apis/restriction-librairie-requise/

or

https://www.developpez.net/forums/d1285643/java/interfaces-graphiques-java/awt-swing/agents-placement-fenetres/jframe-non-reconnue-sous-eclipse/#post7012513

 

Can you check under Studio > Preferences > Java what is your java JRE configuration?

Captain Bonita