APAR status
Closed as program error.
Error description
Impact 3.1FP5: Comparison result of localtime to strings leads to policy failure. Tue Oct 30 11:29:11 CET 2007: Parser log: Class of DayOfWeek : IPLDate --> Policy abort Tue Oct 30 11:29:11 CET 2007: MessageProcessor: Exception occurred while executing policy LocaltimeTest Tue Oct 30 11:29:11 CET 2007: Thread￸HttpProcessor￸5104ツ￸4ツ,5,mainツ: Tue Oct 30 11:29:11 CET 2007: java.lang.NullPointerException Tue Oct 30 11:29:11 CET 2007: at java.util.Date.compareTo(Date.java:905) Tue Oct 30 11:29:11 CET 2007: at java.sql.Timestamp.compareTo(Timestamp.java:462) Tue Oct 30 11:29:11 CET 2007: at com.micromuse.common.parser.IPLInterpreterVisitor.standardizeDat esAndCompare(IPLInterpreterVisitor.java:3486) . This is an extract of the policy: . ActTime = getdate(); log("ActTime : " + ActTime); log("Class of ActTime: " + ClassOf(ActTime)); . DayOfWeek = localtime(ActTime, "E"); log("DayOfWeek : " + DayOfWeek); log("Class of DayOfWeek : " + ClassOf(DayOfWeek));
Local fix
Casting the var to String: 1) DayOfWeek = String(localTime(ActTime,"E")); Or 2) DayOfWeek= String(DayOfWeek); Or 3) I((String(DayOfWeek) == "Sat" ) ]] (String(DayOfWeek) = "Sun"))ナハ
Problem summary
**************************************************************** * USERS AFFECTED: All Netcool/Impact Users who are using * * LocalTime() Action Function * **************************************************************** * PROBLEM DESCRIPTION: POLICY FAILS WHEN DOING A COMPARISON * * BETWEEN RESULT OF LOCALTIME(ACTTIME, E) * * TO A STRING * **************************************************************** * RECOMMENDATION: * * * **************************************************************** Steps to replicate 1) configure Impact Server 2) Create a poliy using LocalTime() action Function result=LocalTime(getDate(),E); if(result == Fri){ log(today is Friday); } 3) Run the policy and observe a null pointer exception
Problem conclusion
Fixed in Netcool/Impact Fix Pack
Temporary fix
Comments
APAR Information
APAR number
IZ08630
Reported component name
NETCOOL/IMPACT
Reported component ID
5724O59IS
Reported release
310
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2007-11-12
Closed date
2008-03-14
Last modified date
2008-03-14
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
NETCOOL
Fix information
Fixed component name
NETCOOL/IMPACT
Fixed component ID
5724O59IS
Applicable component levels
R310 PSY
UP
[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSCP78Y","label":"Netcool\/Impact"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"310","Edition":"","Line of Business":{"code":"","label":""}}]
Document Information
Modified date:
14 March 2008