java.lang.UnsupportedOperationException: Duration does not support field "months"

joda | petrovpet | 1 decade ago
  1. 0

    Durations

    joda | 1 decade ago | petrovpet
    java.lang.UnsupportedOperationException: Duration does not support field "months"
  2. 0

    Not able to run simple Tranquality example

    Google Groups | 2 years ago | siddhartha dutta
    java.lang.UnsupportedOperationException: Cannot convert to Duration as this period contains months and months vary in length
  3. 0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Histogram aggregator

    Google Groups | 4 years ago | Steve
    java.lang.UnsupportedOperationException: HistogramAggregatorFactory does not support getTypeName()

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      Duration does not support field "months"

      at org.joda.time.AbstractDuration.checkSupport()
    2. Joda-Time
      Duration.<init>
      1. org.joda.time.AbstractDuration.checkSupport(AbstractDuration.java:81)
      2. org.joda.time.AbstractDuration.setMonths(AbstractDuration.java:1170)
      3. org.joda.time.MutableDuration.setMonths(MutableDuration.java:328)
      4. org.joda.time.format.DurationFormatterBuilder$FieldFormatter.setFieldValue(DurationFormatterBuilder.java:1159)
      5. org.joda.time.format.DurationFormatterBuilder$FieldFormatter.parseInto(DurationFormatterBuilder.java:1045)
      6. org.joda.time.format.DurationFormatterBuilder$Composite.parseInto(DurationFormatterBuilder.java:1383)
      7. org.joda.time.format.DurationFormatterBuilder$Separator.parseInto(DurationFormatterBuilder.java:1300)
      8. org.joda.time.convert.StringConverter.setInto(StringConverter.java:148)
      9. org.joda.time.AbstractDuration.<init>(AbstractDuration.java:200)
      10. org.joda.time.MutableDuration.<init>(MutableDuration.java:134)
      11. org.joda.time.AbstractDuration.<init>(AbstractDuration.java:203)
      12. org.joda.time.Duration.<init>(Duration.java:134)
      12 frames