IBM Support

Error FNRCE0066E: E_UNEXPECTED_EXCEPTION while running Java client that uses Case Management API

Question & Answer


Question

Java Client applications that use Case Management API to locate and update properties in a Case instance gets error FNRCE0066E: E_UNEXPECTED_EXCEPTION. 

The Java stack trace for the error is: 

Exception in thread "main" com.filenet.api.exception.EngineRuntimeException: FNRCE0066E: E_UNEXPECTED_EXCEPTION: Unhandled exception occured. Message: null failedBatchItem=0 errorStack={
	at com.ibm.casemgmt.intgimpl.eventhandler.CaseEventHandler.onEvent(CaseEventHandler.java:101)
	at com.filenet.engine.handlers.EventActionWrapper.onEvent(EventActionWrapper.java:60)
	at com.filenet.engine.queueitem.SubscriptionProcessor.execute(SubscriptionProcessor.java:1254)
	at com.filenet.engine.queueitem.SubscriptionProcessor.fireOrQueue(SubscriptionProcessor.java:1071)
	at com.filenet.engine.queueitem.SubscriptionProcessor.processEvent(SubscriptionProcessor.java:999)
	at com.filenet.engine.queueitem.SubscriptionProcessor.processEvents(SubscriptionProcessor.java:908)
	at com.filenet.engine.queueitem.SubscriptionProcessor.fetchActionAndProcessEvents(SubscriptionProcessor.java:885)
	at com.filenet.engine.queueitem.SubscriptionProcessor.postProcessSubscriptions(SubscriptionProcessor.java:631)
	at com.filenet.engine.persist.SubscribablePersister.postExecuteChange(SubscribablePersister.java:375)
	at com.filenet.engine.persist.ReplicablePersister.postExecuteChange(ReplicablePersister.java:130)
	at com.filenet.engine.persist.FolderPersister.postExecuteChange(FolderPersister.java:237)
	at com.filenet.engine.persist.IndependentPersister.executeChangeWork(IndependentPersister.java:539)
	at com.filenet.engine.persist.IndependentPersister.executeChange(IndependentPersister.java:322)
	at com.filenet.engine.persist.SubscribablePersister.executeChange(SubscribablePersister.java:177)
	at com.filenet.engine.jca.impl.RequestBrokerImpl.executeChanges(RequestBrokerImpl.java:1481)
	at com.filenet.engine.jca.impl.RequestBrokerImpl.executeChanges(RequestBrokerImpl.java:1338)
	at com.filenet.engine.ejb.EngineCoreBean._executeChanges(EngineCoreBean.java:411)
	at com.filenet.engine.ejb.EngineCoreBean.executeChanges(EngineCoreBean.java:385)
	at com.filenet.engine.ejb.EJSLocalStatelessEngineCore_22877cb1.executeChanges(Unknown Source)
	at com.filenet.engine.ejb.EngineBean.executeChangesWithRetry(EngineBean.java:1018)
	at com.filenet.engine.ejb.EngineBean.executeChanges(EngineBean.java:958)
	at com.filenet.apiimpl.transport.ejbstubs.EJSLocalStatelessEngine_2e64c374.executeChanges(Unknown Source)
	at com.filenet.apiimpl.transport.ejb.EnginePortLocal.executeChanges(EnginePortLocal.java:53)
	at com.filenet.apiimpl.wsi.ServiceSessionNst$2.run(ServiceSessionNst.java:1597)
	at java.security.AccessController.doPrivileged(AccessController.java:739)
	at javax.security.auth.Subject.doAs(Subject.java:570)
	at com.ibm.websphere.security.auth.WSSubject.doAs(WSSubject.java:196)
	at com.ibm.websphere.security.auth.WSSubject.doAs(WSSubject.java:153)
	at sun.reflect.GeneratedMethodAccessor223.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
	at java.lang.reflect.Method.invoke(Method.java:508)
	at com.filenet.apiimpl.util.J2EEUtilWS.doAs(J2EEUtilWS.java:235)
	at com.filenet.apiimpl.wsi.ServiceSessionNst.sMakeInternalEJBCall(ServiceSessionNst.java:1460)
	at com.filenet.apiimpl.wsi.ServiceSessionNst.sHandleIncomingRequest(ServiceSessionNst.java:1304)
	at com.filenet.engine.wsi.ListenerNst.service(ListenerNst.java:202)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
	at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1233)
	at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:782)
	at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:481)
	at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
	at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1114)
	at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:87)
	at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:949)
	at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1817)
	at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:213)
	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:463)
	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:530)
	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:316)
	at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:88)
	at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
	at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
	at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
	at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
	at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
	at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
	at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1892)
Caused by: java.lang.NullPointerException failedBatchItem=0
	at com.filenet.apiimpl.core.EngineObjectUtil.getScope(EngineObjectUtil.java:492)
	at com.filenet.apiimpl.core.EngineObjectImpl.getScope(EngineObjectImpl.java:531)
	at com.filenet.apiimpl.core.EngineObjectImpl.getObjectStore(EngineObjectImpl.java:541)
	at com.ibm.casemgmt.intgimpl.eventhandler.BPMUtil.convertBOValue(BPMUtil.java:229)
	at com.ibm.casemgmt.intgimpl.eventhandler.BPMUtil.convertValue(BPMUtil.java:218)
	at com.ibm.casemgmt.intgimpl.eventhandler.BPMUtil.convertValue(BPMUtil.java:205)
	at com.ibm.casemgmt.intgimpl.eventhandler.CaseUpdateEventHandler.bawSyncUpContentObject(CaseUpdateEventHandler.java:109)
	at com.ibm.casemgmt.intgimpl.eventhandler.CaseUpdateEventHandler.handleEvent(CaseUpdateEventHandler.java:78)
	at com.ibm.casemgmt.intgimpl.eventhandler.CaseEventHandler.onEvent(CaseEventHandler.java:87)
	... 56 more
}
	at com.filenet.apiimpl.wsi.serialization.core.ExceptionSerialization.deserialize(ExceptionSerialization.java:196)
	at com.filenet.apiimpl.wsi.ServiceSessionNst.cDeserializeSoapFault(ServiceSessionNst.java:930)
	at com.filenet.apiimpl.wsi.ServiceSessionNst.cReqRespPath(ServiceSessionNst.java:399)
	at com.filenet.apiimpl.wsi.ServiceSessionNst.executeChanges(ServiceSessionNst.java:154)
	at com.filenet.apiimpl.util.SessionHandle.executeChanges(SessionHandle.java:112)
	at com.filenet.apiimpl.core.Session.callExecuteChanges(Session.java:184)
	at com.filenet.apiimpl.core.Session.executeChanges(Session.java:571)
	at com.filenet.apiimpl.core.Session.executeChange(Session.java:898)
	at com.filenet.apiimpl.core.IndependentlyPersistableObjectImpl.save(IndependentlyPersistableObjectImpl.java:76)
	at com.ibm.casemgmt.api.Case.saveHelper(Case.java:1598)
	at com.ibm.casemgmt.api.Case.save(Case.java:1419)
	at <Business Class>.connection.Main.main(Main.java:229)

[{"Type":"MASTER","Line of Business":{"code":"LOB76","label":"Data Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SS8JB4","label":"IBM Business Automation Workflow"},"ARM Category":[{"code":"a8m3p000000hAgLAAU","label":"Case Management-\u003ECase App Development-\u003EContent Platform Engine"}],"ARM Case Number":"TS005849392","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"19.0.0;20.0.0;21.0.1"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
30 December 2021

UID

ibm16537680