incubator-imperius-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sampige, Sahana Prabhakar (R&D Bangalore)" <sah...@hp.com>
Subject RE: create policy failed
Date Mon, 04 Jul 2011 03:27:14 GMT
Kapil,
The request has reached the cimserver. But could not executed. Lets debug the cimserver log
today.

Start cimserver as, cimserver traceLevel=4 traceComponents=All

Make sure the cimserver tracefile is created in /var/buildMAIN/Pegasus/build/trace/cimserver.trc
or else in the rpm location.

Run ur spl test

Chk the trace file for any errors and send that to me.

-Sahana

-----Original Message-----
From: kapil khanna [mailto:withkapil@gmail.com] 
Sent: Friday, July 01, 2011 6:13 PM
To: imperius-user@incubator.apache.org
Subject: create policy failed

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