3 Replies Latest reply on Oct 2, 2012 8:55 AM by Wolf-Dieter Fink

    Deployment of EJB fails sometimes

    joysn joe Newbie

      Hello,

       

      i have problems with deployments of an EAR which contains several EJBs and an WAR which makes use of these EJBs.

      Additionally there is a job executor which starts jobs in seperate threads and jobs started make use of these EJBs as well.

      It seems that sometimes one EJB is not fully configured when a job wants to access it:

       

      The EJB in question is:

       

      {noformat}

      2012-09-30 12:49:53,229 INFO     [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-1) JNDI bindings for session bean named CheckNewOrdersTask in deployment unit subdeployment "erp.ejb.bpm-0.0.1-SNAPSHOT.jar" of deployment "erp.ear.ear" are as follows:

       

       

                java:global/erp/erp.ejb.bpm-0.0.1-SNAPSHOT/CheckNewOrdersTask!erp.processes.acceptanceOfOrder.CheckNewOrdersTask

                java:app/erp.ejb.bpm-0.0.1-SNAPSHOT/CheckNewOrdersTask!erp.processes.acceptanceOfOrder.CheckNewOrdersTask

                java:module/CheckNewOrdersTask!erp.processes.acceptanceOfOrder.CheckNewOrdersTask

                java:global/erp/erp.ejb.bpm-0.0.1-SNAPSHOT/CheckNewOrdersTask

                java:app/erp.ejb.bpm-0.0.1-SNAPSHOT/CheckNewOrdersTask

                java:module/CheckNewOrdersTask

      {noformat}

       

      And the exception when it is accessed is:

       

      {noformat}

      2012-09-30 12:50:06,975 INFO     [org.jboss.as] (MSC service thread 1-1) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 43747ms - Started 925 of 1011 services (84 services are passive or on-demand)

      2012-09-30 12:50:07,205 INFO     [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "erp.ear.ear"

      2012-09-30 12:50:07,533 ERROR    [stderr] (pool-11-thread-1) Exception in thread "pool-11-thread-1" org.jboss.msc.service.ServiceNotFoundException: Service service jboss.deployment.subunit."erp.ear.ear"."erp.ejb.bpm-0.0.1-SNAPSHOT.jar".component.CheckNewOrdersTask.VIEW."erp.processes.acceptanceOfOrder.CheckNewOrdersTask".LOCAL not found

      2012-09-30 12:50:07,533 ERROR    [stderr] (pool-11-thread-1)           at org.jboss.msc.service.ServiceContainerImpl.getRequiredService(ServiceContainerImpl.java:447)

      2012-09-30 12:50:07,534 ERROR    [stderr] (pool-11-thread-1)           at org.jboss.as.weld.ejb.SessionObjectReferenceImpl.getBusinessObject(SessionObjectReferenceImpl.java:90)

      2012-09-30 12:50:07,534 ERROR    [stderr] (pool-11-thread-1)           at org.jboss.weld.bean.proxy.EnterpriseBeanProxyMethodHandler.invoke(EnterpriseBeanProxyMethodHandler.java:109)

      2012-09-30 12:50:07,534 ERROR    [stderr] (pool-11-thread-1)           at org.jboss.weld.bean.proxy.EnterpriseTargetBeanInstance.invoke(EnterpriseTargetBeanInstance.java:56)

      2012-09-30 12:50:07,534 ERROR    [stderr] (pool-11-thread-1)           at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:105)

      2012-09-30 12:50:07,535 ERROR    [stderr] (pool-11-thread-1)           at erp.processes.acceptanceOfOrder.CheckNewOrdersTask$Proxy$_$$_Weld$Proxy$.execute(CheckNewOrdersTask$Proxy$_$$_Weld$Proxy$.java)

      2012-09-30 12:50:07,535 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.delegate.JavaDelegateInvocation.invoke(JavaDelegateInvocation.java:34)

      2012-09-30 12:50:07,535 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:37)

      2012-09-30 12:50:07,536 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:25)

      2012-09-30 12:50:07,536 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.bpmn.behavior.ServiceTaskDelegateExpressionActivityBehavior.execute(ServiceTaskDelegateExpressionActivityBehavior.java:69)

      2012-09-30 12:50:07,536 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:44)

      2012-09-30 12:50:07,536 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:80)

      2012-09-30 12:50:07,537 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:548)

      2012-09-30 12:50:07,537 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:541)

      2012-09-30 12:50:07,537 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerStart.java:52)

      2012-09-30 12:50:07,538 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)

      2012-09-30 12:50:07,538 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:80)

      2012-09-30 12:50:07,538 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:548)

      2012-09-30 12:50:07,539 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:541)

      2012-09-30 12:50:07,539 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49)

      2012-09-30 12:50:07,539 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:80)

      2012-09-30 12:50:07,540 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:548)

      2012-09-30 12:50:07,540 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:541)

      2012-09-30 12:50:07,545 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionCreateScope.execute(AtomicOperationTransitionCreateScope.java:49)

      2012-09-30 12:50:07,545 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:80)

      2012-09-30 12:50:07,546 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:548)

      2012-09-30 12:50:07,546 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:541)

      2012-09-30 12:50:07,546 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerTake.execute(AtomicOperationTransitionNotifyListenerTake.java:65)

      2012-09-30 12:50:07,547 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:80)

      2012-09-30 12:50:07,547 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:548)

      2012-09-30 12:50:07,547 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:541)

      2012-09-30 12:50:07,552 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionDestroyScope.execute(AtomicOperationTransitionDestroyScope.java:115)

      2012-09-30 12:50:07,552 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:80)

      2012-09-30 12:50:07,552 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:548)

      2012-09-30 12:50:07,553 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:541)

      2012-09-30 12:50:07,553 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerEnd.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerEnd.java:36)

      2012-09-30 12:50:07,554 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)

      2012-09-30 12:50:07,555 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:80)

      2012-09-30 12:50:07,555 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:548)

      2012-09-30 12:50:07,555 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:541)

      2012-09-30 12:50:07,555 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49)

      2012-09-30 12:50:07,559 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:80)

      2012-09-30 12:50:07,559 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:548)

      2012-09-30 12:50:07,559 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:541)

      2012-09-30 12:50:07,560 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:381)

      2012-09-30 12:50:07,561 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performOutgoingBehavior(BpmnActivityBehavior.java:102)

      2012-09-30 12:50:07,561 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performDefaultOutgoingBehavior(BpmnActivityBehavior.java:51)

      2012-09-30 12:50:07,561 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.leave(FlowNodeActivityBehavior.java:44)

      2012-09-30 12:50:07,562 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.execute(FlowNodeActivityBehavior.java:36)

      2012-09-30 12:50:07,562 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:44)

      2012-09-30 12:50:07,562 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:80)

      2012-09-30 12:50:07,563 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:548)

      2012-09-30 12:50:07,563 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:541)

      2012-09-30 12:50:07,568 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.pvm.runtime.AtomicOperationProcessStartInitial.eventNotificationsCompleted(AtomicOperationProcessStartInitial.java:46)

      2012-09-30 12:50:07,568 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)

      2012-09-30 12:50:07,569 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:80)

      2012-09-30 12:50:07,569 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:548)

      2012-09-30 12:50:07,571 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:541)

      2012-09-30 12:50:07,571 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.pvm.runtime.AtomicOperationProcessStart.eventNotificationsCompleted(AtomicOperationProcessStart.java:45)

      2012-09-30 12:50:07,572 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)

      2012-09-30 12:50:07,572 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:80)

      2012-09-30 12:50:07,572 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:548)

      2012-09-30 12:50:07,572 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:541)

      2012-09-30 12:50:07,578 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.start(ExecutionEntity.java:335)

      2012-09-30 12:50:07,578 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:72)

      2012-09-30 12:50:07,579 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.jobexecutor.TimerStartEventJobHandler.execute(TimerStartEventJobHandler.java:38)

      2012-09-30 12:50:07,580 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.persistence.entity.JobEntity.execute(JobEntity.java:78)

      2012-09-30 12:50:07,580 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.persistence.entity.TimerEntity.execute(TimerEntity.java:62)

      2012-09-30 12:50:07,584 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.cmd.ExecuteJobsCmd.execute(ExecuteJobsCmd.java:67)

      2012-09-30 12:50:07,584 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24)

      2012-09-30 12:50:07,585 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:42)

      2012-09-30 12:50:07,585 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.interceptor.JtaTransactionInterceptor.execute(JtaTransactionInterceptor.java:59)

      2012-09-30 12:50:07,586 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)

      2012-09-30 12:50:07,587 ERROR    [stderr] (pool-11-thread-1)           at org.activiti.engine.impl.jobexecutor.ExecuteJobsRunnable.run(ExecuteJobsRunnable.java:46)

      2012-09-30 12:50:07,588 ERROR    [stderr] (pool-11-thread-1)           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

      2012-09-30 12:50:07,588 ERROR    [stderr] (pool-11-thread-1)           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

      2012-09-30 12:50:07,589 ERROR    [stderr] (pool-11-thread-1)           at java.lang.Thread.run(Thread.java:662)

      2012-09-30 12:50:08,053 ERROR    [stderr] (pool-11-thread-2) Exception in thread "pool-11-thread-2" java.lang.RuntimeException: java.lang.NullPointerException

      2012-09-30 12:50:08,053 ERROR    [stderr] (pool-11-thread-2)           at org.jboss.as.weld.ejb.SessionObjectReferenceImpl.getBusinessObject(SessionObjectReferenceImpl.java:95)

      2012-09-30 12:50:08,053 ERROR    [stderr] (pool-11-thread-2)           at org.jboss.weld.bean.proxy.EnterpriseBeanProxyMethodHandler.invoke(EnterpriseBeanProxyMethodHandler.java:109)

      2012-09-30 12:50:08,053 ERROR    [stderr] (pool-11-thread-2)           at org.jboss.weld.bean.proxy.EnterpriseTargetBeanInstance.invoke(EnterpriseTargetBeanInstance.java:56)

      2012-09-30 12:50:08,054 ERROR    [stderr] (pool-11-thread-2)           at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:105)

      2012-09-30 12:50:08,054 ERROR    [stderr] (pool-11-thread-2)           at erp.processes.acceptanceOfOrder.CheckNewOrdersTask$Proxy$_$$_Weld$Proxy$.execute(CheckNewOrdersTask$Proxy$_$$_Weld$Proxy$.java)

      2012-09-30 12:50:08,054 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.delegate.JavaDelegateInvocation.invoke(JavaDelegateInvocation.java:34)

      2012-09-30 12:50:08,055 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:37)

      2012-09-30 12:50:08,055 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:25)

      2012-09-30 12:50:08,055 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.bpmn.behavior.ServiceTaskDelegateExpressionActivityBehavior.execute(ServiceTaskDelegateExpressionActivityBehavior.java:69)

      2012-09-30 12:50:08,056 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:44)

      2012-09-30 12:50:08,056 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:80)

      2012-09-30 12:50:08,056 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:548)

      2012-09-30 12:50:08,056 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:541)

      2012-09-30 12:50:08,057 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerStart.java:52)

      2012-09-30 12:50:08,057 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)

      2012-09-30 12:50:08,057 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:80)

      2012-09-30 12:50:08,058 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:548)

      2012-09-30 12:50:08,058 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:541)

      2012-09-30 12:50:08,058 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49)

      2012-09-30 12:50:08,058 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:80)

      2012-09-30 12:50:08,059 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:548)

      2012-09-30 12:50:08,059 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:541)

      2012-09-30 12:50:08,065 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionCreateScope.execute(AtomicOperationTransitionCreateScope.java:49)

      2012-09-30 12:50:08,065 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:80)

      2012-09-30 12:50:08,066 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:548)

      2012-09-30 12:50:08,066 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:541)

      2012-09-30 12:50:08,067 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerTake.execute(AtomicOperationTransitionNotifyListenerTake.java:65)

      2012-09-30 12:50:08,067 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:80)

      2012-09-30 12:50:08,068 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:548)

      2012-09-30 12:50:08,068 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:541)

      2012-09-30 12:50:08,068 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionDestroyScope.execute(AtomicOperationTransitionDestroyScope.java:115)

      2012-09-30 12:50:08,069 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:80)

      2012-09-30 12:50:08,075 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:548)

      2012-09-30 12:50:08,076 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:541)

      2012-09-30 12:50:08,076 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerEnd.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerEnd.java:36)

      2012-09-30 12:50:08,077 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)

      2012-09-30 12:50:08,077 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:80)

      2012-09-30 12:50:08,077 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:548)

      2012-09-30 12:50:08,078 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:541)

      2012-09-30 12:50:08,078 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49)

      2012-09-30 12:50:08,078 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:80)

      2012-09-30 12:50:08,079 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:548)

      2012-09-30 12:50:08,079 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:541)

      2012-09-30 12:50:08,079 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:381)

      2012-09-30 12:50:08,079 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performOutgoingBehavior(BpmnActivityBehavior.java:102)

      2012-09-30 12:50:08,080 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performDefaultOutgoingBehavior(BpmnActivityBehavior.java:51)

      2012-09-30 12:50:08,080 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.leave(FlowNodeActivityBehavior.java:44)

      2012-09-30 12:50:08,086 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.execute(FlowNodeActivityBehavior.java:36)

      2012-09-30 12:50:08,086 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:44)

      2012-09-30 12:50:08,087 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:80)

      2012-09-30 12:50:08,087 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:548)

      2012-09-30 12:50:08,087 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:541)

      2012-09-30 12:50:08,090 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.pvm.runtime.AtomicOperationProcessStartInitial.eventNotificationsCompleted(AtomicOperationProcessStartInitial.java:46)

      2012-09-30 12:50:08,090 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)

      2012-09-30 12:50:08,090 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:80)

      2012-09-30 12:50:08,091 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:548)

      2012-09-30 12:50:08,091 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:541)

      2012-09-30 12:50:08,091 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.pvm.runtime.AtomicOperationProcessStart.eventNotificationsCompleted(AtomicOperationProcessStart.java:45)

      2012-09-30 12:50:08,091 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)

      2012-09-30 12:50:08,092 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:80)

      2012-09-30 12:50:08,092 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:548)

      2012-09-30 12:50:08,092 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:541)

      2012-09-30 12:50:08,093 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.persistence.entity.ExecutionEntity.start(ExecutionEntity.java:335)

      2012-09-30 12:50:08,100 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:72)

      2012-09-30 12:50:08,100 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.jobexecutor.TimerStartEventJobHandler.execute(TimerStartEventJobHandler.java:38)

      2012-09-30 12:50:08,100 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.persistence.entity.JobEntity.execute(JobEntity.java:78)

      2012-09-30 12:50:08,100 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.persistence.entity.TimerEntity.execute(TimerEntity.java:62)

      2012-09-30 12:50:08,101 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.cmd.ExecuteJobsCmd.execute(ExecuteJobsCmd.java:67)

      2012-09-30 12:50:08,101 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24)

      2012-09-30 12:50:08,101 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:42)

      2012-09-30 12:50:08,102 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.interceptor.JtaTransactionInterceptor.execute(JtaTransactionInterceptor.java:59)

      2012-09-30 12:50:08,102 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)

      2012-09-30 12:50:08,102 ERROR    [stderr] (pool-11-thread-2)           at org.activiti.engine.impl.jobexecutor.ExecuteJobsRunnable.run(ExecuteJobsRunnable.java:46)

      2012-09-30 12:50:08,102 ERROR    [stderr] (pool-11-thread-2)           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

      2012-09-30 12:50:08,103 ERROR    [stderr] (pool-11-thread-2)           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

      2012-09-30 12:50:08,103 ERROR    [stderr] (pool-11-thread-2)           at java.lang.Thread.run(Thread.java:662)

      2012-09-30 12:50:08,103 ERROR    [stderr] (pool-11-thread-2) Caused by: java.lang.NullPointerException

      2012-09-30 12:50:08,104 ERROR    [stderr] (pool-11-thread-2)           at org.jboss.as.weld.ejb.SessionObjectReferenceImpl.getBusinessObject(SessionObjectReferenceImpl.java:93)

      2012-09-30 12:50:08,104 ERROR    [stderr] (pool-11-thread-2)           ... 75 more

      {noformat}

        • 1. Re: Deployment of EJB fails sometimes
          Wolf-Dieter Fink Master

          How the application is packed?

          What you mean by job executor and its threads?

           

          I suppose that the application is start in parallel without dependency and because the multithreaded start  it may happen that the executor is active before the used application is up.

          • 2. Re: Deployment of EJB fails sometimes
            joysn joe Newbie

            The application is packed as ear, containing one war, two ejb modules and one persistence unit packed as jar in the ears lib folder. The deployment descriptor is prepared in a way that the ejb modules are initialized first and the war is initialized last through initialize-in-order set to true.

             

            The job executor is a component of one of the libraries i use, Activiti as u can see in the stack trace. It is in one of the jars which is placed in the lib folder. That library uses a SPI and CDI to initialize itself and its components. And the job executor is used to trigger a process which consists of a sequence of tasks, each task acesses an ejb. But on the first task the ejb is not accessable.

             

            First i thought too it is because of the multithreaded start, but in the log i can see that the dependent CheckNewOrdersTask is already configured 12:49:53,229, but the exception happens 12:50:07,533, which is 14 seconds later...

             

            And how can i define dependency for the startup? i think i can not influence the CDI based start of the external librabry? This should happen after all EJBs are _really_ available..

            • 3. Re: Deployment of EJB fails sometimes
              Wolf-Dieter Fink Master

              If CDI is used the dependency should be clear and as you mentioned there is a 'long' delay between the initialization and the error, but I think the assumption is not correct because the message "Deployed erp.ear.ear" is at 12:50:07.205. I suppose that the erp.ear is the application with the lib.

               

              So do you have longer initialization in PostConstruct?

              Can you reproduce the behavior with a simple example?