Topic
  • 2 replies
  • Latest Post - ‏2012-07-05T10:13:51Z by SystemAdmin
SystemAdmin
SystemAdmin
642 Posts

Pinned topic Processor Time Analysis Tool for Linux - Unparseable date error

‏2011-03-25T09:31:17Z |
Hello,

I'm running Processor Time Analysis Tool for Linux 1.1.0.0 and I receive the following error if I open my ps_eLf.log and javacore file.


java.text.ParseException: Unparseable date: 
"Fri Mar 25 10:16:56 2011 " at java.text.DateFormat.parse(DateFormat.java:350) at com.ibm.jinwoo.performance.linux.OpenPerfLogJob.getOSTimeStamp(OpenPerfLogJob.java:307) at com.ibm.jinwoo.performance.linux.OpenPerfLogJob.readSet(OpenPerfLogJob.java:417) at com.ibm.jinwoo.performance.linux.OpenPerfLogJob.processPsLog(OpenPerfLogJob.java:489) at com.ibm.jinwoo.performance.linux.OpenPerfLogJob.run(OpenPerfLogJob.java:138) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1 at com.ibm.jinwoo.performance.linux.OpenPerfLogJob.processJavacore(OpenPerfLogJob.java:766) at com.ibm.jinwoo.performance.linux.OpenPerfLogJob.run(OpenPerfLogJob.java:151) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Job completed successfully Job did not complete successfully java.text.ParseException: Unparseable date: 
"Fri Mar 25 10:16:56 2011 " at java.text.ParseException.<init>(ParseException.java:56) at java.text.DateFormat.parse(DateFormat.java:350) at com.ibm.jinwoo.performance.linux.OpenPerfLogJob.getOSTimeStamp(OpenPerfLogJob.java:307) at com.ibm.jinwoo.performance.linux.OpenPerfLogJob.readSet(OpenPerfLogJob.java:417) at com.ibm.jinwoo.performance.linux.OpenPerfLogJob.processPsLog(OpenPerfLogJob.java:489) at com.ibm.jinwoo.performance.linux.OpenPerfLogJob.run(OpenPerfLogJob.java:138) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1 at com.ibm.jinwoo.performance.linux.OpenPerfLogJob.processJavacore(OpenPerfLogJob.java:766) at com.ibm.jinwoo.performance.linux.OpenPerfLogJob.run(OpenPerfLogJob.java:151) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Job completed successfully


Does anyone has a solution for this?

Regards,
David
Updated on 2012-07-05T10:13:51Z at 2012-07-05T10:13:51Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    642 Posts

    Re: Processor Time Analysis Tool for Linux - Unparseable date error

    ‏2012-07-03T16:07:49Z  
    Hello,
    It is a little bit late but I will post it here anyway.

    I did not make it work but the date format should have the following pattern:

    SimpleDateFormat("EEE MMM dd HH:mm:ss yyyy ")

    Best regards.
  • SystemAdmin
    SystemAdmin
    642 Posts

    Re: Processor Time Analysis Tool for Linux - Unparseable date error

    ‏2012-07-05T10:13:51Z  
    Hello,
    It is a little bit late but I will post it here anyway.

    I did not make it work but the date format should have the following pattern:

    SimpleDateFormat("EEE MMM dd HH:mm:ss yyyy ")

    Best regards.
    Hello,
    I finally made it work. I was getting this error because of the Java locale.
    You should ensure that your JVM has english locale.

    Best regards.