Created attachment 924545 [details]
Description of problem:
Created a organizational unit, created a repository, navigate to project explorer, select the recently created repository, it throws a NPE
ERROR [stderr] (http-localhost.localdomain/127.0.0.1:8080-2) java.lang.RuntimeException: Failed to dispatch CDI Event
ERROR [stderr] (http-localhost.localdomain/127.0.0.1:8080-2) at org.jboss.errai.cdi.server.events.EventDispatcher.callback(EventDispatcher.java:193)
ERROR [stderr] (http-localhost.localdomain/127.0.0.1:8080-2) at org.jboss.errai.bus.server.DeliveryPlan.deliver(DeliveryPlan.java:47)
. . .
ERROR [stderr] (http-localhost.localdomain/127.0.0.1:8080-2) Caused by: java.lang.NullPointerException
ERROR [stderr] (http-localhost.localdomain/127.0.0.1:8080-2) at org.kie.workbench.common.services.backend.rulename.RuleNameServiceImpl.onProjectContextChange(RuleNameServiceImpl.java:91)
complete server.log file attached
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Install BRMS 6.0.2
2.Login to business central and create organizational unit name:MyOrgUnit, owner:admin
3.Create a repository MyRepository. associate to MyOrgUnit
4.Select Authoring -> Project Authoring.
5.Select the MyOrgUnit organization, it throws exception
This exception is occurred when we dont have any project in repository.
This area of the code has been refactored for 6.1 and the reported NPE does not occur as we handle resolution of Rule Names "on demand" rather than "up front" (and caching the results - as the old RuleNameServiceImpl used to do).
A customer of ours encountered that issue as well.
Can you please provide more details as what needs to be done to
work with version 6.0.2. Thanks,