java.lang.IllegalArgumentException: ResourceLoader must not be null in Spring -
i want run https://github.com/spring-projects/spring-security-kerberos on machine (via intellij idea). module trying build , run sec-server-spnego-form-auth
, keep getting java.lang.illegalargumentexception: resourceloader must not null
java.lang.illegalstateexception: applicationeventmulticaster not initialized - call 'refresh' before multicasting events via context
, comes because of first error, guess.
any ideas might wrong here?
stacktrace:
2017-08-22 13:28:44.457 error 15064 --- [ main] o.s.boot.springapplication : application startup failed java.lang.illegalargumentexception: resourceloader must not null @ org.springframework.util.assert.notnull(assert.java:112) @ org.springframework.boot.autoconfigure.autoconfigurationsorter.<init>(autoconfigurationsorter.java:53) @ org.springframework.boot.autoconfigure.enableautoconfigurationimportselector.selectimports(enableautoconfigurationimportselector.java:72) @ org.springframework.context.annotation.configurationclassparser.processimport(configurationclassparser.java:393) @ org.springframework.context.annotation.configurationclassparser.doprocessconfigurationclass(configurationclassparser.java:205) @ org.springframework.context.annotation.configurationclassparser.processconfigurationclass(configurationclassparser.java:164) @ org.springframework.context.annotation.configurationclassparser.parse(configurationclassparser.java:139) @ org.springframework.context.annotation.configurationclasspostprocessor.processconfigbeandefinitions(configurationclasspostprocessor.java:284) @ org.springframework.context.annotation.configurationclasspostprocessor.postprocessbeandefinitionregistry(configurationclasspostprocessor.java:225) @ org.springframework.context.support.abstractapplicationcontext.invokebeanfactorypostprocessors(abstractapplicationcontext.java:632) @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:461) @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.refresh(embeddedwebapplicationcontext.java:118) @ org.springframework.boot.springapplication.refresh(springapplication.java:691) @ org.springframework.boot.springapplication.run(springapplication.java:321) @ org.springframework.boot.springapplication.run(springapplication.java:961) @ org.springframework.boot.springapplication.run(springapplication.java:950) @ demo.app.application.main(application.java:13) 2017-08-22 13:28:44.457 info 15064 --- [ main] ationconfigembeddedwebapplicationcontext : closing org.springframework.boot.context.embedded.annotationconfigembeddedwebapplicationcontext@ec4505: startup date [tue aug 22 13:28:44 eest 2017]; root of context hierarchy 2017-08-22 13:28:44.458 warn 15064 --- [ main] ationconfigembeddedwebapplicationcontext : exception thrown applicationlistener handling contextclosedevent java.lang.illegalstateexception: applicationeventmulticaster not initialized - call 'refresh' before multicasting events via context: org.springframework.boot.context.embedded.annotationconfigembeddedwebapplicationcontext@ec4505: startup date [tue aug 22 13:28:44 eest 2017]; root of context hierarchy @ org.springframework.context.support.abstractapplicationcontext.getapplicationeventmulticaster(abstractapplicationcontext.java:347) @ org.springframework.context.support.abstractapplicationcontext.publishevent(abstractapplicationcontext.java:334) @ org.springframework.context.support.abstractapplicationcontext.doclose(abstractapplicationcontext.java:1051) @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.doclose(embeddedwebapplicationcontext.java:150) @ org.springframework.context.support.abstractapplicationcontext.close(abstractapplicationcontext.java:1012) @ org.springframework.boot.springapplication.run(springapplication.java:343) @ org.springframework.boot.springapplication.run(springapplication.java:961) @ org.springframework.boot.springapplication.run(springapplication.java:950) @ demo.app.application.main(application.java:13) 2017-08-22 13:28:44.459 warn 15064 --- [ main] ationconfigembeddedwebapplicationcontext : exception thrown lifecycleprocessor on context close java.lang.illegalstateexception: lifecycleprocessor not initialized - call 'refresh' before invoking lifecycle methods via context: org.springframework.boot.context.embedded.annotationconfigembeddedwebapplicationcontext@ec4505: startup date [tue aug 22 13:28:44 eest 2017]; root of context hierarchy @ org.springframework.context.support.abstractapplicationcontext.getlifecycleprocessor(abstractapplicationcontext.java:360) @ org.springframework.context.support.abstractapplicationcontext.doclose(abstractapplicationcontext.java:1059) @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.doclose(embeddedwebapplicationcontext.java:150) @ org.springframework.context.support.abstractapplicationcontext.close(abstractapplicationcontext.java:1012) @ org.springframework.boot.springapplication.run(springapplication.java:343) @ org.springframework.boot.springapplication.run(springapplication.java:961) @ org.springframework.boot.springapplication.run(springapplication.java:950) @ demo.app.application.main(application.java:13) exception in thread "main" java.lang.illegalargumentexception: resourceloader must not null @ org.springframework.util.assert.notnull(assert.java:112) @ org.springframework.boot.autoconfigure.autoconfigurationsorter.<init>(autoconfigurationsorter.java:53) @ org.springframework.boot.autoconfigure.enableautoconfigurationimportselector.selectimports(enableautoconfigurationimportselector.java:72) @ org.springframework.context.annotation.configurationclassparser.processimport(configurationclassparser.java:393) @ org.springframework.context.annotation.configurationclassparser.doprocessconfigurationclass(configurationclassparser.java:205) @ org.springframework.context.annotation.configurationclassparser.processconfigurationclass(configurationclassparser.java:164) @ org.springframework.context.annotation.configurationclassparser.parse(configurationclassparser.java:139) @ org.springframework.context.annotation.configurationclasspostprocessor.processconfigbeandefinitions(configurationclasspostprocessor.java:284) @ org.springframework.context.annotation.configurationclasspostprocessor.postprocessbeandefinitionregistry(configurationclasspostprocessor.java:225) @ org.springframework.context.support.abstractapplicationcontext.invokebeanfactorypostprocessors(abstractapplicationcontext.java:632) @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:461) @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.refresh(embeddedwebapplicationcontext.java:118) @ org.springframework.boot.springapplication.refresh(springapplication.java:691) @ org.springframework.boot.springapplication.run(springapplication.java:321) @ org.springframework.boot.springapplication.run(springapplication.java:961) @ org.springframework.boot.springapplication.run(springapplication.java:950) @ demo.app.application.main(application.java:13) 2017-08-22 13:28:44.459 info 15064 --- [ main] o.s.b.f.s.defaultlistablebeanfactory : destroying singletons in org.springframework.beans.factory.support.defaultlistablebeanfactory@192cfe: defining beans [org.springframework.context.annotation.internalconfigurationannotationprocessor,org.springframework.context.annotation.internalautowiredannotationprocessor,org.springframework.context.annotation.internalrequiredannotationprocessor,org.springframework.context.annotation.internalcommonannotationprocessor,application,org.springframework.context.annotation.configurationclasspostprocessor.importawareprocessor,mvcconfig,websecurityconfig]; root of factory hierarchy process finished exit code 1
well, solved taking module need , copying fresh project. also, had use application.properties instead of .yml file, , worked charm.
not best solution worked.
wiki
Comments
Post a Comment