java.lang.IllegalArgumentException: Invalid format: "P1M"

Stack Overflow | stackUnderflow | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Parsing ISO 8601 duration format to Joda duration - IllegalArgumentException

    Stack Overflow | 8 months ago | stackUnderflow
    java.lang.IllegalArgumentException: Invalid format: "P1M"

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Invalid format: "P1M"

      at org.joda.time.convert.StringConverter.getDurationMillis()
    2. Joda-Time
      Duration.parse
      1. org.joda.time.convert.StringConverter.getDurationMillis(StringConverter.java:111)
      2. org.joda.time.base.BaseDuration.<init>(BaseDuration.java:105)
      3. org.joda.time.Duration.<init>(Duration.java:209)
      4. org.joda.time.Duration.parse(Duration.java:59)
      4 frames