Git Product home page Git Product logo

Comments (4)

abuijze avatar abuijze commented on August 30, 2024

That's strange. It works fine, here.
Which War did you deploy? Did you build it from the master branch?

from axon-trader.

hellereye avatar hellereye commented on August 30, 2024

Thank you for your reply,
yes, I build it from the master branch and pass tests,I According to the user manual run this sample whit jetty ,it throw error,but error info display of incomplete (use command mvn jetty:run-war) ,so I deploy axon-trader-webui-0.1-SNAPSHOT.war to tomacat server .

Error info in jetty :
INFO - main - licationContextInitializer - Activating the default profile
within the application context.
WARN - main - ConfigurationFactory - No configuration found. Config
uring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/Us
ers/Administrator/AppData/Local/Temp/Jetty_0_0_0_0_8080_axon.trader.webui.0.1.SN
APSHOT.war____j6j2nc/webapp/WEB-INF/lib/ehcache-core-2.2.0.jar!/ehcache-failsafe
.xml
ERROR - main - ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'portfolioCommandHandler': Injection of autowired dependencies failed; ne
sted exception is org.springframework.beans.factory.BeanCreationException: Could
not autowire method: public void org.axonframework.samples.trader.orders.comman
d.PortfolioCommandHandler.setRepository(org.axonframework.repository.Repository)
; nested exception is org.springframework.beans.factory.BeanCreationException: E
rror creating bean with name 'portfolioRepository': Initialization of bean faile
d; nested exception is org.springframework.beans.ConversionNotSupportedException
: Failed to convert property value of type 'net.sf.ehcache.jcache.JCache' to req
uired type 'javax.cache.Cache' for property 'cache'; nested exception is java.la
ng.IllegalStateException: Cannot convert value of type [net.sf.ehcache.jcache.JC
ache] to required type [javax.cache.Cache] for property 'cache': no matching edi
tors or conversion strategy found....

when inject 'portfolioCommandHandler' throw error

from axon-trader.

abuijze avatar abuijze commented on August 30, 2024

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.
Please pull in the latest changes on master (commit 4fbde16). That should fix the issue.

Cheers,

Allard

from axon-trader.

hellereye avatar hellereye commented on August 30, 2024

Yes it caused by the cache ,I had commented cache bean(in cqrs-infrastructure-context.xml) and all references ,it works ok;
Cheers,

from axon-trader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.