My Oracle Support Banner

java.lang.ClassCastException errors might be thrown at runtime when executing PAPI calls (Doc ID 1086412.1)

Last updated on AUGUST 06, 2018

Applies to:

Oracle Business Process Management Suite - Version 6.0.5 to 10.3.1
Information in this document applies to any platform.
***Checked for relevance on 05-Nov-2012***

Symptoms

While performing PAPI calls from a PAPI client, when searching instances with processesGetInstancesByFilter you can search for "InProcess" instances but when you search for "Completed" or "Aborted" instances you may get a ClassCastException exception.

Other PAPI operations could also throw the same exception.

Logs from Weblogic Server:


<Mar 29, 2010 2:34:15 PM MEST> <Warning> <RMI> <BEA-080003> <RuntimeException thrown by rmi server: fuego.ejbengine.EJBProcessControl_1zamnl_EOImpl.getInstancesByFilter(Lfuego.papi.impl.j2ee.EJBSecureEngineInfo;Ljava.lang.String;Lfuego.papi.Filter;)
java.lang.ClassCastException: cannot assign instance of java.util.HashSet to field fuego.view.FilterImpl.attributes of type java.util.List in instance of fuego.view.FilterImpl.
java.lang.ClassCastException: cannot assign instance of java.util.HashSet to field fuego.view.FilterImpl.attributes of type java.util.List in instance of fuego.view.FilterImpl
at java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2032)
at java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1212)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1953)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
Truncated. see log file for complete stacktrace



Logs from Enterprise BPM Engine :


Could not execute filter for any process.
Internal Exceptions:
>> engine_name:
Cannot retrieve instances from engine 'engine_name'.
fuego.papi.exception.FilterBatchOperationException: Could not execute filter for any process.
Internal Exceptions:
>> engine_name:
Cannot retrieve instances from engine 'engine_name'.
at fuego.papi.impl.InstanceCache.getInstancesByFilter(InstanceCache.java:351)
at fuego.papi.impl.ProcessServiceImpl.getInstancesByFilter(ProcessServiceImpl.java:1348)
at fuego.papi.impl.ProcessServiceSessionImpl.processesGetInstancesByFilter(ProcessServiceSessionImpl.java:2390)>>>>

Cause

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

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


In this Document
Symptoms
Cause
Solution

This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review.
My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.