Coder Social home page Coder Social logo

cer / event-sourcing-examples Goto Github PK

View Code? Open in Web Editor NEW
3.1K 3.1K 945.0 5.22 MB

Example code for my building and deploying microservices with event sourcing, CQRS and Docker presentation

License: Other

Shell 0.23% Java 8.17% Groovy 0.12% Scala 1.86% JavaScript 87.62% HTML 0.33% CSS 1.68%

event-sourcing-examples's People

Contributors

andrevinsky avatar cer avatar crcinc avatar dartandrevinsky avatar dartpopikyardo avatar rstoyanchev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

event-sourcing-examples's Issues

a simple problem with cdc

How to solve the problem of CDC died? I don't want to restart CDC,How to configure CDC Load balancing?

Docker compose failure

Hi,
While running docker-compose I get the following error for all the services.
(root) Additional property mysql is not allowed

I managed to resolve this by fixing the docker-compose-eventuate-local.yml and docker-compose-common.yml
to add the following
version: "3" services:

Am I missing something here to make it work as is from the git clone?

Create Account doesn't work after Logging In

I am running the java-spring implementation of Money Transfer application. I started the application using docker-compose-eventualte-local.yml. I have set the DOCKER_HOST_IP as specified in the README file.
After starting the application, I could register and login using http://$DOCKER_HOST_ID:8080. However, after logging in the Create Account link(s) don't seem to work. I tried in Safari as well as Chrome browser.

java-spring: containers crashing after exceptions during startup (eventuate-local)

I hope this problem is reproducable and can be solved or explained quickly. I'm quite new in the area of docker, microservices and wanted to check out this eventuate example in combination with the js-frontend.

In the js-frontend I was always able to register a new customer. But after several failing login-attempts I was wondering what's going on. After some time I noticed that several docker-containers exited with code 0.

  • In the beginnging (after clicking around in the js-frontend and registering a customer) I think there were more services crashing (e.g. also the accountsqueryside)

Szenario

Build and run the java-spring example with the eventuate-local configurations:
gradlew assemble -P eventuateDriver=local
docker-compose -f docker-compose-eventuate-local.yml up -d

After some time (spring boot apps within the docker containers are starting ...) I got exceptions in the following containers and that of course causes the containers to exit:

  • customersqueryside
  • transactionscommandside

image

Error-Logs

customersqueryside_log.txt
transactionscommandside_log.txt

Note

I'm running this example on docker for windows. I hope this shouldn't have any impact on this issue.

Simplify the project

Principles to follow:

  • A module per service, e.g. customer-service - instead of 3+/service
    
  • Discarded support for monolith - not important - that enables the module structure to be simpler
    
  • Simpler, more sensible naming conventions - no command-side, query-side, ..., instead - e.g. customer-service
    
  • Each service has an application.properties that defines some sensible defaults - simplifies the amount of configuration needed in docker-compose.yml 
    

Event Driven Code incomplete

Hi,
I downloaded the code event-sourcing-examples-master.zip.
It is giving me 424 compilation errors.
Many classes like Event,EventUtil,CommandProcessingAggregates and most of the files from EventStore are missing.
Can you provide complete source code please, so that I can try some examples.

Thanks
Pavan

Issue while starting the client

I am getting below exception now while starting client. Can you please tell me what's wrong here.Below are my configuration

I have started my local zookeper, kafka server and MySql server.
I have created below topics in kafka
com.so.aggregate.BidAggregate
com.so.aggregate.ItemAggregate
eventuate.local.cdc.my-sql-connector.history.kafka.topic
eventuate.local.cdc.my-sql-connector.offset.storage
Created events,entities and snapshots table in eventuate schema.
Also one more query I have included embeded CDC in my client application. DO I need to separately run local CDC service?

