Menu

#9 Illegal Exception reading month argument

open-fixed
nobody
parser (12)
5
2010-11-01
2010-10-25
Anonymous
No

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)

Discussion

  • Anonymous

    Anonymous - 2010-10-25

    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
  • Anonymous

    Anonymous - 2010-11-01

    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.

     
  • Anonymous

    Anonymous - 2010-11-01
    • status: open --> open-fixed
     

    Last edit: Anonymous 2017-06-06
  • Alexandre Cherif

    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

     

Log in to post a comment.