Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-7095

An exception is being thrown when pagination buttons are clicked on the Calendar widget

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Release Branch 13.07, Release Branch 14.12, Release Branch 15.12, Trunk
    • 14.12.01, 15.12.01, 13.07.04
    • workeffort
    • 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

        1. OFBIZ-7095.patch
          6 kB
          Chandan Khandelwal

        Issue Links

          Activity

            People

              pandeypranay Pranay Pandey
              chandan.khandelwal Chandan Khandelwal
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: