Duration does not support field "months"

Solutions on the web2109

  • via joda by petrovpet
    , 1 year ago
    Duration does not support field "months"
  • via Google Groups by siddhartha dutta, 1 year ago
    Cannot convert to Duration as this period contains months and months vary in length
  • via Google Groups by Steve, 1 year ago
    HistogramAggregatorFactory does not support getTypeName()
  • Stack trace

    • java.lang.UnsupportedOperationException: Duration does not support field "months" at org.joda.time.AbstractDuration.checkSupport( at org.joda.time.AbstractDuration.setMonths( at org.joda.time.MutableDuration.setMonths( at org.joda.time.format.DurationFormatterBuilder$FieldFormatter.setFieldValue( at org.joda.time.format.DurationFormatterBuilder$FieldFormatter.parseInto( at org.joda.time.format.DurationFormatterBuilder$Composite.parseInto( at org.joda.time.format.DurationFormatterBuilder$Separator.parseInto( at org.joda.time.convert.StringConverter.setInto( at org.joda.time.AbstractDuration.<init>( at org.joda.time.MutableDuration.<init>( at org.joda.time.AbstractDuration.<init>( at org.joda.time.Duration.<init>(

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.