CIM_RegisteredProfile.tmpclass.tmp:9:26: The prefix "xsi" for attribute "xsi:nil" associated with an element type "Caption" is .

Bug ID:225
Project:Opentestman
Component:Code
Category:bug report
Priority:normal
Assigned:akash_malhotra
Status:closed
Description

Please find a part of the winrm enumeration of the instances as follows:

C:\>winrm enumerate http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_RegisteredProfile?__cimna
mespace=root/interop -r:: -u: -p: -un -a:basic -encoding:utf-8
CIM_RegisteredProfile
AdvertiseTypeDescriptions = WS-Identify
AdvertiseTypes = 1
Caption = null
Description = null
ElementName = null
InstanceID = CIM:CSRegisteredProfile:1
OtherRegisteredOrganization = null
RegisteredName = Base Server
RegisteredOrganization = 2
RegisteredVersion = 1.0.0

CIM_RegisteredProfile
AdvertiseTypeDescriptions = WS-Identify
AdvertiseTypes = 1
Caption = null
Description = null
ElementName = null
InstanceID = CIM:SPRegisteredProfile:1
OtherRegisteredOrganization = null
RegisteredName = Service Processor
RegisteredOrganization = 2
RegisteredVersion = 1.0.0

CIM_RegisteredProfile
AdvertiseTypeDescriptions = WS-Identify
AdvertiseTypes = 1
Caption = null
Description = null
ElementName = null
InstanceID = CIM:SMCLPAdminDomainRegisteredProfile:1
OtherRegisteredOrganization = null
RegisteredName = SM CLP Admin Domain
RegisteredOrganization = 2
RegisteredVersion = 1.0.0

CIM_RegisteredProfile
AdvertiseTypeDescriptions = WS-Identify
AdvertiseTypes = 1
Caption = null
Description = null
ElementName = null
InstanceID = CIM:PowerStateManagementRegisteredProfile:1
OtherRegisteredOrganization = null
RegisteredName = Power State Management
RegisteredOrganization = 2
RegisteredVersion = 1.0.0

CIM_RegisteredProfile
AdvertiseTypeDescriptions = WS-Identify
AdvertiseTypes = 1
Caption = null
Description = null
ElementName = null
InstanceID = CIM:ADClientRegisteredProfile:1
OtherRegisteredOrganization = CIM
RegisteredName = Active Directory Client
RegisteredOrganization = 1
RegisteredVersion = 1.0.0

CIM_RegisteredProfile
AdvertiseTypeDescriptions = WS-Identify
AdvertiseTypes = 1
Caption = null
Description = null
ElementName = null
InstanceID = CIM:MFARegisteredProfile:1
OtherRegisteredOrganization = CIM
RegisteredName = Multi Factor Authentication
RegisteredOrganization = 1
RegisteredVersion = 1.0.0

CIM_RegisteredProfile
AdvertiseTypeDescriptions = WS-Identify
AdvertiseTypes = 1
Caption = null
Description = null
ElementName = null
InstanceID = CIM:SimpleIdentityRegisteredProfile:1
OtherRegisteredOrganization = null
RegisteredName = Simple Identity Management
RegisteredOrganization = 2
RegisteredVersion = 1.0.0

CIM_RegisteredProfile
AdvertiseTypeDescriptions = WS-Identify
AdvertiseTypes = 1
Caption = null
Description = null
ElementName = null
InstanceID = CIM:RoleBasedAuthorizationRegisteredProfile:1
OtherRegisteredOrganization = null
RegisteredName = Role Based Authorization
RegisteredOrganization = 2
RegisteredVersion = 1.0.0

CIM_RegisteredProfile
AdvertiseTypeDescriptions = WS-Identify
AdvertiseTypes = 1
Caption = null
Description = null
ElementName = null
InstanceID = CIM:RecordLogRegisteredProfile:1
OtherRegisteredOrganization = null
RegisteredName = Record Log
RegisteredOrganization = 2
RegisteredVersion = 1.0.0

CIM_RegisteredProfile
AdvertiseTypeDescriptions = WS-Identify
AdvertiseTypes = 1
Caption = null
Description = null
ElementName = null
InstanceID = CIM:DHCPClientRegisteredProfile:1
OtherRegisteredOrganization = null
RegisteredName = DHCP Client
RegisteredOrganization = 2
RegisteredVersion = 1.0.0

