Closed clearraining closed 9 years ago
What's the value of the OS environment variable EVENT_STORE_STOMP_SERVER_PORT
If that is not a value that can be converted to an int then I wonder whether it could cause this error.
In my os environment don't have the EVENT_STORE_STOMP_SERVER_PORT variable, and i set the value as 8087, another problem:
accountscommandside_1 | at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)
accountscommandside_1 | ... 60 more
accountscommandside_1 | [DEBUG] [09/12/2015 02:13:10.946] [eventStore-akka.actor.default-dispatcher-4] [akka://eventStore/system/log1-Slf4jLogger] stopped
accountscommandside_1 | [DEBUG] [09/12/2015 02:13:10.947] [eventStore-akka.actor.default-dispatcher-5] [EventStream] all default loggers stopped
javaspring_transactionscommandside_1 exited with code 1
Gracefully stopping... (press Ctrl+C again to force)
Stopping javaspring_accountsqueryside_1...
Stopping javaspring_mongodb_1...
i don't know what the exact problem?
If you look earlier in the log you will probably see
transactionscommandside_1 | Caused by: java.lang.NullPointerException
transactionscommandside_1 | at net.chrisrichardson.eventstore.client.HttpEntityEventStore.<init>(HttpEntityEventS
That's because there are several environment variables that need to be set. As described here you need to get credentials for the event store server in order to run the dockerized version of the application.
Sorry about this.
I will work on improving both the documentation and error messages.
Igor,
The docker-compose.yml passes environment variables from the host OS to the containers. If they are not set in the host then they are not set in the containers. As described here - http://eventuate.io/docs/java/spring-configuration.html
I hope this helps.
Chris
On Mon, Feb 15, 2016 at 4:49 AM, Igor Petrov notifications@github.com wrote:
Hey folks.
Can you please explain why does dockerized version of application fails if there is no OS variable explicitly set? I mean I have the same issue. My app loads some ports and flags from yaml and the host OS resolves everything while dockerized says that it can't find a converter.
Kind regards, Igor
— Reply to this email directly or view it on GitHub https://github.com/cer/event-sourcing-examples/issues/5#issuecomment-184192749 .
Microservices application platform http://eventuate.io
Good day, Chris.
Thank you very much for the response. Actually I found the same myself that's why I've deleted the message (and also a bug inside my app :) ). Thank you again :+1:
Regards, Igor
Igor,
That would explain my your email wasn't in the github issue. :-) Glad the problem is resolved. Please don't hesitate to ping me if you have more questions.
Chris
On Mon, Feb 15, 2016 at 7:05 AM, Igor Petrov notifications@github.com wrote:
Good day, Chris.
Thank you very much for the response. Actually I found the same myself that's why I've deleted the message (and also a bug inside my app :) ). Thank you again [image: :+1:]
Regards, Igor
— Reply to this email directly or view it on GitHub https://github.com/cer/event-sourcing-examples/issues/5#issuecomment-184246375 .
Microservices application platform http://eventuate.io
when i use
compile is successed.
but when copy docker-compose.yml to file java-spring and use
is fail .
thanks! someone help.