Pegasus 2.9.1 - Indication Exceptions

"Swapna Priya Bhaskara" <[email protected]>
Newsgroups gmane.network.open-pegasus.general
Message-ID <[email protected]>
Hi,

 

I am using Pegasus 2.9.1 on Windows and I am trying to generate the
indications.  I am using Java Client to subscribe for Indications.

 

I have couple of problems which I have found some temporary work around.

 

1)      While compiling my Indication Provider code, I was getting
errors, like 

E:/Pegasus/src\Pegasus/Query/QueryCommon/QueryException.h(52) : error
C2664: 'Pegasus::Exception::Exception(const Pegasus::String &)' : cannot
convert parameter 1 from 'Pegasus::MessageLoaderParms' to

 'const Pegasus::String &'

        Reason: cannot convert from 'Pegasus::MessageLoaderParms' to
'const Pegasus::String'

        No user-defined-conversion operator available that can perform
this conversion, or the operator cannot be called

E:/Pegasus/src\Pegasus/Query/QueryCommon/QueryException.h(58) : error
C3861: 'setContentLanguages': identifier not found

E:/Pegasus/src\Pegasus/Query/QueryCommon/QueryException.h(65) : error
C2664: 'Pegasus::Exception::Exception(const Pegasus::String &)' : cannot
convert parameter 1 from 'const Pegasus::MessageLoaderPar

ms' to 'const Pegasus::String &'

        Reason: cannot convert from 'const Pegasus::MessageLoaderParms'
to 'const Pegasus::String'

        No user-defined-conversion operator available that can perform
this conversion, or the operator cannot be called

E:/Pegasus/src\Pegasus/Query/QueryCommon/QueryException.h(66) : error
C3861: 'setContentLanguages': identifier not found

E:/Pegasus/src\Pegasus/Query/QueryCommon/QueryException.h(71) : error
C2664: 'Pegasus::Exception::Exception(const Pegasus::String &)' : cannot
convert parameter 1 from 'const Pegasus::MessageLoaderPar

ms' to 'const Pegasus::String &'

        Reason: cannot convert from 'const Pegasus::MessageLoaderParms'
to 'const Pegasus::String'

        No user-defined-conversion operator available that can perform
this conversion, or the operator cannot be called

 

As a temporary work around, I have commented out the code under
QueryException.h wherever the MessageLoadParams and
setContentLanguages() are used, and the compilation went smooth.

Want to confirm if this is a bug or I am missing out anything here.

 

2)      From Java client when I am setting properties to create a
filter.

CIMInstance ciFilter = cimClass.newInstance();

 

            ciFilter.setProperty("Name",new CIMValue("Filter20"));

            ciFilter.setProperty("query",new CIMValue("SELECT * FROM
MYPROVIDER "));

            ciFilter.setProperty("QueryLanguage",new CIMValue("WQL"));

ciFilter.setProperty("sourcenamespace",new CIMValue("root/MYPROV"));    

 

filterPath = new CIMObjectPath("FCCN",ciFilter.getKeyValuePairs());

filterPathRef = cc.createInstance(filterPath, ciFilter);

 

The last line of code returns error as The getKeyValuePairs() method is
returning some additional parameters like
"InstanceID","IndividualSubscriptionSupported","SourceNamespaces" which
are not accepted by createInstance to create a Filter

 

Similarly for handler the additional parameters like
"InstanceID","IndividualSubscriptionSupported","SourceNamespaces","Proto
col", "OtherProtocol" not accepted by createInstance to create a
handler.

 

So , I have to manually mask these values and send it to createInstance
method.

 

                This seems to be a bug for me. Please confirm.

 

Thanks,

Swapna.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.