CIM_RegisteredProfile
AdvertiseTypeDescriptions = WS-Identify
AdvertiseTypes = 1
Caption = null
Description = null
ElementName = null
InstanceID = CIM:DNSClientRegisteredProfile:1
OtherRegisteredOrganization = null
RegisteredName = DNS Client
RegisteredOrganization = 2
RegisteredVersion = 1.0.0

CIM_RegisteredProfile
AdvertiseTypeDescriptions = WS-Identify
AdvertiseTypes = 1
Caption = null
Description = null
ElementName = null
InstanceID = CIM:EthernetPortRegisteredProfile:1
OtherRegisteredOrganization = null
RegisteredName = Ethernet Port
RegisteredOrganization = 2
RegisteredVersion = 1.0.0

CIM_RegisteredProfile
AdvertiseTypeDescriptions = WS-Identify
AdvertiseTypes = 1
Caption = null
Description = null
ElementName = null
InstanceID = CIM:OEMEthernetPortRegisteredProfile:1
OtherRegisteredOrganization = CIM
RegisteredName = Ethernet Port
RegisteredOrganization = 1
RegisteredVersion = 1.0.0

CIM_RegisteredProfile
AdvertiseTypeDescriptions = WS-Identify
AdvertiseTypes = 1
Caption = null
Description = null
ElementName = null
InstanceID = CIM:IPInterfaceRegisteredProfile:1
OtherRegisteredOrganization = null
RegisteredName = IP Interface
RegisteredOrganization = 2
RegisteredVersion = 1.0.0

CIM_RegisteredProfile
AdvertiseTypeDescriptions = WS-Identify
AdvertiseTypes = 1
Caption = null
Description = null
ElementName = null
InstanceID = CIM:PowerSupplyRegisteredProfile:1
OtherRegisteredOrganization = null
RegisteredName = Power Supply
RegisteredOrganization = 2
RegisteredVersion = 1.1.0

CIM_RegisteredProfile
AdvertiseTypeDescriptions = WS-Identify
AdvertiseTypes = 1
Caption = null
Description = null
ElementName = null
InstanceID = CIM:SoftwareInventoryRegisteredProfile:1
OtherRegisteredOrganization = null
RegisteredName = Software Inventory
RegisteredOrganization = 2
RegisteredVersion = 1.0.0

CIM_RegisteredProfile
AdvertiseTypeDescriptions = WS-Identify
AdvertiseTypes = 1
Caption = null
Description = null
ElementName = null
InstanceID = CIM:CLPProtocolServiceRegisteredProfile:1
OtherRegisteredOrganization = null
RegisteredName = Command Line Protocol Service
RegisteredOrganization = 2
RegisteredVersion = 1.0.0

CIM_RegisteredProfile
AdvertiseTypeDescriptions = WS-Identify
AdvertiseTypes = 1
Caption = null
Description = null
ElementName = null
InstanceID = CIM:BaseMetricsRegisteredProfile:1
OtherRegisteredOrganization = null
RegisteredName = Base Metrics
RegisteredOrganization = 2
RegisteredVersion = 1.0.0

CIM_RegisteredProfile
AdvertiseTypeDescriptions = WS-Identify
AdvertiseTypes = 1
Caption = null
Description = null
ElementName = null
InstanceID = CIM:VirtualMediaRegisteredProfile:1
OtherRegisteredOrganization = CIM
RegisteredName = Virtual Media
RegisteredOrganization = 1
RegisteredVersion = 1.0.0

CIM_RegisteredProfile
AdvertiseTypeDescriptions = WS-Identify
AdvertiseTypes = 1
Caption = null
Description = null
ElementName = null
InstanceID = CIM:USBRedirectionRegisteredProfile:1
OtherRegisteredOrganization = null
RegisteredName = USB Redirection
RegisteredOrganization = 2
RegisteredVersion = 1.0.0

CIM_RegisteredProfile
AdvertiseTypeDescriptions = WS-Identify
AdvertiseTypes = 1
Caption = null
Description = null
ElementName = null
InstanceID = CIM:SoftwareUpdateRegisteredProfile:1
OtherRegisteredOrganization = null
RegisteredName = Software Update
RegisteredOrganization = 2
RegisteredVersion = 1.0.0

