My Oracle Support Banner

在BPM 12211上当调用API InstanceManagementService.cancelProcessInstance取消BPM 实例时失败并抛出NullPointerException (Doc ID 2207190.1)

Last updated on NOVEMBER 23, 2016

适用于:

Oracle Business Process Management Suite - 版本 12.2.1.1.0 和更高版本
本文档所含信息适用于所有平台

症状

在BPM 12211上当调用API InstanceManagementService.cancelProcessInstance取消BPM 实例时直接失败,并抛出如下异常信息:

It throws the following error:
Exception
exception.70206.type: error
exception.70206.severity: 2
exception.70206.name: Error cancelling process instance.
exception.70206.description: Error cancelling instance with id 110011.
exception.70206.fix: Verify server log to find the problem cause.
 
  at oracle.bpm.services.instancemanagement.impl.InstanceManagementService.cancelProcessInstance(InstanceManagementService.java:744)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
  at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
  at oracle.bpel.services.workflow.common.WorkflowServiceCacheEventAdvice.invoke(WorkflowServiceCacheEventAdvice.java:117)
  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
  at com.sun.proxy.$Proxy463.cancelProcessInstance(Unknown Source)
  at oracle.bpm.services.instancemanagement.ejb.InstanceManagementServiceBean.cancelProcessInstance(InstanceManagementServiceBean.java:134)
  at oracle.bpm.services.instancemanagement.ejb.InstanceManagementServiceBean_sqa2w0_IInstanceManagementServiceRemoteImpl.__WL_invoke(Unknown Source)
  at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:34)
  at oracle.bpm.services.instancemanagement.ejb.InstanceManagementServiceBean_sqa2w0_IInstanceManagementServiceRemoteImpl.cancelProcessInstance(Unknown Source)
  at oracle.bpm.services.instancemanagement.ejb.InstanceManagementServiceBean_sqa2w0_IInstanceManagementServiceRemoteImpl_WLSkel.invoke(Unknown Source)
  at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:645)
  at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:248)
  at weblogic.rmi.internal.BasicServerRef$2.run(BasicServerRef.java:534)
  at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:368)
  at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:163)
  at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:531)
  at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:137)
  at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:348)
  at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:333)
  at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:54)
  at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)
  at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:617)
  at weblogic.work.ExecuteThread.execute(ExecuteThread.java:397)
  at weblogic.work.ExecuteThread.run(ExecuteThread.java:346)
Caused by: java.lang.NullPointerException
  at oracle.bpm.bpmn.engine.ejb.impl.BPMNInstanceManagerBean.cancelInstance(BPMNInstanceManagerBean.java:278)
  at oracle.bpm.bpmn.engine.ejb.impl.BPMNInstanceManagerBean_j9rppc_IBPMNCubeInstanceManagerLocalBeanImpl.__WL_invoke(Unknown Source)
  at weblogic.ejb.container.internal.SessionLocalMethodInvoker.invoke(SessionLocalMethodInvoker.java:33)
  at oracle.bpm.bpmn.engine.ejb.impl.BPMNInstanceManagerBean_j9rppc_IBPMNCubeInstanceManagerLocalBeanImpl.cancelInstance(Unknown Source)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
  at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)
  at com.sun.proxy.$Proxy453.cancelInstance(Unknown Source)
  at oracle.bpm.services.instancemanagement.impl.InstanceManagementService.cancelProcessInstance(InstanceManagementService.java:733)
  ... 30 more
Caused by: BPM-71300
 
Exception
exception.71300.type: error
exception.71300.severity: 2
exception.71300.name: Audit persistence error.
 
  at oracle.bpm.bpmn.engine.instancemanagement.impl.InternalInstanceManagementService.markAuditCancelled(InternalInstanceManagementService.java:570)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
  at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
  at oracle.bpel.services.workflow.common.WorkflowServiceCacheEventAdvice.invoke(WorkflowServiceCacheEventAdvice.java:117)
  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
  at com.sun.proxy.$Proxy462.markAuditCancelled(Unknown Source)
  at oracle.bpm.bpmn.engine.ejb.impl.BPMNInstanceManagerBean.cancelInstance(BPMNInstanceManagerBean.java:272)
  ... 41 more
Caused by: javax.ejb.EJBTransactionRolledbackException: EJB Exception:
  at weblogic.ejb.container.internal.BaseLocalObject.handleSystemException(BaseLocalObject.java:413)
  at weblogic.ejb.container.internal.BaseLocalObject.postInvoke1(BaseLocalObject.java:236)
  at weblogic.ejb.container.internal.BaseLocalObject.__WL_postInvokeTxRetry(BaseLocalObject.java:192)
  at weblogic.ejb.container.internal.SessionLocalMethodInvoker.invoke(SessionLocalMethodInvoker.java:46)
  at oracle.bpm.bpmn.engine.ejb.impl.AuditServiceBean_3ck6ms_AuditServiceLocalImpl.markAuditCancelled(Unknown Source)
  at oracle.bpm.bpmn.engine.instancemanagement.impl.InternalInstanceManagementService.markAuditCancelled(InternalInstanceManagementService.java:565)
  ... 53 more
Caused by: java.lang.NullPointerException
  at oracle.bpm.bpmn.engine.service.audit.persistence.AuditKeyGenerator.nextId(AuditKeyGenerator.java:140)
  at oracle.bpm.bpmn.engine.service.audit.impl.AuditService.markAuditCancelled(AuditService.java:454)
  at oracle.bpm.bpmn.engine.ejb.impl.AuditServiceBean.markAuditCancelled(AuditServiceBean.java:275)
  at oracle.bpm.bpmn.engine.ejb.impl.AuditServiceBean_3ck6ms_AuditServiceLocalImpl.__WL_invoke(Unknown Source)
  at weblogic.ejb.container.internal.SessionLocalMethodInvoker.invoke(SessionLocalMethodInvoker.java:33)
  ... 55 more
 
  at bpm.lib.impl.BasicProcessService.cancelProcess(BasicProcessService.java:504)
  at bpm.lib.test.ProcessServiceTest.testCancelProcess(ProcessServiceTest.java:116)
  at lib.test.ProcessServiceTest.main(ProcessServiceTest.java:146)

原因

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


文档内容
症状
原因
解决方案
参考

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.