Created attachment 892510 [details] server.log showing the exceptions Description of problem: 1) When I deploy BPM Example repo (Big App) into business central and then select its associated project in Project Explorer, I always get exception (see Additional info for full stack trace): java.lang.RuntimeException: Failed to dispatch CDI Event ... Caused by: org.guvnor.common.services.shared.exceptions.GenericPortableException: Index: 0 The same exception is thrown every time I open new sub-package in that project. 2) When I delete ALL the guided rules from the project, there is a different exception thrown: java.lang.RuntimeException: Failed to dispatch CDI Event .... Caused by: org.guvnor.common.services.shared.exceptions.GenericPortableException: org.uberfire.java.nio.base.Properties cannot be cast to org.drools.workbench.models.guided.dtable.shared.model.GuidedDecisionTable52 3) After I delete the Guided Decision Table from the project, there are no more exceptions thrown. This problem doesn't seem to affect functionality of business central / BPM Example app, there is just a lot of exceptions in the server log. Version-Release number of selected component (if applicable): BPMS 6.0.2 ER2 How reproducible: Always Steps to Reproduce: 1. Download and install BPM Example app (following instructions in the README which is included in the zip - http://dev138.mw.lab.eng.bos.redhat.com/candidate/bpms-6.0.2-ER2/jboss-bpm-example-dist-6.0.2.GA-redhat-2.zip) 2. Go to project authoring, select big app project (try switching to different repository / project and then back to big app project. Actual results: Exceptions appears in server log each time you switch projects / expand packages of the BPM Example project. When you delete all guided rules & guided decision tables, there are no more exceptions. Expected results: No exceptions should be thrown. Additional info: [1] 13:59:11,878 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) java.lang.RuntimeException: Failed to dispatch CDI Event 13:59:11,879 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.jboss.errai.cdi.server.events.EventDispatcher.callback(EventDispatcher.java:193) 13:59:11,879 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.jboss.errai.bus.server.DeliveryPlan.deliver(DeliveryPlan.java:47) 13:59:11,879 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.jboss.errai.bus.server.ServerMessageBusImpl.sendGlobal(ServerMessageBusImpl.java:284) 13:59:11,879 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.jboss.errai.bus.server.SimpleDispatcher.dispatchGlobal(SimpleDispatcher.java:46) 13:59:11,879 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:97) 13:59:11,880 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:114) 13:59:11,880 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.jboss.errai.bus.server.servlet.DefaultBlockingServlet.doPost(DefaultBlockingServlet.java:140) 13:59:11,880 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) 13:59:11,880 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) 13:59:11,880 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295) 13:59:11,880 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) 13:59:11,881 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.jboss.solder.servlet.exception.CatchExceptionFilter.doFilter(CatchExceptionFilter.java:65) 13:59:11,881 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) 13:59:11,881 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) 13:59:11,881 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.jboss.solder.servlet.event.ServletEventBridgeFilter.doFilter(ServletEventBridgeFilter.java:74) 13:59:11,881 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) 13:59:11,881 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) 13:59:11,881 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.jbpm.designer.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:70) 13:59:11,882 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) 13:59:11,882 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) 13:59:11,882 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.uberfire.security.server.UberFireSecurityFilter.doFilter(UberFireSecurityFilter.java:266) 13:59:11,882 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) 13:59:11,882 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) 13:59:11,882 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) 13:59:11,882 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) 13:59:11,883 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:499) 13:59:11,883 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) 13:59:11,883 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) 13:59:11,883 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) 13:59:11,883 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145) 13:59:11,883 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) 13:59:11,883 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:408) 13:59:11,884 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) 13:59:11,884 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336) 13:59:11,884 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) 13:59:11,884 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) 13:59:11,884 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920) 13:59:11,884 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at java.lang.Thread.run(Thread.java:722) 13:59:11,885 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) Caused by: org.guvnor.common.services.shared.exceptions.GenericPortableException: Index: 0 13:59:11,885 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.guvnor.common.services.backend.exceptions.ExceptionUtilities.handleException(ExceptionUtilities.java:39) 13:59:11,885 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.drools.workbench.screens.guided.rule.backend.server.GuidedRuleEditorServiceImpl.load(GuidedRuleEditorServiceImpl.java:175) 13:59:11,885 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.drools.workbench.screens.guided.rule.backend.server.GuidedRuleEditorServiceImpl.load(GuidedRuleEditorServiceImpl.java:64) 13:59:11,885 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.drools.workbench.screens.guided.rule.backend.server.GuidedRuleEditorServiceImpl$Proxy$_$$_WeldClientProxy.load(GuidedRuleEditorServiceImpl$Proxy$_$$_WeldClientProxy.java) 13:59:11,886 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.drools.workbench.screens.guided.rule.backend.server.GuidedRuleDRLSourceService.getSource(GuidedRuleDRLSourceService.java:53) 13:59:11,886 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.drools.workbench.screens.guided.rule.backend.server.GuidedRuleDRLSourceService$Proxy$_$$_WeldClientProxy.getSource(GuidedRuleDRLSourceService$Proxy$_$$_WeldClientProxy.java) 13:59:11,886 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.kie.workbench.common.services.backend.rulename.RuleNameServiceImpl.addRuleNames(RuleNameServiceImpl.java:194) 13:59:11,886 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.kie.workbench.common.services.backend.rulename.RuleNameServiceImpl.processResourceAdd(RuleNameServiceImpl.java:164) 13:59:11,886 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.kie.workbench.common.services.backend.rulename.RuleNameServiceImpl.visitPaths(RuleNameServiceImpl.java:108) 13:59:11,886 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.kie.workbench.common.services.backend.rulename.RuleNameServiceImpl.visitPaths(RuleNameServiceImpl.java:97) 13:59:11,886 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.kie.workbench.common.services.backend.rulename.RuleNameServiceImpl.visitPaths(RuleNameServiceImpl.java:97) 13:59:11,887 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.kie.workbench.common.services.backend.rulename.RuleNameServiceImpl.visitPaths(RuleNameServiceImpl.java:97) 13:59:11,887 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.kie.workbench.common.services.backend.rulename.RuleNameServiceImpl.visitPaths(RuleNameServiceImpl.java:97) 13:59:11,887 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.kie.workbench.common.services.backend.rulename.RuleNameServiceImpl.visitPaths(RuleNameServiceImpl.java:97) 13:59:11,887 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.kie.workbench.common.services.backend.rulename.RuleNameServiceImpl.visitPaths(RuleNameServiceImpl.java:97) 13:59:11,887 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.kie.workbench.common.services.backend.rulename.RuleNameServiceImpl.visitPaths(RuleNameServiceImpl.java:97) 13:59:11,887 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.kie.workbench.common.services.backend.rulename.RuleNameServiceImpl.visitPaths(RuleNameServiceImpl.java:97) 13:59:11,887 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.kie.workbench.common.services.backend.rulename.RuleNameServiceImpl.onProjectContextChange(RuleNameServiceImpl.java:91) 13:59:11,888 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.kie.workbench.common.services.backend.rulename.RuleNameServiceImpl$Proxy$_$$_WeldClientProxy.onProjectContextChange(RuleNameServiceImpl$Proxy$_$$_WeldClientProxy.java) 13:59:11,888 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 13:59:11,888 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 13:59:11,888 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 13:59:11,888 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at java.lang.reflect.Method.invoke(Method.java:601) 13:59:11,888 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:267) 13:59:11,889 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52) 13:59:11,889 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137) 13:59:11,889 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:263) 13:59:11,889 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:170) 13:59:11,889 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:51) 13:59:11,889 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:154) 13:59:11,889 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:245) 13:59:11,890 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:233) 13:59:11,890 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:213) 13:59:11,890 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.jboss.weld.event.ObserverNotifier.notifyObserver(ObserverNotifier.java:117) 13:59:11,890 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.jboss.weld.event.TransactionalObserverNotifier.notifyObserver(TransactionalObserverNotifier.java:44) 13:59:11,890 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.jboss.weld.event.ObserverNotifier.notifyObservers(ObserverNotifier.java:85) 13:59:11,890 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:75) 13:59:11,890 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:70) 13:59:11,890 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:562) 13:59:11,891 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) at org.jboss.errai.cdi.server.events.EventDispatcher.callback(EventDispatcher.java:164) 13:59:11,891 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) ... 37 more 13:59:11,891 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) *** Message delivery failure *** 13:59:11,891 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) Bus: org.jboss.errai.bus.server.ServerMessageBusImpl@153a8d41 13:59:11,891 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) Message: FromClient=1, BeanReference=org.guvnor.common.services.project.context.ProjectContextChangeEvent@370fb14a, BeanType=org.guvnor.common.services.project.context.ProjectContextChangeEvent, CommandType=CDIEvent, ToSubject=cdi.event:Dispatcher 13:59:11,891 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) errorMessage: Error calling remote service: cdi.event:Dispatcher 13:59:11,891 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) exception: java.lang.RuntimeException: Failed to dispatch CDI Event 13:59:11,891 ERROR [stderr] (http-localhost/127.0.0.1:8080-6) disconnect: false
I downloaded the referenced file and extracted the "mortgage-demo" repository. I added this repository to BRMS (jboss-brms-6.0.2.GA-redhat-2-deployable-eap6.x.zip) and could open it and access rules without any problem. The Project was called "MortgageApplication", the Package "com.redhat.bpms.examples.mortgage" and (an example asset) "Mortgage Calculation". Is this different to what you used? (There is no reference to "BigApp" anywhere!?!)
OK, I see the same errors in EAP's log.... Investigating... (In reply to manstis from comment #1) > I downloaded the referenced file and extracted the "mortgage-demo" > repository. I added this repository to BRMS > (jboss-brms-6.0.2.GA-redhat-2-deployable-eap6.x.zip) and could open it and > access rules without any problem. > > The Project was called "MortgageApplication", the Package > "com.redhat.bpms.examples.mortgage" and (an example asset) "Mortgage > Calculation". Is this different to what you used? (There is no reference to > "BigApp" anywhere!?!)
Hello Michael, yes, the BigApp is shorter name for the official title 'BPM Example App' which was used in the past. From now on I'll be using the official title to avoid any confusion. The project/package you mentioned is the one I had problems with. However the example App is primarily intended to be used with BPMS, as it also contains BPMN2 process, some forms etc. But I guess you should be able to reproduce the issue with BRMS as well. I will try if it's fixed as soon as the next release (ER3) is available.
I fixed one NPE issues that happened when the rule name service tried to parse rule names from dot files. Here Jiri says that this commit is not in ER2. It might be causing this. https://bugzilla.redhat.com/show_bug.cgi?id=1051463#c8
Ok, problem fixed. Tested with BPMS 6.0.2 ER3