AidoATP crashed using version with XChange 1.7.0 on MTGoX. Win 7-64bit. Java 1.7
2013-05-31 10:15:13,531 ←[1;31m:←[0;39m ERROR: Caught unexpected exception, shutting down MtGox trend following trading agent now!
. Details are listed below.
java.lang.RuntimeException: Problem getting JSON object
at si.mazi.rescu.JSONUtils.getJsonObject(JSONUtils.java:68)
at si.mazi.rescu.HttpTemplate.executeRequest(HttpTemplate.java:118)
at si.mazi.rescu.RestInvocationHandler.invokeHttp(RestInvocationHandler.java:53)
at si.mazi.rescu.RestInvocationHandler.invoke(RestInvocationHandler.java:48)
at com.sun.proxy.$Proxy6.getAccountInfo(Unknown Source)
at com.xeiam.xchange.mtgox.v2.service.polling.MtGoxPollingAccountService.getAccountInfo(MtGoxPollingAccountService.java:78
)
at org.aido.atp.AccountManager.refreshAccounts(AccountManager.java:121)
at org.aido.atp.AccountManager.getBalance(AccountManager.java:105)
at org.aido.atp.TrendTradingAgent.evalAsk(TrendTradingAgent.java:394)
at org.aido.atp.TrendTradingAgent.run(TrendTradingAgent.java:344)
at java.lang.Thread.run(Unknown Source)
Caused by: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, St
ring, array, object, 'true', 'false' or 'null')
at [Source: java.io.StringReader@574979a9; line: 1, column: 2]
at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1378)
at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:599)
at com.fasterxml.jackson.core.base.ParserMinimalBase._reportUnexpectedChar(ParserMinimalBase.java:520)
at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._handleUnexpectedValue(ReaderBasedJsonParser.java:1387)
at com.fasterxml.jackson.core.json.ReaderBasedJsonParser.nextToken(ReaderBasedJsonParser.java:678)
at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:2834)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:2781)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:1942)
at si.mazi.rescu.JSONUtils.getJsonObject(JSONUtils.java:64)
... 10 more
2013-05-31 10:15:30,675 ←[1;31m:←[0;39m Error unmarshalling from json:
502 Bad Gateway
502 Bad Gateway
cloudflare-nginx
2013-05-31 10:15:30,678 ←[1;31m:←[0;39m ERROR: Caught unexpected MtGox exception, ticker manager shutting down now!. Details are l
isted below.
java.lang.RuntimeException: Problem getting JSON object
at si.mazi.rescu.JSONUtils.getJsonObject(JSONUtils.java:68)
at si.mazi.rescu.HttpTemplate.executeRequest(HttpTemplate.java:118)
at si.mazi.rescu.RestInvocationHandler.invokeHttp(RestInvocationHandler.java:53)
at si.mazi.rescu.RestInvocationHandler.invoke(RestInvocationHandler.java:48)
at com.sun.proxy.$Proxy6.getTicker(Unknown Source)
at com.xeiam.xchange.mtgox.v2.service.polling.MtGoxPollingMarketDataService.getTicker(MtGoxPollingMarketDataService.java:7
7)
at org.aido.atp.PollingTickerManager.getTick(PollingTickerManager.java:56)
at org.aido.atp.TickerManager.run(TickerManager.java:91)
at java.lang.Thread.run(Unknown Source)
Caused by: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, St
ring, array, object, 'true', 'false' or 'null')
at [Source: java.io.StringReader@5ba9bb34; line: 1, column: 2]
at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1378)
at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:599)
at com.fasterxml.jackson.core.base.ParserMinimalBase._reportUnexpectedChar(ParserMinimalBase.java:520)
at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._handleUnexpectedValue(ReaderBasedJsonParser.java:1387)
at com.fasterxml.jackson.core.json.ReaderBasedJsonParser.nextToken(ReaderBasedJsonParser.java:678)
at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:2834)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:2781)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:1942)
at si.mazi.rescu.JSONUtils.getJsonObject(JSONUtils.java:64)
... 8 more
It Looks like my connection hiccupped and ATP went down. Either that or GoX had an issue.
Second problem is more a nuisance request. Errors are handled but I wonder why it can't create the file in question or why I can't create the file.
C:\Downloads\Bitcoin\BitcoinBot\AidoATP-master\bin>java -jar aidoatp.jar --simulation-mode=true
10:52:02,383 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
10:52:02,384 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
10:52:02,384 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/C:/Downloads/Bit
coin/BitcoinBot/AidoATP-master/bin/aidoatp.jar!/logback.xml]
10:52:02,462 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@203f97d7 - URL [jar:file:/C:/Downloads/Bitcoin/Bitcoin
Bot/AidoATP-master/bin/aidoatp.jar!/logback.xml] is not of type file
10:52:02,729 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
10:52:02,776 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.cor
e.ConsoleAppender]
10:52:02,822 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
10:52:02,990 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.en
coder.PatternLayoutEncoder] for [encoder] property
10:52:03,298 |-INFO in ch.qos.logback.core.ConsoleAppender[STDOUT] - Enabling JANSI WindowsAnsiOutputStream for the console.
10:52:03,302 |-WARN in ch.qos.logback.core.ConsoleAppender[STDOUT] - Failed to create WindowsAnsiOutputStream. Falling back on the
default stream. ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type org.fusesource.jansi.WindowsAns
iOutputStream
at ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type org.fusesource.jansi.WindowsAnsiOutpu
tStream
at at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:73)
at at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:42)
at at ch.qos.logback.core.ConsoleAppender.getTargetStreamForWindows(ConsoleAppender.java:94)
at at ch.qos.logback.core.ConsoleAppender.start(ConsoleAppender.java:85)
at at ch.qos.logback.core.joran.action.AppenderAction.end(AppenderAction.java:96)
at at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:317)
at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:196)
at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:182)
at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:149)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:135)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:99)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:49)
at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:75)
at at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:148)
at at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85)
at at org.slf4j.impl.StaticLoggerBinder.(StaticLoggerBinder.java:55)
at at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128)
at at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:107)
at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:295)
at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:269)
at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)
at at org.aido.atp.Application.(Application.java:54)
at at org.aido.atp.Application.getInstance(Application.java:67)
at at org.aido.atp.Application.main(Application.java:75)
Caused by: java.lang.ClassNotFoundException: org.fusesource.jansi.WindowsAnsiOutputStream
at at java.net.URLClassLoader$1.run(Unknown Source)
at at java.net.URLClassLoader$1.run(Unknown Source)
at at java.security.AccessController.doPrivileged(Native Method)
at at java.net.URLClassLoader.findClass(Unknown Source)
at at java.lang.ClassLoader.loadClass(Unknown Source)
at at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at at java.lang.ClassLoader.loadClass(Unknown Source)
at at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:60)
at ... 24 common frames omitted
10:52:03,302 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.cor
e.rolling.RollingFileAppender]
10:52:03,314 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILE]
10:52:03,402 |-INFO in ch.qos.logback.core.rolling.FixedWindowRollingPolicy@14b7e998 - Will use gz compression
10:52:03,439 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.en
coder.PatternLayoutEncoder] for [encoder] property
10:52:03,447 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - Active log file name: aidoatp.log
10:52:03,448 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - File property is set to [aidoatp.log]
10:52:03,455 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.xeiam.xchange] to WARN
10:52:03,455 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [si.mazi.rescu] to WARN
10:52:03,456 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to DEBUG
10:52:03,456 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [FILE] to Logger[ROOT]
10:52:03,459 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT]
10:52:03,459 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
10:52:03,463 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@364904c8 - Registering current configuration as safe fallbac
k point
2013-05-31 10:52:03,624 ←[34m:←[0;39m Aido ATP has started successfully
2013-05-31 10:52:03,639 ←[34m:←[0;39m Entering simulation mode. Trades will not be executed.