java.lang.IllegalStateException: Unknown periodicity type.

QOS.ch JIRA | Fried Hoeben | 4 years ago
  1. 0

    When I use a rollingPolicy that only uses the year part of a date (i.e. '%d{yyyy}) this is not recognized by log back. See stack trace below. This makes sense when I look at ch.qos.logback.core.rolling.helper.PeriodicityType I see no value for year, the longest is month... t java.lang.IllegalStateException: Unknown periodicity type. at at ch.qos.logback.core.rolling.helper.RollingCalendar.getRelativeDate(RollingCalendar.java:234) at at ch.qos.logback.core.rolling.helper.RollingCalendar.getNextTriggeringDate(RollingCalendar.java:241) at at ch.qos.logback.core.rolling.helper.RollingCalendar.getNextTriggeringMillis(RollingCalendar.java:64) at at ch.qos.logback.core.rolling.TimeBasedFileNamingAndTriggeringPolicyBase.computeNextCheck(TimeBasedFileNamingAndTriggeringPolicyBase.java:75) at at ch.qos.logback.core.rolling.TimeBasedFileNamingAndTriggeringPolicyBase.start(TimeBasedFileNamingAndTriggeringPolicyBase.java:67) at at ch.qos.logback.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy.start(DefaultTimeBasedFileNamingAndTriggeringPolicy.java:32) at at ch.qos.logback.core.rolling.TimeBasedRollingPolicy.start(TimeBasedRollingPolicy.java:87) at at ch.qos.logback.core.joran.action.NestedComplexPropertyIA.end(NestedComplexPropertyIA.java:167) at at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:318) at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:197) at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:183) at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:157) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:143) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:106) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:56) at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:75) at at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:148) at at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84) at at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:54) at at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128) at at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:107) at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:295) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:269) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)

    QOS.ch JIRA | 4 years ago | Fried Hoeben
    java.lang.IllegalStateException: Unknown periodicity type.
  2. 0

    When I use a rollingPolicy that only uses the year part of a date (i.e. '%d{yyyy}) this is not recognized by log back. See stack trace below. This makes sense when I look at ch.qos.logback.core.rolling.helper.PeriodicityType I see no value for year, the longest is month... t java.lang.IllegalStateException: Unknown periodicity type. at at ch.qos.logback.core.rolling.helper.RollingCalendar.getRelativeDate(RollingCalendar.java:234) at at ch.qos.logback.core.rolling.helper.RollingCalendar.getNextTriggeringDate(RollingCalendar.java:241) at at ch.qos.logback.core.rolling.helper.RollingCalendar.getNextTriggeringMillis(RollingCalendar.java:64) at at ch.qos.logback.core.rolling.TimeBasedFileNamingAndTriggeringPolicyBase.computeNextCheck(TimeBasedFileNamingAndTriggeringPolicyBase.java:75) at at ch.qos.logback.core.rolling.TimeBasedFileNamingAndTriggeringPolicyBase.start(TimeBasedFileNamingAndTriggeringPolicyBase.java:67) at at ch.qos.logback.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy.start(DefaultTimeBasedFileNamingAndTriggeringPolicy.java:32) at at ch.qos.logback.core.rolling.TimeBasedRollingPolicy.start(TimeBasedRollingPolicy.java:87) at at ch.qos.logback.core.joran.action.NestedComplexPropertyIA.end(NestedComplexPropertyIA.java:167) at at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:318) at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:197) at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:183) at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:157) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:143) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:106) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:56) at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:75) at at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:148) at at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84) at at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:54) at at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128) at at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:107) at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:295) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:269) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)

    QOS.ch JIRA | 4 years ago | Fried Hoeben
    java.lang.IllegalStateException: Unknown periodicity type.
  3. 0

    GitHub comment 61#161389113

    GitHub | 1 year ago | JohnLCaron
    java.lang.IllegalStateException: Unknown type 
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Generic type in GAE JDO. Howto?

    Google Groups | 7 years ago | Alex Lui
    java.lang.IllegalStateException: Unknown type: K

  1. max_samebug 8 times, last 2 months ago
1 unregistered visitors
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.IllegalStateException

    Unknown periodicity type.

    at ch.qos.logback.core.rolling.helper.RollingCalendar.getRelativeDate()
  2. Logback Core Module
    GenericConfigurator.doConfigure
    1. ch.qos.logback.core.rolling.helper.RollingCalendar.getRelativeDate(RollingCalendar.java:234)
    2. ch.qos.logback.core.rolling.helper.RollingCalendar.getNextTriggeringDate(RollingCalendar.java:241)
    3. ch.qos.logback.core.rolling.helper.RollingCalendar.getNextTriggeringMillis(RollingCalendar.java:64)
    4. ch.qos.logback.core.rolling.TimeBasedFileNamingAndTriggeringPolicyBase.computeNextCheck(TimeBasedFileNamingAndTriggeringPolicyBase.java:75)
    5. ch.qos.logback.core.rolling.TimeBasedFileNamingAndTriggeringPolicyBase.start(TimeBasedFileNamingAndTriggeringPolicyBase.java:67)
    6. ch.qos.logback.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy.start(DefaultTimeBasedFileNamingAndTriggeringPolicy.java:32)
    7. ch.qos.logback.core.rolling.TimeBasedRollingPolicy.start(TimeBasedRollingPolicy.java:87)
    8. ch.qos.logback.core.joran.action.NestedComplexPropertyIA.end(NestedComplexPropertyIA.java:167)
    9. ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:318)
    10. ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:197)
    11. ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:183)
    12. ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62)
    13. ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:157)
    14. ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:143)
    15. ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:106)
    16. ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:56)
    16 frames
  3. Logback Classic Module
    ContextInitializer.autoConfig
    1. ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:75)
    2. ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:148)
    2 frames
  4. SLF4J LOG4J-12 Binding
    StaticLoggerBinder.<clinit>
    1. org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84)
    2. org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:54)
    2 frames
  5. SLF4J API Module
    LoggerFactory.getLogger
    1. org.slf4j.LoggerFactory.bind(LoggerFactory.java:128)
    2. org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:107)
    3. org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:295)
    4. org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:269)
    5. org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)
    5 frames