Chandan Khandelwal created OFBIZ-7095:
-----------------------------------------
Summary: An exception is being thrown when pagination buttons are
clicked on the Calendar widget.
Key: OFBIZ-7095
URL: https://issues.apache.org/jira/browse/OFBIZ-7095
Project: OFBiz
Issue Type: Bug
Reporter: Chandan Khandelwal
While clicking on the Prev or Next button from the Calendar widget in any view
(Day, Week or Month) , an exception was thrown due to unparseable date format.
The main reason behind this was due to the 'start' parameter in the parameters
map. At the time of creating a valid context for "getWorkEffortEventsByPeriod",
the start parameter was expected to be in Timestamp format but was actually in
String.
Exception :
[java] 2016-05-21 11:43:04,345 |http-nio-8443-exec-6 |ObjectType
|W| Exception thrown while converting type:
[java] org.ofbiz.base.conversion.ConversionException:
java.text.ParseException: Unparseable date: "1461436200000 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.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)