Open T-Spoon opened 6 years ago
Any update on this @T-Spoon. any workaround?
Do you have a stack trace and an another example of the data that causes the crash?
As @T-Spoon mentioned, " When retrieving a trade history from CexIO, if the trade history contains any cancelled orders ("status": "c"), it will fail to parse the response." or when you pass only currencyPair.
Jun 29, 2018 12:26:07 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception si.mazi.rescu.HttpStatusIOException: (was java.lang.NullPointerException) (through reference chain: java.util.ArrayList[0]) at si.mazi.rescu.ResponseReader.read(ResponseReader.java:104) at si.mazi.rescu.RestInvocationHandler.mapInvocationResult(RestInvocationHandler.java:175) at si.mazi.rescu.RestInvocationHandler.receiveAndMap(RestInvocationHandler.java:163) at si.mazi.rescu.RestInvocationHandler.invoke(RestInvocationHandler.java:119) at com.sun.proxy.$Proxy126.archivedOrders(Unknown Source) at org.knowm.xchange.cexio.service.CexIOTradeServiceRaw.archivedOrders(CexIOTradeServiceRaw.java:182)
maybe it's an issue with a CexIOArchivedOrder.Deserializer method.
Thanks
14:38:32.633 [default] [main] DEBUG si.mazi.rescu.ResponseReader - Parsing response as java.util.List
here is the Logs from CexIOTradeServiceRaw.archivedOrders(...) not able to parse when "status": "c".
Any what version xchange are you using?
@npomfret I am using V 4.3.7.
When retrieving an trade history from CexIO, if the trade history contains any cancelled orders (
"status": "c"
), it will fail to parse the response.The json response for a cancelled order is:
Relevant code is here: https://github.com/timmolter/XChange/blob/9235d1d743aaef8202ad5a2f4d70714b5baf9439/xchange-cexio/src/main/java/org/knowm/xchange/cexio/dto/trade/CexIOArchivedOrder.java#L195
filled.get(counter)
andfilled.get(base)
are nullable here, because cancelled orders won't have been filled.