Using spring 4.1.2. When configuring a custom lifecycle processor (even one that doesn't do anything different from the default one) I get the following stacktrace:
java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: dk.intelligentsystems.platform.Application$ClosingXmlApplicationContext@2e02d950: startup date [Mon Mar 30 11:45:47 CEST 2015]; root of context hierarchy
at org.springframework.context.support.AbstractApplicationContext.getLifecycleProcessor(AbstractApplicationContext.java:357)
at org.springframework.context.support.AbstractApplicationContext.isRunning(AbstractApplicationContext.java:1181)
at org.springframework.context.support.AbstractApplicationContext.initLifecycleProcessor(AbstractApplicationContext.java:683)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:767)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:483)
This is especially odd, since according to the source AbstractApplicationContext.initLifecycleProcessor()
does not call isRunning().
What on earth is going on?
Aucun commentaire:
Enregistrer un commentaire