I've been testing a process in OpenEdge BPM. This process was set up with the Schedule Rule wizard (using the Developer Studio). When this process starts automatically (Create Process Instance) exceptions are thrown in the Server.
In the BPMEvents.output file, is written "09 May 2014 18:45:38,808 | BPMEventsOutput | INFO | ejbServer | BPMEventsOutput | >>Exception in createProcessInstance ex:java.lang.RuntimeException: Lookup failed for Appserver=jboss : jndiName=ejb/com.savvion.sbm.bizlogic.server.ejb.BLServerHome : class="interface" com.savvion.sbm.bizlogic.server.ejb.BLServerHome : user=null : password=null : localHome=false : | WorkManager(2)-5".
In the bpmevents.log file, is written "09 May 2014 18:45:38,809 | BPMEvents | ERROR | ejbServer | BPMEvents | com.savvion.sbm.bizpulse.common.intf.BSRuntime$BPThrowException: controll: not error, rule trace: RuleName = Programado2::SC_reglao::reglao_schedule, Correlating Event Variable Location = 0, Event: Event(ID=-1, type=Schedule_reglao_Programado2, value=Schedule_reglao_Programado2, Date=May 9, 2014 6:45:38 PM, _SCHEDULED_ITEM_ID=26, PROCESSTEMPLATENAME=Programado2, type_id=Schedule_reglao_Programado2$Schedule_reglao_Programado2), @[line: 20, column: 18] | WorkManager(2)-5 |#]
[#| 09 May 2014 18:45:38,809 | BPMEvents | INFO | ejbServer | BPMEvents | (4021) rollback | WorkManager(2)-5 |#]
[#| 09 May 2014 18:45:38,813 | BPMEvents | ERROR | ejbServer | BPMEvents | (566) EventReader caught BPRuntimeException exception while evaluating event Event(ID=-1, type=Schedule_reglao_Programado2, value=Schedule_reglao_Programado2, Date=May 9, 2014 6:45:38 PM, _SCHEDULED_ITEM_ID=26, PROCESSTEMPLATENAME=Programado2, type_id=Schedule_reglao_Programado2$Schedule_reglao_Programado2) | WorkManager(2)-5 |#]
com.savvion.sbm.bizpulse.common.intf.BSRuntime$BPThrowException: controll: not error, rule trace: RuleName = Programado2::SC_reglao::reglao_schedule, Correlating Event Variable Location = 0, Event: Event(ID=-1, type=Schedule_reglao_Programado2, value=Schedule_reglao_Programado2, Date=May 9, 2014 6:45:38 PM, _SCHEDULED_ITEM_ID=26, PROCESSTEMPLATENAME=Programado2, type_id=Schedule_reglao_Programado2$Schedule_reglao_Programado2), @[line: 20, column: 18]
at com.savvion.sbm.bizpulse.engine.fun.RFun_Core$ThrowFun.eval(RFun_Core.java:1315)
at com.savvion.sbm.bizpulse.engine.fun.RFun_Core$CompoundFun.eval(RFun_Core.java:1002)
at com.savvion.sbm.bizpulse.engine.fun.RFun_Core$CatchFun.eval(RFun_Core.java:1297)
at com.savvion.sbm.bizpulse.engine.fun.RFun_Core$TryFun.eval(RFun_Core.java:1264)
at com.savvion.sbm.bizpulse.engine.fun.RFun_Core$CompoundFun.eval(RFun_Core.java:1002)
at com.savvion.sbm.bizpulse.engine.fun.RFun_Rule$RuleFun$RuleActivator.eval_action(RFun_Rule.java:700)
at com.savvion.sbm.bizpulse.engine.fun.RFun_Rule$RuleFun$RuleActivator.evaluate0(RFun_Rule.java:778)
at com.savvion.sbm.bizpulse.engine.fun.RFun_Rule$RuleFun$RuleActivator.evaluate(RFun_Rule.java:722)
at com.savvion.sbm.bizpulse.engine.runtime.RuleContext.eval(RuleContext.java:216)
at com.savvion.sbm.bizpulse.engine.runtime.RuleContext.eval(RuleContext.java:178)
at com.savvion.sbm.bizpulse.engine.runtime.RuleContext.evalRules0(RuleContext.java:162)
at com.savvion.sbm.bizpulse.engine.runtime.RuleContext.evalRules(RuleContext.java:330)
at com.savvion.sbm.bizpulse.engine.core.RuleEngineInternal.evaluate(RuleEngineInternal.java:48)
at com.savvion.sbm.bizpulse.engine.core.RuleEngineInternal.evalEvent(RuleEngineInternal.java:173)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.savvion.sbm.bizpulse.common.proxy.AbstractProxyFactory$ActionInvocationHandler$ATM.invoke(AbstractProxyFactory.java:214)
at com.savvion.sbm.bizpulse.common.proxy.AbstractProxyFactory$DynamicInvocationHandler.invoke(AbstractProxyFactory.java:156)
at $Proxy131.evalEvent(Unknown Source)
at com.savvion.ejb.bizpulse.jms.BPJMSEventReader.evalEvent(BPJMSEventReader.java:285)
at com.savvion.ejb.bizpulse.jms.BPJMSEventReader.evalEvent1(BPJMSEventReader.java:256)
at com.savvion.ejb.bizpulse.jms.BPJMSEventReader.run(BPJMSEventReader.java:114)
at com.savvion.ejb.bizpulse.manager.EventReaderBean.onMessage(EventReaderBean.java:82)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.jboss.invocation.Invocation.performCall(Invocation.java:386)
at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:513)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:156)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:173)
at org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT.invoke(MessageDrivenTxInterceptorBMT.java:47)
at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:115)
at org.jboss.ejb.plugins.RunAsSecurityInterceptor.process(RunAsSecurityInterceptor.java:133)
at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:103)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:415)
at org.jboss.ejb.Container.invoke(Container.java:1029)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
at org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor.delivery(MessageEndpointInterceptor.java:249)
at org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor.invoke(MessageEndpointInterceptor.java:128)
at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:101)
at $Proxy125.onMessage(Unknown Source)
at org.jboss.resource.adapter.jms.inflow.JmsServerSession.onMessage(JmsServerSession.java:178)
at org.jboss.jms.client.container.ClientConsumer.callOnMessageStatic(ClientConsumer.java:160)
at org.jboss.jms.client.container.SessionAspect.handleRun(SessionAspect.java:831)
at org.jboss.aop.advice.org.jboss.jms.client.container.SessionAspect_z_handleRun_17423088.invoke(SessionAspect_z_handleRun_17423088.java)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.jms.client.delegate.ClientSessionDelegate.run(ClientSessionDelegate.java)
at org.jboss.jms.client.JBossSession.run(JBossSession.java:199)
at org.jboss.resource.adapter.jms.inflow.JmsServerSession.run(JmsServerSession.java:234)
at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:205)
at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:260)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)"
can anyone help me?
I tested this against 11.3.2. I was able to see the scheduled operation kicking in.
Can you check the behavior after creating a single instance of this process?
If not, start again, from the beginning (summarizing all actions from current posts).
1. Check if DB is started properly.
2. Check if all servers are running - check some pages on BPM Portal, for example.
3. Install this process once again.
4. Create an instance of this process. Check the behavior.
Hi,
Can you please share the following additional details...
Are you using OEBPM 11.3 or 11.3.2? and also what kind of action you are performing apart from Creating a Process Instance using the Schedule rule
I have created a sample project which performs the following actions...
Create a Process Instance
Install Process Template
SendEmail
Alerts
I was able to invoke all the above mentioned four actions successfully.
If possible, can you please share your project, so that we will analyze the same and get back to you.
Regards,
Jawahar.
Hi,
The problem is with Database [DB got stopped].Please make sure that BPM database gets started properly. And restart the servers. BPM Events scheduled rule will work.
thanks
Satyam
I've been testing a process in OpenEdge BPM. This process was set up with the Schedule Rule wizard (using the Developer Studio). When this process starts automatically (Create Process Instance) exceptions are thrown in the Server.
In the BPMEvents.output file, is written "09 May 2014 18:45:38,808 | BPMEventsOutput | INFO | ejbServer | BPMEventsOutput | >>Exception in createProcessInstance ex:java.lang.RuntimeException: Lookup failed for Appserver=jboss : jndiName=ejb/com.savvion.sbm.bizlogic.server.ejb.BLServerHome : class="interface" com.savvion.sbm.bizlogic.server.ejb.BLServerHome : user=null : password=null : localHome=false : | WorkManager(2)-5".
In the bpmevents.log file, is written "09 May 2014 18:45:38,809 | BPMEvents | ERROR | ejbServer | BPMEvents | com.savvion.sbm.bizpulse.common.intf.BSRuntime$BPThrowException: controll: not error, rule trace: RuleName = Programado2::SC_reglao::reglao_schedule, Correlating Event Variable Location = 0, Event: Event(ID=-1, type=Schedule_reglao_Programado2, value=Schedule_reglao_Programado2, Date=May 9, 2014 6:45:38 PM, _SCHEDULED_ITEM_ID=26, PROCESSTEMPLATENAME=Programado2, type_id=Schedule_reglao_Programado2$Schedule_reglao_Programado2), @[line: 20, column: 18] | WorkManager(2)-5 |#]
[#| 09 May 2014 18:45:38,809 | BPMEvents | INFO | ejbServer | BPMEvents | (4021) rollback | WorkManager(2)-5 |#]
[#| 09 May 2014 18:45:38,813 | BPMEvents | ERROR | ejbServer | BPMEvents | (566) EventReader caught BPRuntimeException exception while evaluating event Event(ID=-1, type=Schedule_reglao_Programado2, value=Schedule_reglao_Programado2, Date=May 9, 2014 6:45:38 PM, _SCHEDULED_ITEM_ID=26, PROCESSTEMPLATENAME=Programado2, type_id=Schedule_reglao_Programado2$Schedule_reglao_Programado2) | WorkManager(2)-5 |#]
com.savvion.sbm.bizpulse.common.intf.BSRuntime$BPThrowException: controll: not error, rule trace: RuleName = Programado2::SC_reglao::reglao_schedule, Correlating Event Variable Location = 0, Event: Event(ID=-1, type=Schedule_reglao_Programado2, value=Schedule_reglao_Programado2, Date=May 9, 2014 6:45:38 PM, _SCHEDULED_ITEM_ID=26, PROCESSTEMPLATENAME=Programado2, type_id=Schedule_reglao_Programado2$Schedule_reglao_Programado2), @[line: 20, column: 18]
at com.savvion.sbm.bizpulse.engine.fun.RFun_Core$ThrowFun.eval(RFun_Core.java:1315)
at com.savvion.sbm.bizpulse.engine.fun.RFun_Core$CompoundFun.eval(RFun_Core.java:1002)
at com.savvion.sbm.bizpulse.engine.fun.RFun_Core$CatchFun.eval(RFun_Core.java:1297)
at com.savvion.sbm.bizpulse.engine.fun.RFun_Core$TryFun.eval(RFun_Core.java:1264)
at com.savvion.sbm.bizpulse.engine.fun.RFun_Core$CompoundFun.eval(RFun_Core.java:1002)
at com.savvion.sbm.bizpulse.engine.fun.RFun_Rule$RuleFun$RuleActivator.eval_action(RFun_Rule.java:700)
at com.savvion.sbm.bizpulse.engine.fun.RFun_Rule$RuleFun$RuleActivator.evaluate0(RFun_Rule.java:778)
at com.savvion.sbm.bizpulse.engine.fun.RFun_Rule$RuleFun$RuleActivator.evaluate(RFun_Rule.java:722)
at com.savvion.sbm.bizpulse.engine.runtime.RuleContext.eval(RuleContext.java:216)
at com.savvion.sbm.bizpulse.engine.runtime.RuleContext.eval(RuleContext.java:178)
at com.savvion.sbm.bizpulse.engine.runtime.RuleContext.evalRules0(RuleContext.java:162)
at com.savvion.sbm.bizpulse.engine.runtime.RuleContext.evalRules(RuleContext.java:330)
at com.savvion.sbm.bizpulse.engine.core.RuleEngineInternal.evaluate(RuleEngineInternal.java:48)
at com.savvion.sbm.bizpulse.engine.core.RuleEngineInternal.evalEvent(RuleEngineInternal.java:173)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.savvion.sbm.bizpulse.common.proxy.AbstractProxyFactory$ActionInvocationHandler$ATM.invoke(AbstractProxyFactory.java:214)
at com.savvion.sbm.bizpulse.common.proxy.AbstractProxyFactory$DynamicInvocationHandler.invoke(AbstractProxyFactory.java:156)
at $Proxy131.evalEvent(Unknown Source)
at com.savvion.ejb.bizpulse.jms.BPJMSEventReader.evalEvent(BPJMSEventReader.java:285)
at com.savvion.ejb.bizpulse.jms.BPJMSEventReader.evalEvent1(BPJMSEventReader.java:256)
at com.savvion.ejb.bizpulse.jms.BPJMSEventReader.run(BPJMSEventReader.java:114)
at com.savvion.ejb.bizpulse.manager.EventReaderBean.onMessage(EventReaderBean.java:82)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.jboss.invocation.Invocation.performCall(Invocation.java:386)
at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:513)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:156)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:173)
at org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT.invoke(MessageDrivenTxInterceptorBMT.java:47)
at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:115)
at org.jboss.ejb.plugins.RunAsSecurityInterceptor.process(RunAsSecurityInterceptor.java:133)
at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:103)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:415)
at org.jboss.ejb.Container.invoke(Container.java:1029)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
at org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor.delivery(MessageEndpointInterceptor.java:249)
at org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor.invoke(MessageEndpointInterceptor.java:128)
at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:101)
at $Proxy125.onMessage(Unknown Source)
at org.jboss.resource.adapter.jms.inflow.JmsServerSession.onMessage(JmsServerSession.java:178)
at org.jboss.jms.client.container.ClientConsumer.callOnMessageStatic(ClientConsumer.java:160)
at org.jboss.jms.client.container.SessionAspect.handleRun(SessionAspect.java:831)
at org.jboss.aop.advice.org.jboss.jms.client.container.SessionAspect_z_handleRun_17423088.invoke(SessionAspect_z_handleRun_17423088.java)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.jms.client.delegate.ClientSessionDelegate.run(ClientSessionDelegate.java)
at org.jboss.jms.client.JBossSession.run(JBossSession.java:199)
at org.jboss.resource.adapter.jms.inflow.JmsServerSession.run(JmsServerSession.java:234)
at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:205)
at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:260)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)"
can anyone help me?
Flag this post as spam/abuse.
I am working in OEBPM 11.3.2.
In which version are you working?
I tested this against 11.3.2. I was able to see the scheduled operation kicking in.
Can you check the behavior after creating a single instance of this process?
If not, start again, from the beginning (summarizing all actions from current posts).
1. Check if DB is started properly.
2. Check if all servers are running - check some pages on BPM Portal, for example.
3. Install this process once again.
4. Create an instance of this process. Check the behavior.
Worked when I tried it on another computer with a clean installation.
Hi,
Try to the following:
1. Uninstall the process template from BPM server using BPM Portal.
2. Remove Process template from publish list in Eclipse (server view -> RMC on BPM server -> Add Remove..)
3. Remove the process folder from deploy directory: DLC\oebpm\server\ebmsapps\<ProcessTemplateName>
4. Republish the BPM template.
Daniel.