java.util.concurrent.ExecutionException: java.lang.RuntimeException: Engine failed to startUnable to configure and start the 'org.apache.kafka.connect.storage.KafkaOffsetBackingStore' offset backing store
at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357) ~[na:1.8.0_141]
at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1895) ~[na:1.8.0_141]
at io.eventuate.local.cdc.debezium.EventTableChangesToAggregateTopicRelay$1.takeLeadership(EventTableChangesToAggregateTopicRelay.java:69) [eventuate-local-java-embedded-cdc-0.11.0.RELEASE.jar:na]
at io.eventuate.local.cdc.debezium.EventTableChangesToAggregateTopicRelay$1.takeLeadership(EventTableChangesToAggregateTopicRelay.java:61) [eventuate-local-java-embedded-cdc-0.11.0.RELEASE.jar:na]
at org.apache.curator.framework.recipes.leader.LeaderSelector$WrappedListener.takeLeadership(LeaderSelector.java:537) [curator-recipes-2.11.1.jar:na]
at org.apache.curator.framework.recipes.leader.LeaderSelector.doWork(LeaderSelector.java:399) [curator-recipes-2.11.1.jar:na]
at org.apache.curator.framework.recipes.leader.LeaderSelector.doWorkLoop(LeaderSelector.java:444) [curator-recipes-2.11.1.jar:na]
at org.apache.curator.framework.recipes.leader.LeaderSelector.access$100(LeaderSelector.java:64) [curator-recipes-2.11.1.jar:na]
at org.apache.curator.framework.recipes.leader.LeaderSelector$2.call(LeaderSelector.java:245) [curator-recipes-2.11.1.jar:na]
at org.apache.curator.framework.recipes.leader.LeaderSelector$2.call(LeaderSelector.java:239) [curator-recipes-2.11.1.jar:na]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_141]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_141]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_141]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_141]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_141]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_141]
Caused by: java.lang.RuntimeException: Engine failed to startUnable to configure and start the 'org.apache.kafka.connect.storage.KafkaOffsetBackingStore' offset backing store
at io.eventuate.local.cdc.debezium.EventTableChangesToAggregateTopicRelay.lambda$startCapturingChanges$0(EventTableChangesToAggregateTopicRelay.java:165) ~[eventuate-local-java-embedded-cdc-0.11.0.RELEASE.jar:na]
at io.debezium.embedded.EmbeddedEngine.run(EmbeddedEngine.java:793) ~[debezium-embedded-0.7.5.jar:0.7.5]
at io.eventuate.local.cdc.debezium.EventTableChangesToAggregateTopicRelay.lambda$startCapturingChanges$1(EventTableChangesToAggregateTopicRelay.java:174) ~[eventuate-local-java-embedded-cdc-0.11.0.RELEASE.jar:na]
... 3 common frames omitted
Caused by: java.lang.NullPointerException: null
at org.apache.kafka.connect.storage.KafkaOffsetBackingStore.configure(KafkaOffsetBackingStore.java:82) ~[connect-runtime-1.0.1.jar:na]
at io.debezium.embedded.EmbeddedEngine.run(EmbeddedEngine.java:628) ~[debezium-embedded-0.7.5.jar:0.7.5]
... 4 common frames omitted

docker-compose build fail

when i use

./gradlew assemble

compile is successed.

:testutil:jar UP-TO-DATE
:testutil:assemble UP-TO-DATE
:transactions-command-side-backend:assemble UP-TO-DATE
:transactions-command-side-service:compileJava UP-TO-DATE
:transactions-command-side-service:processResources UP-TO-DATE
:transactions-command-side-service:classes UP-TO-DATE
:transactions-command-side-service:jar
:transactions-command-side-service:bootRepackage
:transactions-command-side-service:assemble
:transactions-command-side-web:assemble UP-TO-DATE

BUILD SUCCESSFUL

Total time: 38.508 secs

but when copy docker-compose.yml to file java-spring and use

docker-compose up

is fail .

