"createElement" script operation called using load("util/orgs") as server side script throws an error

  • 7009454
  • 29-Sep-2011
  • 26-Jun-2012

Environment

Novell Operations Center Business Service Manager 4.7
Novell Operations Center Business Service Manager 5.0

Situation

"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.

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

Status

Reported to Engineering