The value supplied is incompatible with the type

View: New views
1 Messages — Rating Filter:   Alert me  

The value supplied is incompatible with the type

by VijayRam :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

We are also facing a problem with the type of the value being passed into the sfcb from the Openwsman server similar to the problem detailed on the message on the following link (http://www.nabble.com/Method-parameter-td16781531.html#a16802092)

It would be great if u can let us know when this bug will be fixed and when will it be released.

The stack is as follows:
# wsman invoke -a RequestStateChange --port 8889 'http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystem?CreationClassName=Xen_ComputerSystem&Name=Domain-0' -J /home/root1/sPAR/setup/argInput.xml --username wsman -p root123 -h  localhost --namespace root/virt
----------------------------------------------------------------------------------------------------------
Contents of argInput.xml:
<n1:RequestStateChange_INPUT xmlns:n1="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystem">
        <n1:RequestedState>3</n1:RequestedState>
        <n1:TimeoutPeriod>0</n1:TimeoutPeriod>
</n1:RequestStateChange_INPUT>
----------------------------------------------------------------------------------------
The output is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
  <s:Header>
    <wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To>
    <wsa:Action>http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystem/RequestStateChangeResponse</wsa:Action>
    <wsa:RelatesTo>uuid:4d353020-4efd-1efd-8002-64d8433f1200</wsa:RelatesTo>
    <wsa:MessageID>uuid:4d54b68f-4efd-1efd-8002-64d8433f1200</wsa:MessageID>
  </s:Header>
  <s:Body>
    <s:Fault>
      <s:Code>
        <s:Value/>
      </s:Code>
    </s:Fault>
  </s:Body>
</s:Envelope>
-----------------------------------------------------------------------------
The stack trace snippet on the Openwsman side is as follows:

Jun  6 16:25:37 [14138] Posted request: <?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:n1="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystem"><s:Header><wsa:Action s:mustUnderstand="true">http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystem/RequestStateChange</wsa:Action><wsa:To s:mustUnderstand="true">http://localhost:8889/wsman</wsa:To><wsman:ResourceURI s:mustUnderstand="true">http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystem</wsman:ResourceURI><wsa:MessageID s:mustUnderstand="true">uuid:4d353020-4efd-1efd-8002-64d8433f1200</wsa:MessageID><wsa:ReplyTo><wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address></wsa:ReplyTo><wsman:SelectorSet><wsman:Selector Name="Name">Domain-0</wsman:Selector><wsman:Selector Name="CreationClassName">Xen_ComputerSystem</wsman:Selector><wsman:Selector Name="__cimnamespace">root/virt</wsman:Selector></wsman:SelectorSet></s:Header><s:Body><n1:RequestStateChange_INPUT><n1:RequestedState>3</n1:RequestedState><n1:TimeoutPeriod>0</n1:TimeoutPeriod></n1:RequestStateChange_INPUT></s:Body></s:Envelope>
, wsman_msg len = 1272
Jun  6 16:25:37 [14138] Inbound call...
Jun  6 16:25:37 [14138] uri: http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystem, action: http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystem/RequestStateChange
Jun  6 16:25:37 [14138] namespace: http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd
Jun  6 16:25:37 [14138] namespace: http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2
Jun  6 16:25:37 [14138] Processing Filters: inbound
Jun  6 16:25:37 [14138] Checking Message ID: uuid:4d353020-4efd-1efd-8002-64d8433f1200
Jun  6 16:25:37 [14138] Custom Method Endpoint Called
Jun  6 16:25:37 [14138] username: wsman, password: XXXXX
Jun  6 16:25:37 [14138] Connecting using sfcc XML frontend
Jun  6 16:25:37 [14138] new cimclient: 0x 8062910
Jun  6 16:25:37 [14138] new cimclient: 1
Jun  6 16:25:37 [14138] ++++++++++++++++++++++++++++++++++++++++++++++: text: Name
Jun  6 16:25:37 [14138] ++++++++++++++++++++++++++++++++++++++++++++++: text: CreationClassName
Jun  6 16:25:37 [14138] ++++++++++++++++++++++++++++++++++++++++++++++: text: __cimnamespace
Jun  6 16:25:37 [14138] method or action: RequestStateChange
Jun  6 16:25:37 [14138] CIM Namespace: root/virt
Jun  6 16:25:37 [14138] method or action: RequestStateChange
Jun  6 16:25:37 [14138] Requested Class: CIM_ComputerSystem
Jun  6 16:25:37 [14138] class available
Jun  6 16:25:37 [14138] enumInstanceNames rc=0, msg=(null)
Jun  6 16:25:37 [14138] objectpath: Xen_ComputerSystem.CreationClassName="Xen_ComputerSystem",Name="Domain-0"
Jun  6 16:25:37 [14138] verify selectors
Jun  6 16:25:37 [14138] getKeyCount rc=0, msg=(null)
Jun  6 16:25:37 [14138] selector count from user: 2, in object path: 2
Jun  6 16:25:37 [14138] getKey rc=0, msg=(null)
Jun  6 16:25:37 [14138] fault: 0 0
Jun  6 16:25:37 [14138] invokeMethod() rc=13, msg=The value supplied is incompatible with the type
Jun  6 16:25:37 [14138] selectors destroyed
Jun  6 16:25:37 [14138] cimclient destroyed
Jun  6 16:25:37 [14138] Processing Filters: outbound
Jun  6 16:25:37 [14138] destroy op
Jun  6 16:25:37 [14138] Inbound call completed
Jun  6 16:25:37 [14138] message len = 604
Jun  6 16:25:37 [14138] Response (status) 200 ((null))
Jun  6 16:25:37 [14138] HTTP/1.1 200 (null)
Server: openwsman/1.5.1
Content-Type: application/soap+xml;charset=UTF-8
Content-Length: 604

<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"><s:Header><wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To><wsa:Action>http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystem/RequestStateChangeResponse</wsa:Action><wsa:RelatesTo>uuid:4d353020-4efd-1efd-8002-64d8433f1200</wsa:RelatesTo><wsa:MessageID>uuid:4d54b68f-4efd-1efd-8002-64d8433f1200</wsa:MessageID></s:Header><s:Body><s:Fault><s:Code><s:Value/></s:Code></s:Fault></s:Body></s:Envelope>

Please do let us know your thoughts.

Regards,
Vijay
LightInTheBox - Buy quality products at wholesale price!