Illegal Exception reading month argument
Status: Beta
Brought to you by:
xcherif
Attempting to run kSar for the first time and it fails to load a test report file. I assume this is caused because I'm in the UK not the US and date stamps here are formated: dd/mm/yy
java.lang.IllegalArgumentException: The 'month' argument must be in the range 1 to 12.
at org.jfree.date.SpreadsheetDate.<init>(SpreadsheetDate.java:124)
at org.jfree.date.SerialDate.createInstance(SerialDate.java:795)
at org.jfree.data.time.Day.<init>(Day.java:126)
at org.jfree.data.time.Minute.<init>(Minute.java:175)
at org.jfree.data.time.Second.<init>(Second.java:136)
at net.atomique.ksar.Linux.Parser.parse(Parser.java:153)
at net.atomique.ksar.kSar.parse(kSar.java:750)
at net.atomique.ksar.FileRead.run(FileRead.java:62)
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
I should qualify that by saying that the sar text data was generated on a RHEL 5u5 production server. On a Fedora 12 workstation here it works ok. Looking at data from the RHEL servers here is more important though :)
Last edit: Anonymous 2013-11-21
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
I've discovered that this problem can be resolved by prefixing the sar command with LC_ALL=C, to generate text report data with a date format that kSar understands. It will do as a work around for now.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Last edit: Anonymous 2017-06-06
Re,
the v5 should ask you the date format, but i've that i'm still using LC_ALL=C in the command/ssh load..which migth lead to weird result as using fixed format would not work. i'm on it