[jira] [Commented] (OFBIZ-7329) An exception is being thrown when day links are clicked in the Week and Month view of the Calendar widget.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-7329) An exception is being thrown when day links are clicked in the Week and Month view of the Calendar widget.

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-7329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15335508#comment-15335508 ]

Aditya Patwa commented on OFBIZ-7329:
-------------------------------------

In the patch I have changed the name of the 'start' parameter to "startTime" as at the time of creating a valid context for "getWorkEffortEventsByPeriod", the "start" parameter for the service was expected to be in Timestamp format but was actually in String format.

> An exception is being thrown when day links are clicked in the Week and Month view of the Calendar widget.
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-7329
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-7329
>             Project: OFBiz
>          Issue Type: Bug
>          Components: workeffort
>    Affects Versions: Release Branch 13.07, Release Branch 14.12, Trunk, Release Branch 15.12
>            Reporter: Aditya Patwa
>            Assignee: Pranay Pandey
>         Attachments: OFBIZ-7329.patch
>
>
> While clicking on the day link (i.e. Sunday, Monday etc.) in Week view or on a particular day of the month in the month view, an exception is thrown due to unparseable date format.
> Exception :
>  org.ofbiz.base.conversion.ConversionException: java.text.ParseException: Unparseable date: "1465669800000 00:00:00.000"
>      [java] at org.ofbiz.base.conversion.DateTimeConverters$StringToTimestamp.convert(DateTimeConverters.java:671) ~[ofbiz-base.jar:?]
>      [java] at org.ofbiz.base.conversion.DateTimeConverters$StringToTimestamp.convert(DateTimeConverters.java:618) ~[ofbiz-base.jar:?]
>      [java] at org.ofbiz.base.util.ObjectType.simpleTypeConvert(ObjectType.java:543) [ofbiz-base.jar:?]
>      [java] at org.ofbiz.service.ModelService.makeValid(ModelService.java:910) [ofbiz-service.jar:?]
>      [java] at org.ofbiz.service.ModelService.makeValid(ModelService.java:838) [ofbiz-service.jar:?]
>      [java] at org.ofbiz.service.ModelService.makeValid(ModelService.java:826) [ofbiz-service.jar:?]
>      [java] at org.ofbiz.service.DispatchContext.makeValidContext(DispatchContext.java:192) [ofbiz-service.jar:?]
>      [java] at org.ofbiz.service.DispatchContext.makeValidContext(DispatchContext.java:162) [ofbiz-service.jar:?]
>      [java] at org.ofbiz.service.DispatchContext$makeValidContext$0.call(Unknown Source) [ofbiz-service.jar:?]
>      [java] at Days.run(Days.groovy:38) [script:?]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)