accountscommandside_1     | Field error in object 'eventStore' on field 'stompServerPort': rejected value []; codes [typeMismatch.eventStore.stompServerPort,typeMismatch.stompServerPort,typeMismatch.int,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [eventStore.stompServerPort,stompServerPort]; arguments []; default message [stompServerPort]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'int' for property 'stompServerPort'; nested exception is org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type java.lang.String to type int]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'eventStore.CONFIGURATION_PROPERTIES': Could not bind properties to [unknown] (target=eventStore, ignoreInvalidFields=false, ignoreUnknownFields=true, ignoreNestedProperties=false); nested exception is org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 1 errors
accountscommandside_1     | Field error in object 'eventStore' on field 'stompServerPort': rejected value []; codes [typeMismatch.eventStore.stompServerPort,typeMismatch.stompServerPort,typeMismatch.int,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [eventStore.stompServerPort,stompServerPort]; arguments []; default message [stompServerPort]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'int' for property 'stompServerPort'; nested exception is org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type java.lang.String to type int]
accountscommandside_1     |     at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749)
accountscommandside_1     |     at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:464)
accountscommandside_1     |     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1119)
accountscommandside_1     |     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1014)
accountscommandside_1     |     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
accountscommandside_1     |     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
accountscommandside_1     |     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
accountscommandside_1     |     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
accountscommandside_1     |     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
accountscommandside_1     |     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
accountscommandside_1     |     at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1120)
accountscommandside_1     |     at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1044)
accountscommandside_1     |     at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942)
accountscommandside_1     |     at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:813)
accountscommandside_1     |     at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)
accountscommandside_1     |     ... 46 more
accountscommandside_1     | Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'eventStore.CONFIGURATION_PROPERTIES': Could not bind properties to [unknown] (target=eventStore, ignoreInvalidFields=false, ignoreUnknownFields=true, ignoreNestedProperties=false); nested exception is org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 1 errors
accountscommandside_1     | Field error in object 'eventStore' on field 'stompServerPort': rejected value []; codes [typeMismatch.eventStore.stompServerPort,typeMismatch.stompServerPort,typeMismatch.int,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [eventStore.stompServerPort,stompServerPort]; arguments []; default message [stompServerPort]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'int' for property 'stompServerPort'; nested exception is org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type java.lang.String to type int]
accountscommandside_1     |     at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.postProcessBeforeInitialization(ConfigurationPropertiesBindingPostProcessor.java:303)
accountscommandside_1     |     at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.postProcessBeforeInitialization(ConfigurationPropertiesBindingPostProcessor.java:250)
accountscommandside_1     |     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408)
accountscommandside_1     |     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1566)
accountscommandside_1     |     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
accountscommandside_1     |     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
accountscommandside_1     |     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
accountscommandside_1     |     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
accountscommandside_1     |     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
accountscommandside_1     |     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
accountscommandside_1     |     at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1120)
accountscommandside_1     |     at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1044)
accountscommandside_1     |     at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942)
accountscommandside_1     |     at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:813)
accountscommandside_1     |     at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)
accountscommandside_1     |     ... 60 more
accountscommandside_1     | Caused by: org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 1 errors
accountscommandside_1     | Field error in object 'eventStore' on field 'stompServerPort': rejected value []; codes [typeMismatch.eventStore.stompServerPort,typeMismatch.stompServerPort,typeMismatch.int,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [eventStore.stompServerPort,stompServerPort]; arguments []; default message [stompServerPort]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'int' for property 'stompServerPort'; nested exception is org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type java.lang.String to type int]
accountscommandside_1     |     at org.springframework.boot.bind.PropertiesConfigurationFactory.validate(PropertiesConfigurationFactory.java:296)
accountscommandside_1     |     at org.springframework.boot.bind.PropertiesConfigurationFactory.doBindPropertiesToTarget(PropertiesConfigurationFactory.java:255)
accountscommandside_1     |     at org.springframework.boot.bind.PropertiesConfigurationFactory.bindPropertiesToTarget(PropertiesConfigurationFactory.java:227)
accountscommandside_1     |     at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.postProcessBeforeInitialization(ConfigurationPropertiesBindingPostProcessor.java:296)
accountscommandside_1     |     ... 74 more
javaspring_accountscommandside_1 exited with code 1
Gracefully stopping... (press Ctrl+C again to force)
Stopping javaspring_accountsqueryside_1...
Stopping javaspring_mongodb_1...

