incubator-imperius-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kapil khanna <withka...@gmail.com>
Subject create policy failed
Date Fri, 01 Jul 2011 12:42:57 GMT
Hi,
i tried executing InvokeMethodSample policy provided in cim-spl samples.

i got a CIM_ERR_FAILED.

i used the utility provided as--

java -classpath /<my path>/sblimCIMClient.jar:/<my
path>/cimspl-client.jar org.apache.imperius.cimspl.client.TestClient
-s <my server host name> -p 5988 -u <username> -pwd <password> -c /<my
path>/cimspl-samples/resources/samples/policies InvokeMethodSample

result i got is----

Established Connection
create policy :InvokeMethodSample path <my
path>/cimspl-samples/resources/samples/policies
createPolicy** : /<my path>/cimspl-samples/resources/samples/policies
InvokeMethodSample
path=/<my path>/cimspl-samples/resources/samples/policies/InvokeMethodSample.spl
//////////////////////////////////////////////////////////////////////////
// * Licensed to the Apache Software Foundation (ASF) under one
// * or more contributor license agreements.  See the NOTICE file
// * distributed with this work for additional information
// * regarding copyright ownership.  The ASF licenses this file
// * to you under the Apache License, Version 2.0 (the
// * "License"); you may not use this file except in compliance
// * with the License.  You may obtain a copy of the License at
// *
// *     http://www.apache.org/licenses/LICENSE-2.0
// *
// * Unless required by applicable law or agreed to in writing,
// * software distributed under the License is distributed on an
// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// * KIND, either express or implied.  See the License for the
// * specific language governing permissions and limitations
// * under the License.
// */
//%///////////////////////////////////////////////////////////////////////////
Import Qualifier test/TestProvider Class Test_MethodProviderClass;
Strategy Execute_All_Applicable;
/*cimcli ci -n test/TestProvider Test_MethodProviderClass Id=1*/
Policy
{
        Declaration
        {
            excpectedReturnValue = 10;

        }
        Condition
        {
            true
        }
        Decision
        { /* InParam1 and InParam2 are formal parameter names and 10
is the expected return value */
             Test_MethodProviderClass.Test1(InParam1=1,InParam2=2,OutParam1,OutParam2)


}
}:1;

Error: CIM_ERR_FAILED

------------------------------------------------------------------------------------------------------------------------------

couldn't figure out the problem here.

-Thanks

Mime
View raw message