java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String During getInstancesByFilter Method Call (Doc ID 1456336.1)

Last updated on JULY 03, 2017

Applies to:

Oracle Business Process Management Suite - Version 10.3 to 10.3
Information in this document applies to any platform.

Symptoms

When making a getInstancesByFilter call you receive the following exception:

fuego.papi.exception.FilterBatchOperationException: Could not execute filter for any process.
Internal Exceptions:
>> albpmaengine:
Cannot retrieve instances from engine 'albpmaengine'.
at fuego.papi.impl.InstanceCache.getInstancesByFilter(InstanceCache.java:384)
at fuego.papi.impl.ProcessServiceImpl.getInstancesByFilter(ProcessServiceImpl.java:1293)
at fuego.papi.impl.ProcessServiceSessionImpl.processesGetInstancesByFilter(ProcessServiceSessionImpl.java:2407)
at fuegoblock.papi.ProcessService.getInstancesByFilter(ProcessService.java:166)
at xobject.Module.HelperFunctions.sendReminderEmail(HelperFunctions.xcdl:37)
at org.DailyReminder.Default_1_0.Instance.CIL_sendEmails(Instance.xcdl:86)
at org.DailyReminder.Default_1_0.Instance.CIL_sendEmails(Instance.xcdl)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at fuego.server.execution.EngineExecutionContext.invokeMethodAsCil(EngineExecutionContext.java:1091)
at fuego.server.execution.EngineExecutionContext.runCil(EngineExecutionContext.java:1295)
at fuego.server.execution.microactivity.ComponentExecutionMicroActivity.runCil(ComponentExecutionMicroActivity.java:126)
at fuego.server.execution.microactivity.ComponentExecutionMicroActivity.execute(ComponentExecutionMicroActivity.java:84)
at fuego.server.execution.microactivity.MicroActivityEngineExecutionHandler.executeActivity(MicroActivityEngineExecutionHandler.java:57)
at fuego.server.execution.ImmediateActivity.execute(ImmediateActivity.java:42)
at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304)
at fuego.transaction.TransactionAction.startNestedTransaction(TransactionAction.java:527)
at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:548)
at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
at fuego.server.execution.DefaultEngineExecution.executeAutomaticWork(DefaultEngineExecution.java:62)
at fuego.server.execution.EngineExecution.executeAutomaticWork(EngineExecution.java:42)
at fuego.server.execution.ToDoItem.executeAutomaticWork(ToDoItem.java:267)
at fuego.ejbengine.ItemExecutionBean$1.execute(ItemExecutionBean.java:235)
at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304)
at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:470)
at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551)
at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
at fuego.server.execution.EngineExecution.executeImmediate(EngineExecution.java:66)
at fuego.ejbengine.ItemExecutionBean.processMessage(ItemExecutionBean.java:221)
at fuego.ejbengine.ItemExecutionBean.onMessage(ItemExecutionBean.java:120)
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4547)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:4233)
at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3709)
at weblogic.jms.client.JMSSession.access$000(JMSSession.java:114)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5058)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

Inner Exceptions:
>> albpmaengine:
fuego.papi.exception.InstancesNotAvailableInEngineException: Cannot retrieve instances from engine 'albpmaengine'.
at fuego.papi.impl.InstanceCache.getInstancesByFilter(InstanceCache.java:369)
at fuego.papi.impl.ProcessServiceImpl.getInstancesByFilter(ProcessServiceImpl.java:1293)
at fuego.papi.impl.ProcessServiceSessionImpl.processesGetInstancesByFilter(ProcessServiceSessionImpl.java:2407)
at fuegoblock.papi.ProcessService.getInstancesByFilter(ProcessService.java:166)
at xobject.Module.HelperFunctions.sendReminderEmail(HelperFunctions.xcdl:37)
at org.DailyReminder.Default_1_0.Instance.CIL_sendEmails(Instance.xcdl:86)
at org.DailyReminder.Default_1_0.Instance.CIL_sendEmails(Instance.xcdl)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at fuego.server.execution.EngineExecutionContext.invokeMethodAsCil(EngineExecutionContext.java:1091)
at fuego.server.execution.EngineExecutionContext.runCil(EngineExecutionContext.java:1295)
at fuego.server.execution.microactivity.ComponentExecutionMicroActivity.runCil(ComponentExecutionMicroActivity.java:126)
at fuego.server.execution.microactivity.ComponentExecutionMicroActivity.execute(ComponentExecutionMicroActivity.java:84)
at fuego.server.execution.microactivity.MicroActivityEngineExecutionHandler.executeActivity(MicroActivityEngineExecutionHandler.java:57)
at fuego.server.execution.ImmediateActivity.execute(ImmediateActivity.java:42)
at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304)
at fuego.transaction.TransactionAction.startNestedTransaction(TransactionAction.java:527)
at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:548)
at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
at fuego.server.execution.DefaultEngineExecution.executeAutomaticWork(DefaultEngineExecution.java:62)
at fuego.server.execution.EngineExecution.executeAutomaticWork(EngineExecution.java:42)
at fuego.server.execution.ToDoItem.executeAutomaticWork(ToDoItem.java:267)
at fuego.ejbengine.ItemExecutionBean$1.execute(ItemExecutionBean.java:235)
at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304)
at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:470)
at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551)
at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
at fuego.server.execution.EngineExecution.executeImmediate(EngineExecution.java:66)
at fuego.ejbengine.ItemExecutionBean.processMessage(ItemExecutionBean.java:221)
at fuego.ejbengine.ItemExecutionBean.onMessage(ItemExecutionBean.java:120)
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4547)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:4233)
at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3709)
at weblogic.jms.client.JMSSession.access$000(JMSSession.java:114)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5058)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: fuego.papi.impl.EngineExecutionException: Process execution engine execution error.
at fuego.papi.impl.j2ee.EJBProcessControlHandler.doInvoke(EJBProcessControlHandler.java:158)
at fuego.papi.impl.j2ee.EJBProcessControlHandler.invoke(EJBProcessControlHandler.java:70)
at $Proxy96.getInstancesByFilter(Unknown Source)
at fuego.papi.impl.InstanceCache.readFromEngine(InstanceCache.java:507)
at fuego.papi.impl.InstanceCache.getInstancesByFilter(InstanceCache.java:472)
at fuego.papi.impl.InstanceCache.getInstancesByFilter(InstanceCache.java:327)
... 44 more
Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
at fuego.server.InstancesFilter.fixParticipant(InstancesFilter.java:300)
at fuego.server.InstancesFilter.fixFilter(InstancesFilter.java:236)
at fuego.server.InstancesFilter.(InstancesFilter.java:112)
at fuego.server.AbstractProcessBean.getInstancesByFilter(AbstractProcessBean.java:1651)
at fuego.ejbengine.EJBProcessControlAdapter.getInstancesByFilter(EJBProcessControlAdapter.java:370)
at fuego.ejbengine.EJBProcessControl_1zamnl_EOImpl.getInstancesByFilter(EJBProcessControl_1zamnl_EOImpl.java:4535)
at fuego.papi.impl.j2ee.EJBProcessControlInterfaceWrapper.getInstancesByFilter(EJBProcessControlInterfaceWrapper.java:1185)
at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at fuego.papi.impl.AbstractProcessControlHandler.invokeInternal(AbstractProcessControlHandler.java:72)
at fuego.papi.impl.j2ee.EJBProcessControlHandler.doInvoke(EJBProcessControlHandler.java:116)
... 49 more

 

Cause

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 hundreds of Community platforms