thanks! someone help.

Q: Transaction Management across decoupled services using event-driven approach

I'm curious about the under-the-hood idea of using event-driven Eventual Consistency instead of traditional Distributed Transaction.

I'm really sorry if my question is too general. I did try to research through so many discussions, then I found this fantastic example, which is the most meaningful resource for me.

Could you please give me few comparisons between them? Are there any best practices? I don't prefer Distributed Transaction, but I could not prove myself to use another approach.

hostname can't be null

Hi,

I was able to start docker mongo image and build the code with gradle. When i run either java or scala examples by calling ../run-all-services.sh i get an exception "hostname can't be null". I tried to analyse the stacktrace but didn't figure out what is the problem. I'm using Ubuntu virtualbox. Can you please have a look on it ?

Log file:

12:08:55,353 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
12:08:55,356 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
12:08:55,366 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/home/hadoop/EventSourcing/event-sourcing-examples/scala-spring/accounts-command-side-service/build/libs/accounts-command-side-service.jar!/lib/utils-0.7.jar!/logback.xml]
12:08:55,831 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@46441b45 - URL [jar:file:/home/hadoop/EventSourcing/event-sourcing-examples/scala-spring/accounts-command-side-service/build/libs/accounts-command-side-service.jar!/lib/utils-0.7.jar!/logback.xml] is not of type file
12:08:57,040 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
12:08:57,131 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
12:08:57,269 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
12:08:57,841 |-WARN in ch.qos.logback.core.ConsoleAppender[STDOUT] - This appender no longer admits a layout as a sub-component, set an encoder instead.
12:08:57,841 |-WARN in ch.qos.logback.core.ConsoleAppender[STDOUT] - To ensure compatibility, wrapping your layout in LayoutWrappingEncoder.
12:08:57,841 |-WARN in ch.qos.logback.core.ConsoleAppender[STDOUT] - See also http://logback.qos.ch/codes.html#layoutInsteadOfEncoder for details
12:08:57,844 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to ERROR
12:08:57,844 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT]
12:08:57,850 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [scala.slick.session.BaseSession] to INFO
12:08:57,850 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [net.chrisrichardson.eventstore] to INFO
12:08:57,850 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.springframework.web.client] to DEBUG
12:08:57,850 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [net.chrisrichardson.shopping.web] to INFO
12:08:57,850 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [net.chrisrichardson.shopping] to DEBUG
12:08:57,850 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [net.chrisrichardson.readside] to DEBUG
12:08:57,850 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [net.chrisrichardson.eventstore.subscriptions.EventHandlerRegistrar] to DEBUG
12:08:57,851 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [akka.actor] to DEBUG
12:08:57,851 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.springframework.web] to DEBUG
12:08:57,851 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.springframework.context] to INFO
12:08:57,851 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.springframework.http] to DEBUG
12:08:57,851 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.typesafe] to DEBUG
12:08:57,851 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [kafka] to INFO
12:08:57,851 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
12:08:57,863 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@215a730d - Registering current configuration as safe fallback point


  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v1.2.5.RELEASE)

