Entry
Error in create: Failed to decode attrValueList
Apr 10th, 2001 09:48
Engineer TCSI,
Q:When creating CM object from the GUI why do I get the following error
message in a popup dialog box:
Error in create: Failed to decode attrValueList
A:It is because the attribute property called 'type' specified in the
NVL file for this CM object has the incorrect value in relation to the
attribute type specified in the mosu file.
E.g, if you have the following mosu def:
CLASS SUNWorkStation: fmtoNode
{
rw string ipAddress;
...
};
And you specify it has the following NVL def:
NVL SNMPDevice
com.cpi.jweaver.meta.ClassDef SNMPDevice {
...
com.cpi.jweaver.meta.Attribute attribute {
String name "SNMPDevice::ipAddress"
int type 3
...
}
}
Since the 'type 3' refers to an int not a string then you will see the
error.
Refer to the J-Weaver Reference guide (section 2.2) for the correct
'type ?' to use. In this case it should be 'type 2'
Below is the complete output in the gui xterm....
====================== CatGui ==============================
CreateViewPanel.actionPerformed: OK
Values: {SUNWorkStation::ipAddress=137.134.5.51,
MySUNWorkStation::sysContact=0, cmbsRelatable::name=horsehead}
Creating Element ...
Debug(3)OSPServices
Debug(3)OSPServices
Debug(3)OSPServices
Debug(3)locationServersRefs is non-empty. Just sending it
[ New IIOP Connection (horsehead.tcsi.com,LocSrvTOM6999, null,,pid=0) ]
Debug(3)OSPServices
Debug(3)OSPServices
Debug(3)OSPServices
[ New IIOP Connection (horsehead.tcsi.com,NS, null,,pid=0) ]
Information: Creating object for: MySUNWorkStation
[ New IIOP Connection (horsehead.tcsi.com,TOM81, null,,pid=0) ]
Error in create: Failed to decode attrValueList
com.tcsi.osp.OSP.OSPException
at
com.tcsi.osp.OSP.OSPExceptionHelper.read(OSPExceptionHelper.java,
Compiled Code)
at
com.tcsi.osp.OSP.OSPExceptionHelper.extract(OSPExceptionHelper.java,
Compiled Code)
at com.tcsi.osp.OSP._FactoryStub.CreateObject(_FactoryStub.java,
Compiled Code)
at
com.tcsi.catalant.cspSupport.OSPMediator.create(OSPMediator.java,
Compiled Code)
at
com.tcsi.catalant.cspSupport.OSPMediator.executeSingleOperation(OSPMedia
tor.java, Compiled Code)
at
com.tcsi.catalant.cspSupport.OSPMediator.executeRemoteOp(OSPMediator.jav
a, Compiled Code)
at
com.cpi.jweaver.util.RemoteOpMediator$OpWorker.construct(RemoteOpMediato
r.java, Compiled Code)
at com.cpi.jweaver.util.SwingWorker$2.run(SwingWorker.java,
Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)
Information: Callback invoked
Error: Operation timed out