Logfile is full of "Can't parse date" error when using the buttons "lock time frame" (lock and calendar icon)

Issue #1010 resolved
Jose Antonio Martínez Martínez created an issue

Good afternoon, We are using version 2.9.4 of Timesheet gadget in Atlassian Jira 6.4, and we have the following issue. The problem is that when the "Lock time frame" buttons are used to select dates and lock, a multitude of errors that do not appear previously appear in the log file. The error is as follows:

2016-11-16 08:01:25,035 TP-Processor2 ERROR joseantonio.martinez@ticarum.es 481x3028x2 1v2bpi2 155.54.66.92,155.54.216.202 /rest/timesheet-gadget/1.0/timesheet.json [fdu.jira.util.CalendarUtil] Can't parse date: Mon Nov 07 2016 00:00:00 GMT+0100 (Hora estándar romance)
java.text.ParseException: Unparseable date: "Mon Nov 07 2016 00:00:00 GMT+0100 (Hora estándar romance)"
    at java.text.DateFormat.parse(DateFormat.java:357)
    at com.fdu.jira.util.CalendarUtil.getIsoDateParam(CalendarUtil.java:217)
    at com.fdu.jira.plugin.gadget.timesheet.TimeSheetResource.getVelocityParams(TimeSheetResource.java:167)
    at com.fdu.jira.plugin.gadget.timesheet.TimeSheetResource.getTimesheet(TimeSheetResource.java:139)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)

I have tried to update the plugin to version 2.9.7.3, but the errors keep popping up. Would you have any idea about the problem?

Thank you, A greeting.

Comments (8)

  1. Andriy Zhdanov

    Hi Jose,

    Could you please clarify your locale and timezone settings in JIRA, to let me try it?

    May be as workaround you can change them to something else.

    Thank you.

  2. Jose Antonio Martínez Martínez reporter

    Hi Andriy,

    The current timezone setting in Jira is Default (System): (GMT + 01: 00) Madrid (spanish language). Also, the timesheet plugin has the default configuration.

    Thanks greetings.

  3. Andriy Zhdanov

    Looks like it depends on browser also, could you please let me know what browser are you using and try another browser like Chrome or Firefox?

  4. Jose Antonio Martínez Martínez reporter

    Hello, I have reproduced the errors with Chrome, and it is the browser that we use regularly. However, I'm running several tests with two jira users that were generating errors with the gadget version 2.9.4:

    After updating...

    • User 1. After reusing the buttons and clearing cache, the errors have stopped.
    • User 2. Without changing anything or reusing buttons, errors still appear.

    Maybe after upgrading to version 2.9.7, you had to clear the browser cache so that the gadget did not continue to generate errors.

    Anyway, we will continue to test and later I´ll give you the feedback.

    Thank you, A greeting.

  5. Andriy Zhdanov

    Ah, well, it may be the case, but it's not possible to reset cookies when plugin is updated.

  6. Jose Antonio Martínez Martínez reporter

    Hello, during the last day did not happen again the error. At the moment seems to be resolved after the update of the plugin. Thank you very much for your quick and efficient attention, A greeting.

  7. Log in to comment