NPE while trying to add role to repository or organization unit via kie-config-cli with BRMS/BPMS 6.1

Solution Unverified - Updated -

Issue

We are facing an exception while trying to add role to repository or organization unit via kie-config-cli:

>>Please enter command (type help to see available commands):
add-role-repo
>>Repository alias:repository1
>>Security roles (comma separated list):userrole1
Unhandled exception caught while executing command add-role-repo error: null
java.lang.NullPointerException
        at org.guvnor.structure.backend.repositories.RepositoryServiceImpl.addRole(RepositoryServiceImpl.java:226)
        at org.guvnor.structure.backend.repositories.RepositoryServiceImpl$Proxy$_$$_WeldClientProxy.addRole(RepositoryServiceImpl$Proxy$_$$_WeldClientProxy.java)
        at org.kie.config.cli.command.impl.AddRoleToRepositoryCliCommand.execute(AddRoleToRepositoryCliCommand.java:39)
        at org.kie.config.cli.CmdMain.main(CmdMain.java:97)

Environment

  • Red Hat JBoss BRMS
    • 6.1.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.