Portal 7.3 On Vitria Product With Java 1.5.0_06, Throws Classcastexception. (Doc ID 556498.1)

Last updated on SEPTEMBER 21, 2016

Applies to:

Oracle Communications Billing and Revenue Management - Version: 7.3.0.0.0
This problem can occur on any platform.

Symptoms

On configuring Portal 7.3 on Vitria Business Ware 4x with Java 1.5.0_06, we get the ClassCastException Exception.

ERROR::

This happens when in the execution of the following code snippet at the line “SparseArray arr =
(SparseArray) val”


private void getFieldPermissions(String objtype) throws Exception {

// Value for ‘objtype’ is “account”.
try {
FList objList = new FList();
Poid aPoid = new Poid(db_, -1, "/dd/objects/*");
objList.set(FldPoid.getInst(), aPoid);
FList objDesc = new FList();
objDesc.set(FldName.getInst(), objtype);
objList.setElement(FldObjDesc.getInst(), 0, objDesc);
FList outList = ctx_.opcode(PortalOp.SDK_GET_OBJ_SPECS, objList);

Enumeration enVal = outList.elements();
Object val = enVal.nextElement();
if (val instanceof Poid) {
val = enVal.nextElement();
}
SparseArray arr = (SparseArray) val;
Enumeration enVal2 = arr.elements();
Object val2 = enVal2.nextElement();
FList list = (FList) val2;
walkObject(list);

}
catch (EBufException eb) {
handleEBufException(eb, "field", 0, 0, objtype);
}
}

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