Enter 1000 for price to trade and amount of items to trade
Click place order
Site redirects to company page, but no orders display.
An exception is logged...here is the log.
Listening for transport dt_socket at address: 8000
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.axonframework.samples:axon-trader-webui:war:0.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ org.axonframework.samples:axon-trader:0.1-SNAPSHOT, C:\Development\Axon-trader\pom.xml, line 43, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Axon Trader Sample - Web ui 0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-jetty-plugin:6.1.22:run (default-cli) @ axon-trader-webui >>>
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ axon-trader-webui ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ axon-trader-webui ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ axon-trader-webui ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Development\Axon-trader\web-ui\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ axon-trader-webui ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] <<< maven-jetty-plugin:6.1.22:run (default-cli) @ axon-trader-webui <<<
[INFO]
[INFO] --- maven-jetty-plugin:6.1.22:run (default-cli) @ axon-trader-webui ---
[INFO] Configuring Jetty for project: Axon Trader Sample - Web ui
[INFO] Webapp source directory = C:\Development\Axon-trader\web-ui\src\main\webapp
[INFO] Reload Mechanic: automatic
[INFO] Classes = C:\Development\Axon-trader\web-ui\target\classes
[INFO] Context path = /
[INFO] Tmp directory = determined at runtime
[INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml
[INFO] Web overrides = none
[INFO] web.xml file = C:\Development\Axon-trader\web-ui\src\main\webapp\WEB-INF\web.xml
[INFO] Webapp directory = C:\Development\Axon-trader\web-ui\src\main\webapp
[INFO] Starting jetty 6.1.22 ...
INFO - main - ContextLoader - Root WebApplicationContext: initialization started
INFO - main - licationContextInitializer - Activating the default profile within the application context.
INFO - main - XmlWebApplicationContext - Refreshing Root WebApplicationContext: startup date [Fri Jan 27 11:25:24 EST 2012]; root of context hierarchy
INFO - main - XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [META-INF/spring/command-context.xml]
INFO - main - IdentifierFactory - No custom IdentifierFactory implementation found. Using default.
INFO - main - XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [META-INF/spring/configuration-context.xml]
INFO - main - XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [META-INF/spring/cqrs-infrastructure-context.xml]
INFO - main - XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [META-INF/spring/persistence-infrastructure-context.xml]
INFO - main - XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [META-INF/spring/security-context.xml]
INFO - main - SpringSecurityCoreVersion - You are running with Spring Security Core 3.1.0.RC3
INFO - main - SecurityNamespaceHandler - Spring Security 'config' module version is 3.1.0.RC3
INFO - main - curityMetadataSourceParser - Creating access control expression attribute 'isAnonymous() or isAuthenticated()' for /index.html
INFO - main - curityMetadataSourceParser - Creating access control expression attribute 'isAnonymous() or isAuthenticated()' for /data/
INFO - main - curityMetadataSourceParser - Creating access control expression attribute 'hasRole('ROLE_USER')' for /
INFO - main - curityBeanDefinitionParser - Checking sorted filter chain: [Root bean: class [org.springframework.security.web.context.SecurityContextPersistenceFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 300, Root bean: class [org.springframework.security.web.authentication.logout.LogoutFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 400, <org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#0>, order = 800, Root bean: class [org.springframework.security.web.authentication.www.BasicAuthenticationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1200, Root bean: class [org.springframework.security.web.savedrequest.RequestCacheAwareFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1300, Root bean: class [org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1400, Root bean: class [org.springframework.security.web.authentication.AnonymousAuthenticationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1700, Root bean: class [org.springframework.security.web.session.SessionManagementFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1800, Root bean: class [org.springframework.security.web.access.ExceptionTranslationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1900, <org.springframework.security.web.access.intercept.FilterSecurityInterceptor#0>, order = 2000]
INFO - main - urcesPlaceholderConfigurer - Loading properties file from class path resource [trader.properties]
INFO - main - XmlWebApplicationContext - Bean 'commandBus' of type [class org.axonframework.commandhandling.SimpleCommandBus] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
INFO - main - XmlWebApplicationContext - Bean 'eventBus' of type [class org.axonframework.eventhandling.SimpleEventBus] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
INFO - main - DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@817d6: defining beans [org.springframework.aop.config.internalAutoProxyCreator,companyCommandHandler,orderBookCommandHandler,portfolioCommandHandler,portfolioManagementUserListener,transactionCommandHandler,userCommandHandler,companyListener,orderBookListener,portfolioItemEventListener,portfolioMoneyEventListener,transactionEventListener,userListener,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.axonframework.eventsourcing.EventCountSnapshotterTrigger#0,orderBookRepository,org.axonframework.eventsourcing.EventCountSnapshotterTrigger#1,companyRepository,org.axonframework.eventsourcing.EventCountSnapshotterTrigger#2,userRepository,org.axonframework.eventsourcing.EventCountSnapshotterTrigger#3,portfolioRepository,org.axonframework.eventsourcing.EventCountSnapshotterTrigger#4,transactionRepository,snapshotter,taskExecutor,ehcache,org.springframework.context.support.PropertySourcesPlaceholderConfigurer#0,axon-annotation-command-handler-bean-post-processor,axon-annotation-event-listener-bean-post-processor,eventBus,commandBus,eventStore,sagaRepository,sagaManager,resourceInjector,companyQueryRepository,portfolioQueryRepository,userQueryRepository,transactionQueryRepository,orderBookQueryRepository,tradeExecutedQueryRepository,org.springframework.data.repository.core.support.RepositoryInterfaceAwareBeanPostProcessor#0,mongoSpringTemplate,mongoTemplate,mongoSagaTemplate,org.springframework.data.mongodb.core.MongoFactoryBean#0,mongoDbFactory,traderAuthenticationProvider,userController,org.springframework.security.filterChains,org.springframework.security.filterChainProxy,org.springframework.security.web.DefaultSecurityFilterChain#0,org.springframework.security.web.DefaultSecurityFilterChain#1,org.springframework.security.web.DefaultSecurityFilterChain#2,org.springframework.security.web.PortMapperImpl#0,org.springframework.security.authentication.ProviderManager#0,org.springframework.security.web.context.HttpSessionSecurityContextRepository#0,org.springframework.security.web.authentication.session.SessionFixationProtectionStrategy#0,org.springframework.security.web.savedrequest.HttpSessionRequestCache#0,org.springframework.security.web.access.expression.DefaultWebSecurityExpressionHandler#0,org.springframework.security.access.vote.AffirmativeBased#0,org.springframework.security.web.access.intercept.FilterSecurityInterceptor#0,org.springframework.security.web.access.DefaultWebInvocationPrivilegeEvaluator#0,org.springframework.security.authentication.AnonymousAuthenticationProvider#0,org.springframework.security.web.authentication.www.BasicAuthenticationEntryPoint#0,org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#0,org.springframework.security.userDetailsServiceFactory,org.springframework.security.web.DefaultSecurityFilterChain#3,org.springframework.security.authentication.DefaultAuthenticationEventPublisher#0,org.springframework.security.authenticationManager,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; root of factory hierarchy
WARN - main - ConfigurationFactory - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/Users/gibbensr/.m2/repository/net/sf/ehcache/ehcache-core/2.2.0/ehcache-core-2.2.0.jar!/ehcache-failsafe.xml
INFO - main - ThreadPoolTaskExecutor - Initializing ExecutorService 'taskExecutor'
INFO - main - efaultFilterChainValidator - Checking whether login URL '/login.jsp' is accessible with your configuration
INFO - main - ContextLoader - Root WebApplicationContext: initialization completed in 2182 ms
INFO - main - DispatcherServlet - FrameworkServlet 'dispatcher': initialization started
INFO - main - XmlWebApplicationContext - Refreshing WebApplicationContext for namespace 'dispatcher-servlet': startup date [Fri Jan 27 11:25:27 EST 2012]; parent: Root WebApplicationContext
INFO - main - XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/dispatcher-servlet.xml]
INFO - main - DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1f9f663: defining beans [adminController,companyController,dashboardController,DBInit,mongoController,orderBookController,traderAuthenticationProvider,userController,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0,org.springframework.format.support.FormattingConversionServiceFactoryBean#0,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0,org.springframework.web.servlet.handler.MappedInterceptor#0,org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#0,org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver#0,org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver#0,org.springframework.web.servlet.handler.beanNameUrlHandlerMapping,org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter,org.springframework.web.servlet.config.viewControllerHandlerAdapter,org.springframework.web.servlet.config.viewControllerHandlerMapping,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#0,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#1,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#1,org.springframework.web.servlet.resource.DefaultServletHttpRequestHandler#0,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#2,org.springframework.web.servlet.view.InternalResourceViewResolver#0,validator,messageSource,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@817d6
INFO - main - questMappingHandlerMapping - Mapped "{[/admin/portfolio],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.admin.AdminController.show(org.springframework.ui.Model)
INFO - main - questMappingHandlerMapping - Mapped "{[/admin/portfolio/{identifier}/item],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.admin.AdminController.addItem(java.lang.String,java.lang.String,long)
INFO - main - questMappingHandlerMapping - Mapped "{[/admin/portfolio/{identifier}/money],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.admin.AdminController.addMoney(java.lang.String,long)
INFO - main - questMappingHandlerMapping - Mapped "{[/admin/portfolio/{identifier}],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.admin.AdminController.showPortfolio(java.lang.String,org.springframework.ui.Model)
INFO - main - questMappingHandlerMapping - Mapped "{[/company],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.companies.CompanyController.get(org.springframework.ui.Model)
INFO - main - questMappingHandlerMapping - Mapped "{[/company/{identifier}],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.companies.CompanyController.details(java.lang.String,org.springframework.ui.Model)
INFO - main - questMappingHandlerMapping - Mapped "{[/company/buy/{identifier}],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.companies.CompanyController.buyForm(java.lang.String,org.springframework.ui.Model)
INFO - main - questMappingHandlerMapping - Mapped "{[/company/sell/{identifier}],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.companies.CompanyController.sellForm(java.lang.String,org.springframework.ui.Model)
INFO - main - questMappingHandlerMapping - Mapped "{[/company/sell/{identifier}],methods=[POST],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.companies.CompanyController.sell(org.axonframework.samples.trader.webui.order.SellOrder,org.springframework.validation.BindingResult)
INFO - main - questMappingHandlerMapping - Mapped "{[/company/buy/{identifier}],methods=[POST],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.companies.CompanyController.buy(org.axonframework.samples.trader.webui.order.BuyOrder,org.springframework.validation.BindingResult)
INFO - main - questMappingHandlerMapping - Mapped "{[/dashboard],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.dashboard.DashboardController.show(org.springframework.ui.Model)
INFO - main - questMappingHandlerMapping - Mapped "{[/data/collection/{id}],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.init.MongoController.collection(java.lang.String,int,int,org.springframework.ui.Model)
INFO - main - questMappingHandlerMapping - Mapped "{[/data/collections],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.init.MongoController.collections(org.springframework.ui.Model)
INFO - main - questMappingHandlerMapping - Mapped "{[/data/init],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.init.MongoController.initializeMongo(org.springframework.ui.Model)
INFO - main - questMappingHandlerMapping - Mapped "{[/data/portfolio/money/{identifier}/{amount}],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.init.MongoController.addMoneyToPortfolio(java.lang.String,long,org.springframework.ui.Model)
INFO - main - questMappingHandlerMapping - Mapped "{[/orderbook],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.order.OrderBookController.get(org.springframework.ui.Model)
INFO - main - questMappingHandlerMapping - Mapped "{[/orderbook/{identifier}],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.order.OrderBookController.getOrders(java.lang.String,org.springframework.ui.Model)
INFO - main - questMappingHandlerMapping - Mapped "{[/user/{identifier}],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.security.UserController.detail(java.lang.String,org.springframework.ui.Model)
INFO - main - questMappingHandlerMapping - Mapped "{[/user],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.security.UserController.showUsers(org.springframework.ui.Model)
INFO - main - SimpleUrlHandlerMapping - Mapped URL path [/index.html] onto handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController]
INFO - main - SimpleUrlHandlerMapping - Mapped URL path [/js/] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0'
INFO - main - SimpleUrlHandlerMapping - Mapped URL path [/style/] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#1'
INFO - main - SimpleUrlHandlerMapping - Mapped URL path [/**] onto handler 'org.springframework.web.servlet.resource.DefaultServletHttpRequestHandler#0'
INFO - main - DispatcherServlet - FrameworkServlet 'dispatcher': initialization completed in 9716 ms
[INFO] Started Jetty Server
[INFO] Starting scanner at interval of 5 seconds.
ERROR - 19411967-4 - SimpleCommandBus - Processing of a [StartBuyTransactionCommand] resulted in an exception:
java.lang.ClassCastException: org.axonframework.domain.StringAggregateIdentifier cannot be cast to java.lang.String
at org.axonframework.saga.repository.mongo.AssociationValueEntry.(AssociationValueEntry.java:36)
at org.axonframework.saga.repository.mongo.MongoSagaRepository.storeAssociationValue(MongoSagaRepository.java:108)
at org.axonframework.saga.repository.AbstractSagaRepository.add(AbstractSagaRepository.java:89)
at org.axonframework.saga.repository.mongo.MongoSagaRepository.add(MongoSagaRepository.java:45)
at org.axonframework.saga.annotation.AnnotatedSagaManager.findSagas(AnnotatedSagaManager.java:122)
at org.axonframework.saga.annotation.AnnotatedSagaManager.findSagas(AnnotatedSagaManager.java:103)
at org.axonframework.saga.AbstractSagaManager$SagaLookupAndInvocationTask.run(AbstractSagaManager.java:227)
at org.axonframework.saga.SynchronousSagaExecutionWrapper.scheduleLookupTask(SynchronousSagaExecutionWrapper.java:29)
at org.axonframework.saga.AbstractSagaManager.handle(AbstractSagaManager.java:86)
at org.axonframework.eventhandling.SimpleEventBus.publish(SimpleEventBus.java:110)
at org.axonframework.unitofwork.DefaultUnitOfWork$EventEntry.publishEvent(DefaultUnitOfWork.java:249)
at org.axonframework.unitofwork.DefaultUnitOfWork.publishEvents(DefaultUnitOfWork.java:180)
at org.axonframework.unitofwork.DefaultUnitOfWork.doCommit(DefaultUnitOfWork.java:83)
at org.axonframework.unitofwork.AbstractUnitOfWork.commit(AbstractUnitOfWork.java:54)
at org.axonframework.commandhandling.SimpleCommandBus.doDispatch(SimpleCommandBus.java:125)
at org.axonframework.commandhandling.SimpleCommandBus.dispatch(SimpleCommandBus.java:78)
at org.axonframework.samples.trader.webui.companies.CompanyController.buy(CompanyController.java:147)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:212)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:126)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:629)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:590)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:900)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:827)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:874)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:790)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
at com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)
at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:312)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:324)
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:324)
at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:101)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:324)
at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:324)
at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:324)
at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:324)
at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:324)
at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:182)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:324)
at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:324)
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:324)
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:174)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Issue solved in AxonFramework, commit d9a0d718d6c089ef2121d2ab69949fed4d0395e8
1.3-SNAPSHOT has been deployed. Updating maven dependencies should solve this issue now. You might need to run /data/init again.
Listening for transport dt_socket at address: 8000 [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.axonframework.samples:axon-trader-webui:war:0.1-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ org.axonframework.samples:axon-trader:0.1-SNAPSHOT, C:\Development\Axon-trader\pom.xml, line 43, column 21 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO](AssociationValueEntry.java:36)
at org.axonframework.saga.repository.mongo.MongoSagaRepository.storeAssociationValue(MongoSagaRepository.java:108)
at org.axonframework.saga.repository.AbstractSagaRepository.add(AbstractSagaRepository.java:89)
at org.axonframework.saga.repository.mongo.MongoSagaRepository.add(MongoSagaRepository.java:45)
at org.axonframework.saga.annotation.AnnotatedSagaManager.findSagas(AnnotatedSagaManager.java:122)
at org.axonframework.saga.annotation.AnnotatedSagaManager.findSagas(AnnotatedSagaManager.java:103)
at org.axonframework.saga.AbstractSagaManager$SagaLookupAndInvocationTask.run(AbstractSagaManager.java:227)
at org.axonframework.saga.SynchronousSagaExecutionWrapper.scheduleLookupTask(SynchronousSagaExecutionWrapper.java:29)
at org.axonframework.saga.AbstractSagaManager.handle(AbstractSagaManager.java:86)
at org.axonframework.eventhandling.SimpleEventBus.publish(SimpleEventBus.java:110)
at org.axonframework.unitofwork.DefaultUnitOfWork$EventEntry.publishEvent(DefaultUnitOfWork.java:249)
at org.axonframework.unitofwork.DefaultUnitOfWork.publishEvents(DefaultUnitOfWork.java:180)
at org.axonframework.unitofwork.DefaultUnitOfWork.doCommit(DefaultUnitOfWork.java:83)
at org.axonframework.unitofwork.AbstractUnitOfWork.commit(AbstractUnitOfWork.java:54)
at org.axonframework.commandhandling.SimpleCommandBus.doDispatch(SimpleCommandBus.java:125)
at org.axonframework.commandhandling.SimpleCommandBus.dispatch(SimpleCommandBus.java:78)
at org.axonframework.samples.trader.webui.companies.CompanyController.buy(CompanyController.java:147)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:212)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:126)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:629)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:590)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:900)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:827)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:874)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:790)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
at com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)
at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:312)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:324)
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:324)
at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:101)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:324)
at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:324)
at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:324)
at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:324)
at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:324)
at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:182)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:324)
at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:324)
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:324)
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:174)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
[INFO] ------------------------------------------------------------------------ [INFO] Building Axon Trader Sample - Web ui 0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> maven-jetty-plugin:6.1.22:run (default-cli) @ axon-trader-webui >>> [INFO] [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ axon-trader-webui --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 3 resources [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ axon-trader-webui --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ axon-trader-webui --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory C:\Development\Axon-trader\web-ui\src\test\resources [INFO] [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ axon-trader-webui --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] <<< maven-jetty-plugin:6.1.22:run (default-cli) @ axon-trader-webui <<< [INFO] [INFO] --- maven-jetty-plugin:6.1.22:run (default-cli) @ axon-trader-webui --- [INFO] Configuring Jetty for project: Axon Trader Sample - Web ui [INFO] Webapp source directory = C:\Development\Axon-trader\web-ui\src\main\webapp [INFO] Reload Mechanic: automatic [INFO] Classes = C:\Development\Axon-trader\web-ui\target\classes [INFO] Context path = / [INFO] Tmp directory = determined at runtime [INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml [INFO] Web overrides = none [INFO] web.xml file = C:\Development\Axon-trader\web-ui\src\main\webapp\WEB-INF\web.xml [INFO] Webapp directory = C:\Development\Axon-trader\web-ui\src\main\webapp [INFO] Starting jetty 6.1.22 ... INFO - main - ContextLoader - Root WebApplicationContext: initialization started INFO - main - licationContextInitializer - Activating the default profile within the application context. INFO - main - XmlWebApplicationContext - Refreshing Root WebApplicationContext: startup date [Fri Jan 27 11:25:24 EST 2012]; root of context hierarchy INFO - main - XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [META-INF/spring/command-context.xml] INFO - main - IdentifierFactory - No custom IdentifierFactory implementation found. Using default. INFO - main - XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [META-INF/spring/configuration-context.xml] INFO - main - XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [META-INF/spring/cqrs-infrastructure-context.xml] INFO - main - XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [META-INF/spring/persistence-infrastructure-context.xml] INFO - main - XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [META-INF/spring/security-context.xml] INFO - main - SpringSecurityCoreVersion - You are running with Spring Security Core 3.1.0.RC3 INFO - main - SecurityNamespaceHandler - Spring Security 'config' module version is 3.1.0.RC3 INFO - main - curityMetadataSourceParser - Creating access control expression attribute 'isAnonymous() or isAuthenticated()' for /index.html INFO - main - curityMetadataSourceParser - Creating access control expression attribute 'isAnonymous() or isAuthenticated()' for /data/ INFO - main - curityMetadataSourceParser - Creating access control expression attribute 'hasRole('ROLE_USER')' for / INFO - main - curityBeanDefinitionParser - Checking sorted filter chain: [Root bean: class [org.springframework.security.web.context.SecurityContextPersistenceFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 300, Root bean: class [org.springframework.security.web.authentication.logout.LogoutFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 400, <org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#0>, order = 800, Root bean: class [org.springframework.security.web.authentication.www.BasicAuthenticationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1200, Root bean: class [org.springframework.security.web.savedrequest.RequestCacheAwareFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1300, Root bean: class [org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1400, Root bean: class [org.springframework.security.web.authentication.AnonymousAuthenticationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1700, Root bean: class [org.springframework.security.web.session.SessionManagementFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1800, Root bean: class [org.springframework.security.web.access.ExceptionTranslationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1900, <org.springframework.security.web.access.intercept.FilterSecurityInterceptor#0>, order = 2000] INFO - main - urcesPlaceholderConfigurer - Loading properties file from class path resource [trader.properties] INFO - main - XmlWebApplicationContext - Bean 'commandBus' of type [class org.axonframework.commandhandling.SimpleCommandBus] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) INFO - main - XmlWebApplicationContext - Bean 'eventBus' of type [class org.axonframework.eventhandling.SimpleEventBus] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) INFO - main - DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@817d6: defining beans [org.springframework.aop.config.internalAutoProxyCreator,companyCommandHandler,orderBookCommandHandler,portfolioCommandHandler,portfolioManagementUserListener,transactionCommandHandler,userCommandHandler,companyListener,orderBookListener,portfolioItemEventListener,portfolioMoneyEventListener,transactionEventListener,userListener,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.axonframework.eventsourcing.EventCountSnapshotterTrigger#0,orderBookRepository,org.axonframework.eventsourcing.EventCountSnapshotterTrigger#1,companyRepository,org.axonframework.eventsourcing.EventCountSnapshotterTrigger#2,userRepository,org.axonframework.eventsourcing.EventCountSnapshotterTrigger#3,portfolioRepository,org.axonframework.eventsourcing.EventCountSnapshotterTrigger#4,transactionRepository,snapshotter,taskExecutor,ehcache,org.springframework.context.support.PropertySourcesPlaceholderConfigurer#0,axon-annotation-command-handler-bean-post-processor,axon-annotation-event-listener-bean-post-processor,eventBus,commandBus,eventStore,sagaRepository,sagaManager,resourceInjector,companyQueryRepository,portfolioQueryRepository,userQueryRepository,transactionQueryRepository,orderBookQueryRepository,tradeExecutedQueryRepository,org.springframework.data.repository.core.support.RepositoryInterfaceAwareBeanPostProcessor#0,mongoSpringTemplate,mongoTemplate,mongoSagaTemplate,org.springframework.data.mongodb.core.MongoFactoryBean#0,mongoDbFactory,traderAuthenticationProvider,userController,org.springframework.security.filterChains,org.springframework.security.filterChainProxy,org.springframework.security.web.DefaultSecurityFilterChain#0,org.springframework.security.web.DefaultSecurityFilterChain#1,org.springframework.security.web.DefaultSecurityFilterChain#2,org.springframework.security.web.PortMapperImpl#0,org.springframework.security.authentication.ProviderManager#0,org.springframework.security.web.context.HttpSessionSecurityContextRepository#0,org.springframework.security.web.authentication.session.SessionFixationProtectionStrategy#0,org.springframework.security.web.savedrequest.HttpSessionRequestCache#0,org.springframework.security.web.access.expression.DefaultWebSecurityExpressionHandler#0,org.springframework.security.access.vote.AffirmativeBased#0,org.springframework.security.web.access.intercept.FilterSecurityInterceptor#0,org.springframework.security.web.access.DefaultWebInvocationPrivilegeEvaluator#0,org.springframework.security.authentication.AnonymousAuthenticationProvider#0,org.springframework.security.web.authentication.www.BasicAuthenticationEntryPoint#0,org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#0,org.springframework.security.userDetailsServiceFactory,org.springframework.security.web.DefaultSecurityFilterChain#3,org.springframework.security.authentication.DefaultAuthenticationEventPublisher#0,org.springframework.security.authenticationManager,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; root of factory hierarchy WARN - main - ConfigurationFactory - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/Users/gibbensr/.m2/repository/net/sf/ehcache/ehcache-core/2.2.0/ehcache-core-2.2.0.jar!/ehcache-failsafe.xml INFO - main - ThreadPoolTaskExecutor - Initializing ExecutorService 'taskExecutor' INFO - main - efaultFilterChainValidator - Checking whether login URL '/login.jsp' is accessible with your configuration INFO - main - ContextLoader - Root WebApplicationContext: initialization completed in 2182 ms INFO - main - DispatcherServlet - FrameworkServlet 'dispatcher': initialization started INFO - main - XmlWebApplicationContext - Refreshing WebApplicationContext for namespace 'dispatcher-servlet': startup date [Fri Jan 27 11:25:27 EST 2012]; parent: Root WebApplicationContext INFO - main - XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/dispatcher-servlet.xml] INFO - main - DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1f9f663: defining beans [adminController,companyController,dashboardController,DBInit,mongoController,orderBookController,traderAuthenticationProvider,userController,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0,org.springframework.format.support.FormattingConversionServiceFactoryBean#0,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0,org.springframework.web.servlet.handler.MappedInterceptor#0,org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#0,org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver#0,org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver#0,org.springframework.web.servlet.handler.beanNameUrlHandlerMapping,org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter,org.springframework.web.servlet.config.viewControllerHandlerAdapter,org.springframework.web.servlet.config.viewControllerHandlerMapping,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#0,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#1,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#1,org.springframework.web.servlet.resource.DefaultServletHttpRequestHandler#0,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#2,org.springframework.web.servlet.view.InternalResourceViewResolver#0,validator,messageSource,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@817d6 INFO - main - questMappingHandlerMapping - Mapped "{[/admin/portfolio],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.admin.AdminController.show(org.springframework.ui.Model) INFO - main - questMappingHandlerMapping - Mapped "{[/admin/portfolio/{identifier}/item],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.admin.AdminController.addItem(java.lang.String,java.lang.String,long) INFO - main - questMappingHandlerMapping - Mapped "{[/admin/portfolio/{identifier}/money],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.admin.AdminController.addMoney(java.lang.String,long) INFO - main - questMappingHandlerMapping - Mapped "{[/admin/portfolio/{identifier}],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.admin.AdminController.showPortfolio(java.lang.String,org.springframework.ui.Model) INFO - main - questMappingHandlerMapping - Mapped "{[/company],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.companies.CompanyController.get(org.springframework.ui.Model) INFO - main - questMappingHandlerMapping - Mapped "{[/company/{identifier}],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.companies.CompanyController.details(java.lang.String,org.springframework.ui.Model) INFO - main - questMappingHandlerMapping - Mapped "{[/company/buy/{identifier}],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.companies.CompanyController.buyForm(java.lang.String,org.springframework.ui.Model) INFO - main - questMappingHandlerMapping - Mapped "{[/company/sell/{identifier}],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.companies.CompanyController.sellForm(java.lang.String,org.springframework.ui.Model) INFO - main - questMappingHandlerMapping - Mapped "{[/company/sell/{identifier}],methods=[POST],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.companies.CompanyController.sell(org.axonframework.samples.trader.webui.order.SellOrder,org.springframework.validation.BindingResult) INFO - main - questMappingHandlerMapping - Mapped "{[/company/buy/{identifier}],methods=[POST],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.companies.CompanyController.buy(org.axonframework.samples.trader.webui.order.BuyOrder,org.springframework.validation.BindingResult) INFO - main - questMappingHandlerMapping - Mapped "{[/dashboard],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.dashboard.DashboardController.show(org.springframework.ui.Model) INFO - main - questMappingHandlerMapping - Mapped "{[/data/collection/{id}],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.init.MongoController.collection(java.lang.String,int,int,org.springframework.ui.Model) INFO - main - questMappingHandlerMapping - Mapped "{[/data/collections],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.init.MongoController.collections(org.springframework.ui.Model) INFO - main - questMappingHandlerMapping - Mapped "{[/data/init],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.init.MongoController.initializeMongo(org.springframework.ui.Model) INFO - main - questMappingHandlerMapping - Mapped "{[/data/portfolio/money/{identifier}/{amount}],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.init.MongoController.addMoneyToPortfolio(java.lang.String,long,org.springframework.ui.Model) INFO - main - questMappingHandlerMapping - Mapped "{[/orderbook],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.order.OrderBookController.get(org.springframework.ui.Model) INFO - main - questMappingHandlerMapping - Mapped "{[/orderbook/{identifier}],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.order.OrderBookController.getOrders(java.lang.String,org.springframework.ui.Model) INFO - main - questMappingHandlerMapping - Mapped "{[/user/{identifier}],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.security.UserController.detail(java.lang.String,org.springframework.ui.Model) INFO - main - questMappingHandlerMapping - Mapped "{[/user],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.axonframework.samples.trader.webui.security.UserController.showUsers(org.springframework.ui.Model) INFO - main - SimpleUrlHandlerMapping - Mapped URL path [/index.html] onto handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController] INFO - main - SimpleUrlHandlerMapping - Mapped URL path [/js/] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0' INFO - main - SimpleUrlHandlerMapping - Mapped URL path [/style/] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#1' INFO - main - SimpleUrlHandlerMapping - Mapped URL path [/**] onto handler 'org.springframework.web.servlet.resource.DefaultServletHttpRequestHandler#0' INFO - main - DispatcherServlet - FrameworkServlet 'dispatcher': initialization completed in 9716 ms [INFO] Started Jetty Server [INFO] Starting scanner at interval of 5 seconds. ERROR - 19411967-4 - SimpleCommandBus - Processing of a [StartBuyTransactionCommand] resulted in an exception: java.lang.ClassCastException: org.axonframework.domain.StringAggregateIdentifier cannot be cast to java.lang.String at org.axonframework.saga.repository.mongo.AssociationValueEntry.