-
Notifications
You must be signed in to change notification settings - Fork 192
when ran sample it throws error #9
Comments
That's strange. It works fine, here. |
Thank you for your reply, Error info in jetty : when inject 'portfolioCommandHandler' throw error |
Hi, there were some cache related issues. I have no idea why it worked on my workspace, but clearing the (workspace) caches allowed me to reproduce the issue. Cheers, Allard |
Yes it caused by the cache ,I had commented cache bean(in cqrs-infrastructure-context.xml) and all references ,it works ok; |
I deploy sample into tomcat, it throws error
INFO - tartStop-1 - licationContextInitializer - Activating the default profile
within the application context.
ERROR - tartStop-1 - ContextLoader - Context initialization failed
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Config
uration problem: URL must not be null
Offending resource: class path resource [META-INF/spring/persistence-infrastruct
ure-context.xml]
at org.springframework.beans.factory.parsing.FailFastProblemReporter.err
or(FailFastProblemReporter.java:68)
at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderC
ontext.java:85)
at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderC
ontext.java:76)
at org.springframework.data.repository.config.AbstractRepositoryConfigDe
finitionParser.handleError(AbstractRepositoryConfigDefinitionParser.java:158)
at org.springframework.data.repository.config.AbstractRepositoryConfigDe
finitionParser.parse(AbstractRepositoryConfigDefinitionParser.java:87)
at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(N
amespaceHandlerSupport.java:73)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.pa
rseCustomElement(BeanDefinitionParserDelegate.java:1419)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.pa
rseCustomElement(BeanDefinitionParserDelegate.java:1409)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentRe
ader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:184)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentRe
ader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:140)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentRe
ader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:111)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registe
rBeanDefinitions(XmlBeanDefinitionReader.java:493)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadB
eanDefinitions(XmlBeanDefinitionReader.java:390)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
nDefinitions(XmlBeanDefinitionReader.java:334)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
nDefinitions(XmlBeanDefinitionReader.java:302)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReade
r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReade
r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReade
r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
at org.springframework.web.context.support.XmlWebApplicationContext.load
BeanDefinitions(XmlWebApplicationContext.java:125)
at org.springframework.web.context.support.XmlWebApplicationContext.load
BeanDefinitions(XmlWebApplicationContext.java:94)
at org.springframework.context.support.AbstractRefreshableApplicationCon
text.refreshBeanFactory(AbstractRefreshableApplicationContext.java:131)
at org.springframework.context.support.AbstractApplicationContext.obtain
FreshBeanFactory(AbstractApplicationContext.java:522)
at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:436)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebA
pplicationContext(ContextLoader.java:385)
at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:284)
at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:111)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:4738)
at org.apache.catalina.core.StandardContext.startInternal(StandardContex
t.java:5158)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:726)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:70
2)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:697)
java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:615)
at java.lang.Thread.run(Thread.java:744)
15-Feb-2014 12:27:50.466 SEVERE [localhost-startStop-1] org.apache.catalina.core
.StandardContext.startInternal Error listenerStart
15-Feb-2014 12:27:50.610 INFO [localhost-startStop-1] org.apache.catalina.util.S
essionIdGenerator.createSecureRandom Creation of SecureRandom instance for sessi
on ID generation using [SHA1PRNG] took [127] milliseconds.
15-Feb-2014 12:27:50.613 SEVERE [localhost-startStop-1] org.apache.catalina.core
.StandardContext.startInternal Context [/axon-trader-webui-0.1-SNAPSHOT] startup
failed due to previous errors
WARN - tartStop-1 - XmlWebApplicationContext - Exception thrown from Applicat
ionListener handling ContextClosedEvent
java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - c
all 'refresh' before multicasting events via the context: Root WebApplicationCon
text: startup date [Sat Feb 15 12:27:48 CST 2014]; root of context hierarchy
at org.springframework.context.support.AbstractApplicationContext.getApp
licationEventMulticaster(AbstractApplicationContext.java:337)
at org.springframework.context.support.AbstractApplicationContext.publis
hEvent(AbstractApplicationContext.java:324)
at org.springframework.context.support.AbstractApplicationContext.doClos
e(AbstractApplicationContext.java:1025)
at org.springframework.context.support.AbstractApplicationContext.close(
AbstractApplicationContext.java:988)
at org.springframework.web.context.ContextLoader.closeWebApplicationCont
ext(ContextLoader.java:556)
at org.springframework.web.context.ContextLoaderListener.contextDestroye
d(ContextLoaderListener.java:142)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext
.java:4779)
at org.apache.catalina.core.StandardContext.stopInternal(StandardContext
.java:5372)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:726)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:70
2)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:697)
java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:615)
at java.lang.Thread.run(Thread.java:744)
WARN - tartStop-1 - XmlWebApplicationContext - Exception thrown from Lifecycl
eProcessor on context close
java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refr
esh' before invoking lifecycle methods via the context: Root WebApplicationConte
xt: startup date [Sat Feb 15 12:27:48 CST 2014]; root of context hierarchy
at org.springframework.context.support.AbstractApplicationContext.getLif
ecycleProcessor(AbstractApplicationContext.java:350)
at org.springframework.context.support.AbstractApplicationContext.doClos
e(AbstractApplicationContext.java:1033)
at org.springframework.context.support.AbstractApplicationContext.close(
AbstractApplicationContext.java:988)
at org.springframework.web.context.ContextLoader.closeWebApplicationCont
ext(ContextLoader.java:556)
at org.springframework.web.context.ContextLoaderListener.contextDestroye
d(ContextLoaderListener.java:142)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext
.java:4779)
at org.apache.catalina.core.StandardContext.stopInternal(StandardContext
.java:5372)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:726)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:70
2)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:697)
java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:615)
at java.lang.Thread.run(Thread.java:744)
15-Feb-2014 12:27:50.706 SEVERE [localhost-startStop-1] org.apache.catalina.load
er.WebappClassLoader.clearReferencesThreads The web application [/axon-trader-we
bui-0.1-SNAPSHOT] appears to have started a thread named [FileWatchdog] but has
failed to stop it. This is very likely to create a memory leak.
The text was updated successfully, but these errors were encountered: