Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Release Branch 13.07, Release Branch 14.12, Release Branch 15.12, Trunk
-
None
Description
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:?]
Attachments
Attachments
Issue Links
- duplicates
-
OFBIZ-6948 Days.groovy generates an error
- Closed