AnsweredAssumed Answered

Could not lookup beanmanager in jndi in weblogic

Question asked by vinothkumar.j2ee@gmail.com on Jun 4, 2013
Latest reply on Jun 6, 2013 by vinothkumar.j2ee@gmail.com
hi,

I have conditional flow with expression  ${ instanceVaraiable.getCanSkipPool()}  returns boolean.

instanceVariable (JAVA BEAN with get & set methods) is set during the process flow.  When control reaches the conditional flow , i get below error and instance is not getting created . What needs to be done to resolve this issue ?

org.activiti.engine.ActivitiException: Error while evaluating expression: ${ instanceVariable.getCanSkipPool()}
        at org.activiti.engine.impl.el.JuelExpression.getValue(JuelExpression.java:59)
        at org.activiti.engine.impl.el.UelExpressionCondition.evaluate(UelExpressionCondition.java:37)
        at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performOutgoingBehavior(BpmnActivityBehavior.java:97)
        at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performDefaultOutgoingBehavior(BpmnActivityBehavior.java:54)

Caused by: org.activiti.engine.ActivitiException: Could not lookup beanmanager in jndi. If no jndi is avalable, set the beanmanger to the 'localInstance' property of this class.
        at org.activiti.cdi.impl.util.BeanManagerLookup.lookupBeanManagerInJndi(BeanManagerLookup.java:60)
        at org.activiti.cdi.impl.util.BeanManagerLookup.getBeanManager(BeanManagerLookup.java:33)
        at org.activiti.cdi.impl.el.CdiResolver.getBeanManager(CdiResolver.java:59)
        at org.activiti.cdi.impl.el.CdiResolver.getWrappedResolver(CdiResolver.java:63)
        at org.activiti.cdi.impl.el.CdiResolver.invoke(CdiResolver.java:109)
        at org.activiti.engine.impl.javax.el.CompositeELResolver.invoke(CompositeELResolver.java:397)
        at org.activiti.engine.impl.juel.AstMethod.invoke(AstMethod.java:91)
        at org.activiti.engine.impl.juel.AstMethod.eval(AstMethod.java:75)
        at org.activiti.engine.impl.juel.AstEval.eval(AstEval.java:50)
        at org.activiti.engine.impl.juel.AstNode.getValue(AstNode.java:26)
        at org.activiti.engine.impl.juel.TreeValueExpression.getValue(TreeValueExpression.java:114)
        at org.activiti.engine.impl.delegate.ExpressionGetInvocation.invoke(ExpressionGetInvocation.java:33)
        at org.activiti.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:37)
        at org.activiti.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:25)
        at org.activiti.engine.impl.el.JuelExpression.getValue(JuelExpression.java:48)

Outcomes