Environment
Novell Operations Center Business Service Manager 4.7
Novell Operations Center Business Service Manager 5.0Situation
"createElement" script operation using load("util/orgs") as server side script
throws an error as follows.
ERROR Script.Reporter - In script "Operation 'Recreate_IPC'", Can't find method
com.mosol.Adapter.Formula.OrgClass.newElement(com.mosol.Formula.Server.SessionImpl,com.mosol.Adapter.Formula.Org,string,java.lang.String[],java.lang.Object[]).
If it is run as client side script, it will work. But running as server side script causes the above error.
throws an error as follows.
ERROR Script.Reporter - In script "Operation 'Recreate_IPC'", Can't find method
com.mosol.Adapter.Formula.OrgClass.newElement(com.mosol.Formula.Server.SessionImpl,com.mosol.Adapter.Formula.Org,string,java.lang.String[],java.lang.Object[]).
If it is run as client side script, it will work. But running as server side script causes the above error.
Resolution
In order to run this as a server side script, you can use the following workaround.
In util/orgs, changing:
orgClass.newElement(session, parent, orgInfo.name, names, values )
to:
orgClass.newElement(session.getReference(), parent, orgInfo.name, names,
values )
solves the error if this is run as serverside script
orgClass.newElement(session, parent, orgInfo.name, names, values )
to:
orgClass.newElement(session.getReference(), parent, orgInfo.name, names,
values )
solves the error if this is run as serverside script