CIM_RegisteredProfile
AdvertiseTypeDescriptions = WS-Identify
AdvertiseTypes = 1
Caption = null
Description = null
ElementName = null
InstanceID = CIM:SMASHCollectionsRegisteredProfile:1
OtherRegisteredOrganization = null
RegisteredName = SMASH Collections
RegisteredOrganization = 2
RegisteredVersion = 1.0.0
-------------------------------------

The following is the error message which we are getting while running "./opentestman.sh tests/Profiles/ProfileRegistration"

"CIM_RegisteredProfile.tmpclass.tmp:9:26: The prefix "xsi" for attribute "xsi:nil" associated with an element type "Caption" is not bound.
ERROR: javax.xml.xpath.XPathExpressionException"

We are also getting the similar error for the all the other properties having "null" values; i.e. Description, ElementName and OtherRegisteredOrganization.

I think while parsing the instance during the creation of "CIM_RegisteredProfile.class.tmp" the properties with value "null" should be deleted / ignored.

The following is the content of "CIM_RegisteredProfile.class.tmp":
------------------------------------------
<?xml version='1.0' encoding='UTF-8'?>
]>

WS-Identify
1

CIM:CSRegisteredProfile:1

Base Server
2
1.0.0

WS-Identify
1

CIM:SPRegisteredProfile:1

Service Processor
2
1.0.0

WS-Identify
1

CIM:SMCLPAdminDomainRegisteredProfile:1

SM CLP Admin Domain
2
1.0.0

WS-Identify
1

CIM:PowerStateManagementRegisteredProfile:1

Power State Management
2
1.0.0

WS-Identify
1

CIM:ADClientRegisteredProfile:1
CIM
Active Directory Client
1
1.0.0

WS-Identify
1

CIM:MFARegisteredProfile:1
CIM
Multi Factor Authentication
1
1.0.0

WS-Identify
1

CIM:SimpleIdentityRegisteredProfile:1

Simple Identity Management
2
1.0.0

WS-Identify
1

CIM:RoleBasedAuthorizationRegisteredProfile:1

Role Based Authorization
2
1.0.0

WS-Identify
1

CIM:RecordLogRegisteredProfile:1

Record Log
2
1.0.0

WS-Identify
1

CIM:DHCPClientRegisteredProfile:1

DHCP Client
2
1.0.0

WS-Identify
1

CIM:DNSClientRegisteredProfile:1

DNS Client
2
1.0.0

WS-Identify
1

CIM:EthernetPortRegisteredProfile:1

Ethernet Port
2
1.0.0

WS-Identify
1

CIM:OEMEthernetPortRegisteredProfile:1
CIM
Ethernet Port
1
1.0.0

WS-Identify
1

CIM:IPInterfaceRegisteredProfile:1

IP Interface
2
1.0.0

WS-Identify
1

CIM:PowerSupplyRegisteredProfile:1

Power Supply
2
1.1.0

WS-Identify
1

CIM:SoftwareInventoryRegisteredProfile:1

Software Inventory
2
1.0.0

WS-Identify
1

CIM:CLPProtocolServiceRegisteredProfile:1

Command Line Protocol Service
2
1.0.0

WS-Identify
1

CIM:BaseMetricsRegisteredProfile:1

Base Metrics
2
1.0.0

WS-Identify
1

CIM:VirtualMediaRegisteredProfile:1
CIM
Virtual Media
1
1.0.0

WS-Identify
1

CIM:USBRedirectionRegisteredProfile:1

USB Redirection
2
1.0.0

WS-Identify
1

CIM:SoftwareUpdateRegisteredProfile:1

Software Update
2
1.0.0

WS-Identify
1

CIM:SMASHCollectionsRegisteredProfile:1

SMASH Collections
2
1.0.0

Updates

#1 submitted by akash_malhotra on Wed, 08/06/2008 - 18:56

Where is xsi tag defined Header or Body? Can you share xml request and response.

#2 submitted by akash_malhotra on Thu, 08/07/2008 - 03:16
Assigned to:» akash_malhotra

I assume xsi: namespace definition is in Soap Envelope? Is this correct. We will be providing solution soon

#3 submitted by akash_malhotra on Tue, 08/12/2008 - 01:58
Status:active» fixed

fix will be release n OTM 1.01

#4 submitted by Anas Nashif on Mon, 09/15/2008 - 02:09
Status:fixed» closed