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

Stack Overflow | stackUnderflow | 8 months ago
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
      1. org.joda.time.convert.StringConverter.getDurationMillis(
      2. org.joda.time.base.BaseDuration.<init>(
      3. org.joda.time.Duration.<init>(
      4. org.joda.time.Duration.parse(
      4 frames