[INUG-Users] Impact server errors
N Srinivas
rocking.srinivas at gmail.com
Thu Dec 17 10:33:55 EST 2009
Hello Satya,
I have restarted the Impact server after configuring Impact policy. I have
Web Services configured on another windows system.
Added the Web server host details in /etc/hosts file of Impact server. The
policy logger contains all the information that I have provided below.
Please help me with this.
Thanks,
Srinivas.
On Thu, Dec 17, 2009 at 12:55 AM, Satya.netcoolguy
<satya.netcool at gmail.com>wrote:
> Hi Srinivas,
>
> Did you restarted Impact after configuring WebServices ?, If not restart
> Impact once
>
> What is the condition you are placing in event reader ?
>
> Give me the complete log message in policy logger .
>
> Did you make an entry for the host sdedevapp01<http://sdedevapp01/SDEWebServices/New_Netcool_Alerts.asmx>in /etc/hosts file ?
>
>
> Rgds
> Satya
>
> ---- Netcool... Its very hot ----
>
>
> On Thu, Dec 17, 2009 at 3:51 AM, N Srinivas <rocking.srinivas at gmail.com>wrote:
>
>> Hello Satya,
>>
>> Thanks for replying on this. By adding an exception handler I could get
>> more detailed information on what is going wrong and could make a little
>> progress.
>>
>> Using Impact Web services DSA I could retrieve the information from Magic
>> SDE web services. Now I would like to create a new ticket for a new alert in
>> OMNIbus.
>>
>> For this I have created a new Policy using the Wizard and when I am
>> executing this policy, it was popping up the following error in netcool.log
>>
>> 16 Dec 2009 10:22:23,577 DEBUG [MessageProcessor] MP processMessage: **
>> (EVENT ID NOT KNOWN) **
>> 16 Dec 2009 10:22:23,577 DEBUG [MessageProcessor] MP processMessage:
>> m.getVarList() = "Prepared with user supplied parameters: "=(Escalation=25,
>> EventContainer=(EventReaderName=DefaultEventReader), PolicyName=webservices,
>> ActionNodeName=webservices, ActionType=1)
>> 16 Dec 2009 10:22:23,577 DEBUG [ImpactServerManagedBean] Scheduling
>> ManagedPolicy
>> [ibm.tivoli.impact:thread="SynchronousMessageProcessor",type=Service,server=NCI,policy=webservices,start=1260976943577]
>> for registration with container
>> 16 Dec 2009 10:22:26,041 DEBUG [ImpactServerManagedBean] Removed internal
>> record of
>> [ibm.tivoli.impact:thread="SynchronousMessageProcessor",type=Service,server=NCI,policy=webservices,start=1260976943577],
>> and unscheduled ManagedPolicy registration
>>
>> In the policy logger I am getting error:
>>
>> Parser log: Exception occured in policy ....
>>
>> Parser log: Error message is Exception in policy: webservices at line:
>>
>> 38.Element CreateTicketsResponse at http://bmc.com/webservices/ is not a
>> valid Create_TicketsResponse at http://bmc.com/webservices/ document or a
>> valid substitution.
>>
>> Parser log: results: NULL
>>
>>
>> My policy is
>>
>> //This policy generated by Impact Wizard.
>>
>> //This policy is based on wsdl file at
>> http://sdedevapp01/SDEWebServices/New_Netcool_Alerts.asmx?WSDL
>>
>> log("Start policy 'webservices'...");
>>
>> Handle java.lang.Exception {
>>
>> log("Exception occured in policy .... ");
>>
>> log("Error message is " + ErrorMessage);
>>
>>
>>
>> }
>>
>> //Specify package name as defined when compiling WSDL in Impact
>> WSSetDefaultPKGName('Magic_SDE');
>>
>>
>>
>> //Specify parameters
>>
>>
>> CreateTicketsDocument=WSNewObject("com.bmc.webservices.CreateTicketsDocument");
>>
>> _CreateTickets=WSNewSubObject(CreateTicketsDocument,"CreateTickets");
>>
>>
>>
>> _Node = "mynode";
>>
>> _CreateTickets['Node'] = _Node;
>>
>> _Summary = "check";
>>
>> _CreateTickets['Summary'] = _Summary;
>>
>>
>> WSParams = {CreateTicketsDocument};
>>
>> //Specify web service name, end point and method WSService =
>> "CreateTicketsService"; WSEndPoint = "
>> http://sdedevapp01/SDEWebServices/New_Netcool_Alerts.asmx";
>>
>> WSMethod = "CreateTickets";
>>
>> log("About to invoke Web Service call CreateTickets ......");
>> WSInvokeDLResult = WSInvokeDL(WSService, WSEndPoint, WSMethod, WSParams);
>>
>> // WSInvokeDLResult = WSInvokeDL(WSService, WSEndPoint, WSMethod,
>> WSParams);
>>
>> // log("About to invoke Web Service call CreateTickets ...: "
>> +WSInvokeDLResult);
>>
>> result = WSInvokeDLResult.CreateTicketsResponse.CreateTicketsResults;
>>
>> log("results: " +result);
>>
>>
>> Please help me with this policy.
>>
>>
>> Thanks in Advance,
>>
>> Srinivas.
>>
>>
>>
>>
>
>
> --
> --Rgds
> Satya
> Tivoli Netcool Specialist
> Gurgaon
> INDIA
>
>
>
More information about the Users
mailing list