Using OJDL to modify the default class of service in a MQCPHB

(Doc ID 1359768.1)

Last updated on SEPTEMBER 21, 2016

Applies to:

Oracle Communications IP Service Activator - Version: 7.0.0 and later   [Release: 7.0.0 and later ]
Information in this document applies to any platform.

Goal

When we are trying to modify the default class of service in an MQCPHB we keep hitting the "cannot resolve to object" error. Here is the code we are using


System.out.println("\nModifying PhbMqc called \"Default Class of Service\"...");


EomObject defaultCosMqcPhb = null;
EomIdentifier defaultCosMqcPhbId = new EomIdentifier("PHBGroupMqc", "Default Class of Service", mqcPhbGroup.getPath() + "/PHBGroupMqc:\"Default Class of Service\"");


if(defaultCosMqcPhbId!=null){
System.out.println("defaultCosMqcPhbId : " +defaultCosMqcPhbId.getName());
defaultCosMqcPhb = session.createEomObject(defaultCosMqcPhbId);
defaultCosMqcPhb.setAttribute("Action", "66");
defaultCosMqcPhb.setAttribute("Order", "6");
tx.modifyObject(defaultCosMqcPhb);
}

Here is the error we see

Modifying PhbMqc called "Default Class of Service"...
defaultCosMqcPhbId : Default Class of Service
com.mslv.osa.ojdl.eom.EomOimException: CommandExecutionError.ERR_CommitFailure:
Commit failed on command 2 modify /[1]/[6044]/[15148]/[15148]/PHBGroupMqc:"Default Class of Service" order="6" action="66"
CommandExecutionError.ERR_CannotResolveToObject: Cannot Resolve to object: [15148]
at com.mslv.osa.ojdl.eom.EomSession.sendCommandtoOIM(EomSession.java:406)
at com.mslv.osa.ojdl.eom.EomTransaction.commit(EomTransaction.java:394)
at com.mslv.osa.ojdl.eom.EomTransaction.commit(EomTransaction.java:376)
at com.kron.netright.qos.policyMap.service.impl.QoSServiceImpl.createMqcPhbGroup(QoSServiceImpl.java:313)


Solution

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