From: SourceForge.net <no...@so...> - 2012-09-14 10:43:25
|
Bugs item #3466280, was opened at 2011-12-27 21:24 Message generated for change (Comment added) made by blaschke-oss You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=712784&aid=3466280&group_id=128809 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Java Client (JSR48) Group: Function >Status: Closed Resolution: Fixed Priority: 5 Private: No Submitted By: lijianzh (lijianzh) Assigned to: Dave Blaschke (blaschke-oss) Summary: get instance failure for CIM_IndicationSubscription Initial Comment: a exception occured when to get a instance using COP form the enumerateInstances's result list WBEMException: CIM_ERR_NOT_FOUND (CIM_ERR_NOT_FOUND: CIM_IndicationSubscription.Filter="root/aristos:CIM_IndicationFilter.CreationClassName=\"CIM_IndicationFilter\",Name=\"Indication Alert\",SystemCreationClassName=\"CIM_ComputerSystem\",SystemName=\"rcc- pok- idg-2726.cloud9.ibm.com\"",Handler="root/aristos:CIM_ListenerDestinationCIMXML.CreationClassName=\"CIM_ListenerDestinationCIMXML\",Name=\"SNMP\",SystemCreationClassName=\"CIM_ComputerSystem\",SystemName =\"rcc-pok-idg-2726.cloud9.ibm.com\"") at org.sblim.cimclient.internal.http.HttpHeader.examineTrailer(HttpHeader.java:429) at org.sblim.cimclient.internal.http.io.ChunkedInputStream.read(ChunkedInputStream.java:110) at org.sblim.cimclient.internal.http.io.BoundedInputStream.read(BoundedInputStream.java:93) at java.io.FilterInputStream.read(FilterInputStream.java:128) at org.sblim.cimclient.internal.http.io.KeepAliveInputStream.read(KeepAliveInputStream.java:70) at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:452) at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:494) at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:222) at java.io.InputStreamReader.read(InputStreamReader.java:177) at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.scanName(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanAttribute(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source) at org.sblim.cimclient.internal.wbem.CloseableIteratorSAX.<init>(CloseableIteratorSAX.java:76) at org.sblim.cimclient.internal.wbem.WBEMClientCIMXML.getIterator(WBEMClientCIMXML.java:2035) at org.sblim.cimclient.internal.wbem.WBEMClientCIMXML.getInstance(WBEMClientCIMXML.java:1195) at SampleCode.main(SampleCode.java:45) I will pasted the Java sample code and cimtrace.log please to help investigating ---------------------------------------------------------------------- Comment By: Dave Blaschke (blaschke-oss) Date: 2012-09-14 03:43 Message: The patch was picked up by release 2.2.0 and will therefore be closed. ---------------------------------------------------------------------- Comment By: Dave Blaschke (blaschke-oss) Date: 2012-05-08 11:10 Message: The community review has completed and we received no substantial criticism. Therefore the patch has been approved and merged into the "HEAD" branch. The next release will pick it up. ---------------------------------------------------------------------- Comment By: Dave Blaschke (blaschke-oss) Date: 2012-04-24 05:08 Message: Patch sent for community review. During a 2 week period any exploiter may comment on the patch, request changes or turn it down completely (with good reason). For the time being the patch is part of the "Experimental" branch in CVS. ---------------------------------------------------------------------- Comment By: Dave Blaschke (blaschke-oss) Date: 2012-04-24 04:22 Message: The following three OpenPegasus commands can be used to create a subscription where the filter and handler do NOT contain a namespace: ./cimcli ci -n root/aristos CIM_IndicationFilter CreationClassName=CIM_IndicationFilter Name="Indication Alert" Query="SELECT * FROM CIM_AlertIndication" QueryLanguage=WQL ./cimcli ci -n root/aristos CIM_ListenerDestinationCIMXML CreationClassName=CIM_ListenerDestinationCIMXML Name=SNMP Destination="http://9.21.22.23:5999/SNMP" ./cimcli ci -n root/aristos CIM_IndicationSubscription Filter="CIM_IndicationFilter.CreationClassName=\"CIM_IndicationFilter\",Name=\"Indication Alert\",SystemCreationClassName=\"CIM_ComputerSystem\",SystemName=\"SMCloud105.cn.ibm.com\"" Handler="CIM_ListenerDestinationCIMXML.CreationClassName=\"CIM_ListenerDestinationCIMXML\",Name=\"SNMP\",SystemCreationClassName=\"CIM_ComputerSystem\",SystemName=\"SMCloud105.cn.ibm.com\"" ---------------------------------------------------------------------- Comment By: Dave Blaschke (blaschke-oss) Date: 2012-04-24 02:43 Message: For example, a subscription with LOCALINSTANCEPATH looks like this: <VALUE.NAMEDINSTANCE> <INSTANCENAME CLASSNAME="CIM_IndicationSubscription"> <KEYBINDING NAME="Filter"> <VALUE.REFERENCE> <LOCALINSTANCEPATH> <LOCALNAMESPACEPATH> <NAMESPACE NAME="root"/> <NAMESPACE NAME="aristos"/> </LOCALNAMESPACEPATH> <INSTANCENAME CLASSNAME="CIM_IndicationFilter"> <KEYBINDING NAME="CreationClassName"> <KEYVALUE VALUETYPE="string">CIM_IndicationFilter</KEYVALUE> </KEYBINDING> <KEYBINDING NAME="Name"> <KEYVALUE VALUETYPE="string">Indication Alert</KEYVALUE> </KEYBINDING> <KEYBINDING NAME="SystemCreationClassName"> <KEYVALUE VALUETYPE="string">CIM_ComputerSystem</KEYVALUE> </KEYBINDING> <KEYBINDING NAME="SystemName"> <KEYVALUE VALUETYPE="string">SMCloud47.cn.ibm.com</KEYVALUE> </KEYBINDING> </INSTANCENAME> </LOCALINSTANCEPATH> </VALUE.REFERENCE> </KEYBINDING> while a subscription with a INSTANCENAME looks like this (-- added to highlight missing lines): <VALUE.NAMEDINSTANCE> <INSTANCENAME CLASSNAME="CIM_IndicationSubscription"> <KEYBINDING NAME="Filter"> <VALUE.REFERENCE> -- -- -- -- -- <INSTANCENAME CLASSNAME="CIM_IndicationFilter"> <KEYBINDING NAME="CreationClassName"> <KEYVALUE VALUETYPE="string">CIM_IndicationFilter</KEYVALUE> </KEYBINDING> <KEYBINDING NAME="Name"> <KEYVALUE VALUETYPE="string">Indication Alert</KEYVALUE> </KEYBINDING> <KEYBINDING NAME="SystemCreationClassName"> <KEYVALUE VALUETYPE="string">CIM_ComputerSystem</KEYVALUE> </KEYBINDING> <KEYBINDING NAME="SystemName"> <KEYVALUE VALUETYPE="string">SMCloud47.cn.ibm.com</KEYVALUE> </KEYBINDING> </INSTANCENAME> -- </VALUE.REFERENCE> </KEYBINDING> But for both these cases, the Client includes the namespace in the COP. ---------------------------------------------------------------------- Comment By: Dave Blaschke (blaschke-oss) Date: 2012-04-23 18:18 Message: According to DSP0203, the CLASSNAME and INSTANCENAME elements within a VALUE.REFERENCE should NOT include a namespace. The Java CIM Client assumes the default (session) namespace and includes it in these elements. This does not seem to be correct behavior. ---------------------------------------------------------------------- Comment By: Dave Blaschke (blaschke-oss) Date: 2012-01-27 10:12 Message: This bug has been transferred to #9160 against OpenPegasus: http://bugzilla.openpegasus.org/show_bug.cgi?id=9160 "OpenPegasus seems to normalize subscriptions for CreateInstance but not for GetInstance, which leads to the inconsistent behavior of getting "error not found" from GetInstance and "error already exists" from CreateInstance for the exact same instance." Changing resolution to "Remind" while awaiting response from OpenPegasus. ---------------------------------------------------------------------- Comment By: Dave Blaschke (blaschke-oss) Date: 2012-01-13 15:22 Message: How were the instances created that are returned by the EnumerateInstances call? Some (http://9.12.177.161:10000/-1678257012, IBM:7f4e6d265e661b52:9.12.177.161:root/aristos) use LOCALINSTANCEPATH and some (SNMP, TEC, Log, Email) do not... ---------------------------------------------------------------------- Comment By: lijianzh (lijianzh) Date: 2012-01-10 01:03 Message: provider version: aristos_sw_provider-1.10.0789-sles11 CIMOM : open pegasus version 2.11.0 ---------------------------------------------------------------------- Comment By: Dave Blaschke (blaschke-oss) Date: 2012-01-05 05:46 Message: What provider (and version) is providing these instances? What CIMOM (and version) is being used? The Client seems to assume that all local object paths need to include a LOCALINSTANCEPATH element which is why it is included in all outgoing GetInstance requests. However, the EnumerateInstances response includes instances both with and without it. ---------------------------------------------------------------------- Comment By: Dave Blaschke (blaschke-oss) Date: 2012-01-03 19:01 Message: The issue may be with the way the Client is parsing the EnumerateInstances response. The GetInstance requests are virtually the same for failing and passing instances, but the EnumerateInstances response for a passing instance contains a LOCALNAMESPACE element while the failing instance does not. More investigation needed. ---------------------------------------------------------------------- Comment By: Dave Blaschke (blaschke-oss) Date: 2012-01-03 18:05 Message: Some more information. Comparing the Client's XML request for this failing instance: root/aristos:CIM_IndicationSubscription.Filter="root/aristos:CIM_IndicationFilter.CreationClassName=\"CIM_IndicationFilter\",Name=\"Indication Alert\",SystemCreationClassName=\"CIM_ComputerSystem\",SystemName=\"SMCloud47.cn.ibm.com\"",Handler="root/aristos:CIM_ListenerDestinationCIMXML.CreationClassName=\"CIM_ListenerDestinationCIMXML\",Name=\"Email\",SystemCreationClassName=\"CIM_ComputerSystem\",SystemName=\"SMCloud47.cn.ibm.com\"" to this passing instance: root/aristos:CIM_IndicationSubscription.Filter="root/aristos:CIM_IndicationFilter.CreationClassName=\"CIM_IndicationFilter\",Name=\"Indication Alert\",SystemCreationClassName=\"CIM_ComputerSystem\",SystemName=\"SMCloud47.cn.ibm.com\"",Handler="root/aristos:CIM_ListenerDestinationCIMXML.CreationClassName=\"CIM_ListenerDestinationCIMXML\",Name=\"IBM:7fe7c95305671e55:9.12.180.195:root/aristos\",SystemCreationClassName=\"CIM_ComputerSystem\",SystemName=\"SMCloud47.cn.ibm.com\"" produces the following: 2c2 < <MESSAGE ID="705138" PROTOCOLVERSION="1.0"> --- > <MESSAGE ID="705140" PROTOCOLVERSION="1.0"> 47c47 < <KEYVALUE TYPE="string" VALUETYPE="string">Email</KEYVALUE> --- > <KEYVALUE TYPE="string" VALUETYPE="string">IBM:7fe7c95305671e55:9.12.180.195:root/aristos</KEYVALUE> so the Client seems to be creating correct XML in the failing case. ---------------------------------------------------------------------- Comment By: Dave Blaschke (blaschke-oss) Date: 2012-01-03 17:48 Message: Set up and ran SampleCode. An error is being returned in the HTTP trailer from the CIMOM which results in the exception being thrown by the Client. For the following instance: root/aristos:CIM_IndicationSubscription.Filter="root/aristos:CIM_IndicationFilter.CreationClassName=\"CIM_IndicationFilter\",Name=\"Indication Alert\",SystemCreationClassName=\"CIM_ComputerSystem\",SystemName=\"SMCloud47.cn.ibm.com\"",Handler="root/aristos:CIM_ListenerDestinationCIMXML.CreationClassName=\"CIM_ListenerDestinationCIMXML\",Name=\"Email\",SystemCreationClassName=\"CIM_ComputerSystem\",SystemName=\"SMCloud47.cn.ibm.com\"" the Client sends the following request: <?xml version="1.0" encoding="UTF-8"?> <CIM CIMVERSION="2.0" DTDVERSION="2.0"> <MESSAGE ID="705138" PROTOCOLVERSION="1.0"> <SIMPLEREQ> <IMETHODCALL NAME="GetInstance"> <LOCALNAMESPACEPATH> <NAMESPACE NAME="root"/> <NAMESPACE NAME="aristos"/> </LOCALNAMESPACEPATH> <IPARAMVALUE NAME="InstanceName"> <INSTANCENAME CLASSNAME="CIM_IndicationSubscription"> <KEYBINDING NAME="Filter"> <VALUE.REFERENCE> <LOCALINSTANCEPATH> <LOCALNAMESPACEPATH> <NAMESPACE NAME="root"/> <NAMESPACE NAME="aristos"/> </LOCALNAMESPACEPATH> <INSTANCENAME CLASSNAME="CIM_IndicationFilter"> <KEYBINDING NAME="CreationClassName"> <KEYVALUE TYPE="string" VALUETYPE="string">CIM_IndicationFilter</KEYVALUE> </KEYBINDING> <KEYBINDING NAME="Name"> <KEYVALUE TYPE="string" VALUETYPE="string">Indication Alert</KEYVALUE> </KEYBINDING> <KEYBINDING NAME="SystemCreationClassName"> <KEYVALUE TYPE="string" VALUETYPE="string">CIM_ComputerSystem</KEYVALUE> </KEYBINDING> <KEYBINDING NAME="SystemName"> <KEYVALUE TYPE="string" VALUETYPE="string">SMCloud47.cn.ibm.com</KEYVALUE> </KEYBINDING> </INSTANCENAME> </LOCALINSTANCEPATH> </VALUE.REFERENCE> </KEYBINDING> <KEYBINDING NAME="Handler"> <VALUE.REFERENCE> <LOCALINSTANCEPATH> <LOCALNAMESPACEPATH> <NAMESPACE NAME="root"/> <NAMESPACE NAME="aristos"/> </LOCALNAMESPACEPATH> <INSTANCENAME CLASSNAME="CIM_ListenerDestinationCIMXML"> <KEYBINDING NAME="CreationClassName"> <KEYVALUE TYPE="string" VALUETYPE="string">CIM_ListenerDestinationCIMXML</KEYVALUE> </KEYBINDING> <KEYBINDING NAME="Name"> <KEYVALUE TYPE="string" VALUETYPE="string">Email</KEYVALUE> </KEYBINDING> <KEYBINDING NAME="SystemCreationClassName"> <KEYVALUE TYPE="string" VALUETYPE="string">CIM_ComputerSystem</KEYVALUE> </KEYBINDING> <KEYBINDING NAME="SystemName"> <KEYVALUE TYPE="string" VALUETYPE="string">SMCloud47.cn.ibm.com</KEYVALUE> </KEYBINDING> </INSTANCENAME> </LOCALINSTANCEPATH> </VALUE.REFERENCE> </KEYBINDING> </INSTANCENAME> </IPARAMVALUE> <IPARAMVALUE NAME="LocalOnly"> <VALUE>false</VALUE> </IPARAMVALUE> <IPARAMVALUE NAME="IncludeQualifiers"> <VALUE>false</VALUE> </IPARAMVALUE> <IPARAMVALUE NAME="IncludeClassOrigin"> <VALUE>false</VALUE> </IPARAMVALUE> </IMETHODCALL> </SIMPLEREQ> </MESSAGE> </CIM> and receives the following response: <?xml version="1.0" encoding="utf-8" ?> <CIM CIMVERSION="2.0" DTDVERSION="2.0"> <MESSAGE ID="705138" PROTOCOLVERSION="1.0"> <SIMPLERSP> <IMETHODRESPONSE NAME="GetInstance"> </IMETHODRESPONSE> </SIMPLERSP> </MESSAGE> </CIM> BUT the HTTP trailer includes a CIMStatusCode of 6 and a CIMStatusCodeDescription of CIM_ERR_NOT_FOUND: CIM_IndicationSubscription.Filter="root/aristos:CIM_IndicationFilter.CreationClassName=\"CIM_IndicationFilter\",Name=\"Indication Alert\",SystemCreationClassName=\"CIM_ComputerSystem\",SystemName=\"SMCloud47.cn.ibm.com\"",Handler="root/aristos:CIM_ListenerDestinationCIMXML.CreationClassName=\"CIM_ListenerDestinationCIMXML\",Name=\"Email\",SystemCreationClassName=\"CIM_ComputerSystem\",SystemName=\"SMCloud47.cn.ibm.com\"" so the Client throws the WBEMException. This all seems correct, the Client is behaving as expected. Where do you think there's a failure? ---------------------------------------------------------------------- Comment By: Dave Blaschke (blaschke-oss) Date: 2012-01-03 17:02 Message: Reassigning category, Java Client is 1.x code stream ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=712784&aid=3466280&group_id=128809 |