12:09:00.719  DEBUG o.s.w.c.s.StandardServletEnvironment - Adding [servletConfigInitParams] PropertySource with lowest search precedence
12:09:00.736  DEBUG o.s.w.c.s.StandardServletEnvironment - Adding [servletContextInitParams] PropertySource with lowest search precedence
12:09:00.736  DEBUG o.s.w.c.s.StandardServletEnvironment - Adding [systemProperties] PropertySource with lowest search precedence
12:09:00.736  DEBUG o.s.w.c.s.StandardServletEnvironment - Adding [systemEnvironment] PropertySource with lowest search precedence
12:09:00.736  DEBUG o.s.w.c.s.StandardServletEnvironment - Initialized StandardServletEnvironment with PropertySources [servletConfigInitParams,servletContextInitParams,systemProperties,systemEnvironment]
12:09:01.180  INFO  n.c.e.e.b.w.m.AccountsCommandSideServiceMain$ - Starting AccountsCommandSideServiceMain. on osboxes with PID 3940 (/home/hadoop/EventSourcing/event-sourcing-examples/scala-spring/accounts-command-side-service/build/libs/accounts-command-side-service.jar started by hadoop in /home/hadoop/EventSourcing/event-sourcing-examples/scala-spring)
12:09:15.858  DEBUG o.s.w.c.s.StandardServletEnvironment - Removing [applicationConfigurationProperties] PropertySource
12:09:15.858  DEBUG o.s.w.c.s.StandardServletEnvironment - Removing [defaultProperties] PropertySource
12:09:21.350  INFO  o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'net.chrisrichardson.utils.config.MetricRegistryConfiguration' of type [class net.chrisrichardson.utils.config.MetricRegistryConfiguration$$EnhancerBySpringCGLIB$$d0f69b86] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
12:09:21.475  INFO  o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'metricRegistry' of type [class com.codahale.metrics.MetricRegistry] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
12:09:21.691  INFO  o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'net.chrisrichardson.eventstore.idgeneration.IdGeneratorConfiguration' of type [class net.chrisrichardson.eventstore.idgeneration.IdGeneratorConfiguration$$EnhancerBySpringCGLIB$$6b9193fe] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
12:09:21.888  INFO  n.c.e.i.BoundaryFlakeIdGenerator - found these hardware network interfaces: Stream(name:vetha5e8773 (vetha5e8773), ?)
12:09:22.076  INFO  o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'idGenerator' of type [class net.chrisrichardson.eventstore.idgeneration.BoundaryFlakeIdGenerator] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
12:09:22.077  INFO  o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'net.chrisrichardson.eventstore.client.config.EventStoreHttpClientConfiguration' of type [class net.chrisrichardson.eventstore.client.config.EventStoreHttpClientConfiguration$$EnhancerBySpringCGLIB$$92c83738] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
12:09:22.230  INFO  o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'net.chrisrichardson.utils.config.ActorSystemConfiguration' of type [class net.chrisrichardson.utils.config.ActorSystemConfiguration$$EnhancerBySpringCGLIB$$ab4c7ff3] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
[DEBUG] [09/25/2015 12:09:24.213] [main] [EventStream] StandardOutLogger started
[DEBUG] [09/25/2015 12:09:26.726] [eventStore-akka.actor.default-dispatcher-2] [akka://eventStore/] started (akka.actor.LocalActorRefProvider$Guardian@1980077e)
[DEBUG] [09/25/2015 12:09:26.843] [eventStore-akka.actor.default-dispatcher-4] [akka://eventStore/system] started (akka.actor.LocalActorRefProvider$SystemGuardian@38512bcf)
[DEBUG] [09/25/2015 12:09:26.842] [eventStore-akka.actor.default-dispatcher-3] [akka://eventStore/user] started (akka.actor.LocalActorRefProvider$Guardian@5258c839)
[DEBUG] [09/25/2015 12:09:26.853] [eventStore-akka.actor.default-dispatcher-2] [akka://eventStore/] now supervising Actor[akka://eventStore/user]
[DEBUG] [09/25/2015 12:09:26.854] [eventStore-akka.actor.default-dispatcher-2] [akka://eventStore/] now supervising Actor[akka://eventStore/system]
[DEBUG] [09/25/2015 12:09:26.966] [eventStore-akka.actor.default-dispatcher-3] [akka://eventStore/user] now watched by Actor[akka://eventStore/system]
[DEBUG] [09/25/2015 12:09:26.966] [eventStore-akka.actor.default-dispatcher-3] [akka://eventStore/system] now watched by Actor[akka://eventStore/]
[DEBUG] [09/25/2015 12:09:26.980] [eventStore-akka.actor.default-dispatcher-2] [akka://eventStore/system] now supervising Actor[akka://eventStore/system/log1-Slf4jLogger#-971910177]
[DEBUG] [09/25/2015 12:09:26.981] [eventStore-akka.actor.default-dispatcher-4] [akka://eventStore/system/log1-Slf4jLogger] started (akka.event.slf4j.Slf4jLogger@65076fbc)
[DEBUG] [09/25/2015 12:09:27.184] [main] [EventStream(akka://eventStore)] logger log1-Slf4jLogger started
[DEBUG] [09/25/2015 12:09:27.226] [eventStore-akka.actor.default-dispatcher-2] [akka://eventStore/system] now supervising Actor[akka://eventStore/system/UnhandledMessageForwarder#1518443680]
[DEBUG] [09/25/2015 12:09:27.235] [eventStore-akka.actor.default-dispatcher-2] [akka://eventStore/system/UnhandledMessageForwarder] started (akka.event.LoggingBus$$anonfun$startDefaultLoggers$2$$anon$3@7824edc2)
[DEBUG] [09/25/2015 12:09:27.237] [main] [EventStream(akka://eventStore)] Default Loggers started
12:09:27.249  DEBUG a.a.LocalActorRefProvider$SystemGuardian - now supervising Actor[akka://eventStore/system/UnhandledMessageForwarder#1518443680]
12:09:27.257  DEBUG a.a.LocalActorRefProvider$SystemGuardian - now supervising Actor[akka://eventStore/system/deadLetterListener#-697444365]
12:09:27.348  INFO  o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'actorSystem' of type [class akka.actor.ActorSystemImpl] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
12:09:27.974  INFO  o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'eventStore.CONFIGURATION_PROPERTIES' of type [class net.chrisrichardson.eventstore.client.config.EventStoreHttpClientConfigurationProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
12:09:33.889  DEBUG a.a.LocalActorRefProvider$Guardian - stopped
12:09:33.920  DEBUG a.a.LocalActorRefProvider$SystemGuardian - received AutoReceiveMessage Envelope(Terminated(Actor[akka://eventStore/user]),Actor[akka://eventStore/user])
[DEBUG] [09/25/2015 12:09:33.937] [eventStore-akka.actor.default-dispatcher-3] [EventStream] shutting down: StandardOutLogger started
12:09:33.968  ERROR o.s.boot.SpringApplication - Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'net.chrisrichardson.eventstore.subscriptions.config.EventStoreSubscriptionsConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private net.chrisrichardson.eventstore.EventStoreSubscriptionManagement net.chrisrichardson.eventstore.subscriptions.config.EventStoreSubscriptionsConfiguration.eventStoreSubscriptionManagement; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'eventStore' defined in class net.chrisrichardson.eventstore.client.config.EventStoreHttpClientConfiguration: Unsatisfied dependency expressed through constructor argument with index 0 of type [net.chrisrichardson.eventstore.EntityEventStore]: : Error creating bean with name 'entityEventStore' defined in class net.chrisrichardson.eventstore.client.config.EventStoreHttpClientConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [net.chrisrichardson.eventstore.client.HttpEntityEventStore]: Factory method 'entityEventStore' threw exception; nested exception is java.lang.IllegalArgumentException: hostname can't be null; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityEventStore' defined in class net.chrisrichardson.eventstore.client.config.EventStoreHttpClientConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [net.chrisrichardson.eventstore.client.HttpEntityEventStore]: Factory method 'entityEventStore' threw exception; nested exception is java.lang.IllegalArgumentException: hostname can't be null
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1210) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:368) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1119) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1014) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:232) ~[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:615) ~[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:465) ~[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118) ~[spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE]
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686) [spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:320) [spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:957) [spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:946) [spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE]
    at net.chrisrichardson.eventstore.examples.bank.web.main.AccountsCommandSideServiceMain$.main(AccountsCommandSideServiceMain.scala:8) [accounts-command-side-service.jar!/:na]
    at net.chrisrichardson.eventstore.examples.bank.web.main.AccountsCommandSideServiceMain.main(AccountsCommandSideServiceMain.scala) [accounts-command-side-service.jar!/:na]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_79]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_79]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_79]
    at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_79]
    at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53) [accounts-command-side-service.jar!/:na]
    at java.lang.Thread.run(Thread.java:745) [na:1.7.0_79]
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private net.chrisrichardson.eventstore.EventStoreSubscriptionManagement net.chrisrichardson.eventstore.subscriptions.config.EventStoreSubscriptionsConfiguration.eventStoreSubscriptionManagement; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'eventStore' defined in class net.chrisrichardson.eventstore.client.config.EventStoreHttpClientConfiguration: Unsatisfied dependency expressed through constructor argument with index 0 of type [net.chrisrichardson.eventstore.EntityEventStore]: : Error creating bean with name 'entityEventStore' defined in class net.chrisrichardson.eventstore.client.config.EventStoreHttpClientConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [net.chrisrichardson.eventstore.client.HttpEntityEventStore]: Factory method 'entityEventStore' threw exception; nested exception is java.lang.IllegalArgumentException: hostname can't be null; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityEventStore' defined in class net.chrisrichardson.eventstore.client.config.EventStoreHttpClientConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [net.chrisrichardson.eventstore.client.HttpEntityEventStore]: Factory method 'entityEventStore' threw exception; nested exception is java.lang.IllegalArgumentException: hostname can't be null
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:561) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    ... 32 common frames omitted
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'eventStore' defined in class net.chrisrichardson.eventstore.client.config.EventStoreHttpClientConfiguration: Unsatisfied dependency expressed through constructor argument with index 0 of type [net.chrisrichardson.eventstore.EntityEventStore]: : Error creating bean with name 'entityEventStore' defined in class net.chrisrichardson.eventstore.client.config.EventStoreHttpClientConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [net.chrisrichardson.eventstore.client.HttpEntityEventStore]: Factory method 'entityEventStore' threw exception; nested exception is java.lang.IllegalArgumentException: hostname can't be null; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityEventStore' defined in class net.chrisrichardson.eventstore.client.config.EventStoreHttpClientConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [net.chrisrichardson.eventstore.client.HttpEntityEventStore]: Factory method 'entityEventStore' threw exception; nested exception is java.lang.IllegalArgumentException: hostname can't be null
    at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:464) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1119) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1014) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1120) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1044) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:533) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    ... 34 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityEventStore' defined in class net.chrisrichardson.eventstore.client.config.EventStoreHttpClientConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [net.chrisrichardson.eventstore.client.HttpEntityEventStore]: Factory method 'entityEventStore' threw exception; nested exception is java.lang.IllegalArgumentException: hostname can't be null
    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1119) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1014) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1120) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1044) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:813) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    ... 47 common frames omitted
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [net.chrisrichardson.eventstore.client.HttpEntityEventStore]: Factory method 'entityEventStore' threw exception; nested exception is java.lang.IllegalArgumentException: hostname can't be null
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    ... 60 common frames omitted
Caused by: java.lang.IllegalArgumentException: hostname can't be null
    at java.net.InetSocketAddress.checkHost(InetSocketAddress.java:149) ~[na:1.7.0_79]
    at java.net.InetSocketAddress.(InetSocketAddress.java:216) ~[na:1.7.0_79]
    at net.chrisrichardson.eventstore.client.config.EventStoreHttpClientConfiguration.entityEventStore(EventStoreHttpClientConfiguration.scala:65) ~[eventstore-http-stomp-client-0.7.jar!/:na]
    at net.chrisrichardson.eventstore.client.config.EventStoreHttpClientConfiguration$$EnhancerBySpringCGLIB$$92c83738.CGLIB$entityEventStore$1() ~[spring-core-4.1.7.RELEASE.jar!/:na]
    at net.chrisrichardson.eventstore.client.config.EventStoreHttpClientConfiguration$$EnhancerBySpringCGLIB$$92c83738$$FastClassBySpringCGLIB$$96cef477.invoke() ~[spring-core-4.1.7.RELEASE.jar!/:na]
    at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) ~[spring-core-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:309) ~[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    at net.chrisrichardson.eventstore.client.config.EventStoreHttpClientConfiguration$$EnhancerBySpringCGLIB$$92c83738.entityEventStore() ~[spring-core-4.1.7.RELEASE.jar!/:na]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_79]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_79]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_79]
    at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_79]
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    ... 61 common frames omitted
[DEBUG] [09/25/2015 12:09:33.985] [eventStore-akka.actor.default-dispatcher-2] [akka://eventStore/system/log1-Slf4jLogger] stopped
[DEBUG] [09/25/2015 12:09:33.985] [eventStore-akka.actor.default-dispatcher-3] [EventStream] all default loggers stopped
[DEBUG] [09/25/2015 12:09:34.091] [eventStore-akka.actor.default-dispatcher-2] [akka://eventStore/system/UnhandledMessageForwarder] stopped
[DEBUG] [09/25/2015 12:09:34.092] [eventStore-akka.actor.default-dispatcher-2] [akka://eventStore/system/deadLetterListener] stopped
[DEBUG] [09/25/2015 12:09:34.092] [eventStore-akka.actor.default-dispatcher-3] [akka://eventStore/system] stopping

event source configuration

Hi Chris,

I tried to run your examples as monolith and as microservices. As monolith was ok while as microservices I get the following exception:

17:49:24.980 DEBUG o.s.w.s.m.m.a.RequestMappingHandlerAdapter - Looking for controller advice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@32c68728: startup date [Fri Apr 24 17:49:19 MSK 2015]; root of context hierarchy
17:49:24.982 INFO n.c.e.common.stomp.StompFrameWriter - Got ack - unstashing
17:49:25.034 DEBUG o.s.w.s.m.m.a.ExceptionHandlerExceptionResolver - Looking for exception mappings: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@32c68728: startup date [Fri Apr 24 17:49:19 MSK 2015]; root of context hierarchy

17:49:25.046 ERROR akka.actor.OneForOneStrategy - Wanted '10' '
' but got 58 in :ITEM-A20882-59322-1429886927593-2:1
server:ActiveMQ/5.10.2
version:1.0

at net.chrisrichardson.eventstore.common.stomp.StompFrameParsers$SingleCharParser.consume(StompFrameParser.scala:225) ~[stomp-common-0.5.jar:na]

What is wrong with my configuration? I tried geteventstore and activemq.

Thank you,
Ciprian

Not able to run locally..

not able to run locally the java example.
Getting below message and application was failed to run.

i.e.j.s.EventuateSTOMPClient - Connecting...
i.e.j.s.EventuateSTOMPClient - ReConnecting...

Issues running examples in Eclipse : 2EventStoreSubscriptionManagement was in project accounts-command-side-service

Caused by: org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [net.chrisrichardson.eventstore.EventStoreSubscriptionManagement] is defined: expected single matching bean but found 2: eventStore,jdbcEventStore
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1054)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:533)
... 27 more

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.