gazbert / bxbot

A simple Bitcoin trading bot written in Java.
MIT License
825 stars 280 forks source link

debugging under eclipse (Windows Server 2012 R2) fails after importing maven project #49

Closed datasmithtech closed 7 years ago

datasmithtech commented 7 years ago

Error creating bean with name 'tradingEngine' defined in file [C:\TradingBots\bxbot\bxbot-core\target\classes\com\gazbert\bxbot\core\engine\TradingEngine.class]: Unsatisfied dependency expressed through constructor parameter 4: Error creating bean with name 'emailAlerter' defined in file [C:\TradingBots\bxbot\bxbot-core\target\classes\com\gazbert\bxbot\core\mail\EmailAlerter.class]: Bean instantiation via constructor failed;

nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.gazbert.bxbot.core.mail.EmailAlerter]: Constructor threw exception; nested exception is java.lang.IllegalStateException:

Failed to find or read [config/email-alerts.xml] config; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emailAlerter' defined in file [C:\TradingBots\bxbot\bxbot-core\target\classes\com\gazbert\bxbot\core\mail\EmailAlerter.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.gazbert.bxbot.core.mail.EmailAlerter]: Constructor threw exception; nested exception is java.lang.IllegalStateException: Failed to find or read [config/email-alerts.xml] config

gazbert commented 7 years ago

Not sure about this one. I've just spun up the bot in IntelliJ on Windows - see attached screenshot.

bxbot-windows-intellij-spring-booted

Are you starting the app from the main Boot app - BXBot.java - in Eclipse?

gazbert commented 7 years ago

Closing - can't reproduce.