Yes, as stated above, the error only happens when both IClient and ITesterClient are logged in with the same account. Disable the ITesterClient login in the above example and getOrders() finds the orders as expected.
Here's the console output when both IClient and ITesterClient login:
2016-11-02 13:48:31.145 INFO Main - Connecting... 2016-11-02 13:48:31.899 INFO AuthorizationClient - Auth step 1 request [DD0B0A5EBBC33A462FAF1204CEB385ED0ABF0758] 2016-11-02 13:48:32.940 INFO AuthorizationClient - Auth step 1 response [ServerResponseObject [passwordServerResponse=Step1ServerResponse [serverPublicValueB=56e1ac9cf4ffe1f4d13dc62170755215e7a52e8ff567d908dbb9b4a11d9886fb9d03e0b7b07f7d6ed61d6c4e4ba94d9c0cefb6ec97bc5f64999247ef8365c3e6fe4e61d279ecf10a1242c857a4be2d0b80647dd5ded20ad8b61cabf4f1d743910ccccf1879c6a5e77a370a8cb0ca79660b51854f91c6c76be61a20811f0aee1a90bb3d978430770926515fe341f69dfcc45748c661fcbbbfd2313443afe910bf4cefb8747baf4e2433541416246c4338d7cf77b94155e428c07feb194c3d7512922038bde40d5626a01a0e36991b2f80fba63c057020a16cd7de0bbc57cb3816b3b9eb615b91f1daeb11f36591f1620adbc377b8168a862944862f0edd486780, saltS=7725921e34026b76f1b2229e8260b7be, safePrimeN=ac6bdb41324a9a9bf166de5e1389582faf72b6651987ee07fc3192943db56050a37329cbb4a099ed8193e0757767a13dd52312ab4b03310dcd7f48a9da04fd50e8083969edb767b0cf6095179a163ab3661a05fbd5faaae82918a9962f0b93b855f97993ec975eeaa80d740adbf4ff747359d041d5c33ea71d281e446b14773bca97b43a23fb801676bd207a436c6481f1d2b9078717461a5b9d32e688f87748544523b524b0d57d5ea77a2775d2ecfa032cfbdbf52fb3786160279004e57ae6af874e7303ce53299ccc041c7bc308d82a5698f3a8d0c38271ae35f8e9dbfbb694b5c803d89f7ae435de236d525f54759b65e372fcd68ef20fa7111f9e4aff73, correspondingGeneratorG=2, hashAlgorithmH=SHA-256, srpProtocolVersion=1], ]] 2016-11-02 13:48:33.003 INFO AuthorizationClient - Auth step 2 request A [6973623416694642938796826188792424607772727493752937391927405835452005733044794002369027190151231780541401765017167900142893414179838576512668047951371303682939019117746190289836040986357508655132410786090490204458595543879318761306389078792297995952764148501380324337966537612289926299627065227947082619384070423997421862590394400093891775431579392681648884760373813815628924089011434408264458803833403901776373611266252227578288062793742938365717131426947638936807399036370981385597590897506914206867107830696185084168054425096251454032151248162034204045665745476795458071183251833391232340560057226869926362437799], M1 [92130464845898266554210113148493347574692638163412206451601248382751679906981] 2016-11-02 13:48:33.699 INFO AuthorizationClient - Auth step 2 response [ServerResponseObject [passwordServerResponse=Step2ServerResponse [serverEvidenceMessageM2=e0fb3123bf8565ba673d6a7a6f782f3f6c8421df6bb5b11c4380cee103814a66, srpProtocolVersion=1], ]] 2016-11-02 13:48:33.700 INFO AuthorizationClient - Auth step 3 request 2016-11-02 13:48:34.322 INFO AuthorizationClient - Auth step 3 response [ServerResponseObject [passwordServerResponse=Step3ServerResponse [serverResponse={"occasus":"rO0ABXNyABRqYXZhLnV0aWwuUHJvcGVydGllczkS0HpwNj6YAgABTAAIZGVmYXVsdHN0ABZMamF2\r\nYS91dGlsL1Byb3BlcnRpZX...","authApiURLs":["d-ja-gva-101-135-154.dukascopy.com:10443","d-ja-usa-e-97-4-b.dukascopy.com:10443","d-ja-sgn-04-b.dukascopy.com:10443","d-ja-jpn-04-a.dukascopy.com:10443","d-ja-hk-04.dukascopy.com:10443","d-ja-msk-10.dukascopy.com:10443"],"srp_versio":"1"}], responseHeaderFields={Transfer-Encoding=[chunked], null=[HTTP/1.1 200], CF-RAY=[2fb7b3459f7f2798-FRA], Server=[cloudflare-nginx], Connection=[keep-alive], Client-Country=[Germany], Pragma=[no-cache], Last-Modified=[Wed, 02 Nov 2016 12:48:21 GMT], Date=[Wed, 02 Nov 2016 12:48:21 GMT], Cache-Control=[no-cache, must-revalidate, no-store, max-age=0], Access-Control-Allow-Credentials=[true], Client-IP=[94.125.75.209], Vary=[Accept-Encoding], Set-Cookie=[__cfduid=d7f0ba7b290b3744efce23ed92a9ce7871478090901; expires=Thu, 02-Nov-17 12:48:21 GMT; path=/; domain=.dukascopy.com; HttpOnly], Expires=[Thu, 01 Jan 1970 00:00:00 GMT], Content-Type=[text/plain;charset=UTF-8]}]] 2016-11-02 13:48:34.399 INFO AuthorizationClient - Selecting the best server... 2016-11-02 13:48:35.401 INFO ClientProtocolHandler - TcpNoDelay=false jmx:type=TransportClient,name=DDS2 Standalone Transport Client 2016-11-02 13:48:35.880 WARN WLabelData - White Label Image is not received 2016-11-02 13:48:35.961 INFO ProtocolVersionClientNegotiatorFilter - Server: DDS2 Standalone Transport Client responded with version: 4 2016-11-02 13:48:35.964 INFO ClientConnector - Primary connect successfull, primarySession is [MinaIoSessionWrapper [session=(SOCKET, R: d-ja-gva-101-135-154.dukascopy.com/194.8.15.154:10443, L: /192.168.1.103:58954, S: d-ja-gva-101-135-154.dukascopy.com/194.8.15.154:10443)]], address is [d-ja-gva-101-135-154.dukascopy.com/194.8.15.154:10443] 2016-11-02 13:48:36.055 INFO GreedClientAuthorizationProvider - !!!:Thread[(DDS2 Standalone Transport Client) ClientConnector,5,main] 2016-11-02 13:48:36.057 INFO ClientConnector - Child socket connection could be accepted now by server [<ChildSocketAuthAcceptorMessage(parentSessionId=80d1a23a-4fca-4a57-88a9-5e47a04b1d9f,timestamp=1478090903650)>], transport client [DDS2 Standalone Transport Client, d-ja-gva-101-135-154.dukascopy.com/194.8.15.154:10443] 2016-11-02 13:48:36.061 ERROR LiveCurrencyMarketProcessingThread - Cannot create the liveCurrencyMarketWatcherThread, the properties is null. 2016-11-02 13:48:36.061 INFO LiveCurrencyMarketManager - LiveCurrencyMarketManager started. 2016-11-02 13:48:36.336 INFO DCClientImpl - Connected 2016-11-02 13:48:36.906 INFO Main - Subscribing instruments... 2016-11-02 13:48:36.907 INFO Main - Connecting TesterClient... 2016-11-02 13:48:36.953 INFO AuthorizationClient - Auth step 1 request [DD0B0A5EBBC33A462FAF1204CEB385ED0ABF0758] 2016-11-02 13:48:37.276 INFO ProtocolVersionClientNegotiatorFilter - Server: DDS2 Standalone Transport Client responded with version: 4 2016-11-02 13:48:37.276 INFO ClientConnector - Child session opened for [d-ja-gva-101-135-154.dukascopy.com/194.8.15.154:10443], sending [<ChildSocketAuthAcceptorMessage(parentSessionId=80d1a23a-4fca-4a57-88a9-5e47a04b1d9f,timestamp=1478090903650)>], successful consequent attempt [1] 2016-11-02 13:48:37.620 INFO AuthorizationClient - Auth step 1 response [ServerResponseObject [passwordServerResponse=Step1ServerResponse [serverPublicValueB=928e56c10d92d6af183a219126cc01c1e4b1bbe1a4f9c377c4dc2eec7b2e810b51402020c042949ed1fbe15bdd2325bf99cbb6d5478c9547bb7bf4aec0686518ec66875f49b0101bff755f313c01edcb1bb0dcd738d4c58a0ec4a2d5edc8d6a365600d6d8dff8cd5349c20edba0fadc69a13b4a3195cb15874f8dc2a76dd50fd67170f069ae2eb5472e12aef8a8037e0144969728a623cd765742fe1b377ddd46add55bec192ce55582497d8be400ccf8b15b12621fbf0a6173ae98cdea27c97187f058529304eac730ab2417f6520da2e843cb8497bcdde936f4bdb5220af2ae422d3e6e6390e509026c5e008595ec624c8bed0d173e8dc310ddab1b08c9715, saltS=38959bdfb8913411bc807b9f047bf776, safePrimeN=ac6bdb41324a9a9bf166de5e1389582faf72b6651987ee07fc3192943db56050a37329cbb4a099ed8193e0757767a13dd52312ab4b03310dcd7f48a9da04fd50e8083969edb767b0cf6095179a163ab3661a05fbd5faaae82918a9962f0b93b855f97993ec975eeaa80d740adbf4ff747359d041d5c33ea71d281e446b14773bca97b43a23fb801676bd207a436c6481f1d2b9078717461a5b9d32e688f87748544523b524b0d57d5ea77a2775d2ecfa032cfbdbf52fb3786160279004e57ae6af874e7303ce53299ccc041c7bc308d82a5698f3a8d0c38271ae35f8e9dbfbb694b5c803d89f7ae435de236d525f54759b65e372fcd68ef20fa7111f9e4aff73, correspondingGeneratorG=2, hashAlgorithmH=SHA-256, srpProtocolVersion=1], ]] 2016-11-02 13:48:37.679 INFO AuthorizationClient - Auth step 2 request A [8240999577335430896063985874935441719756148871761848268754728323014106588355280062308594258075579463755216104032739164991845052325625576254515305260828914124632464683162657366728881719386452007166261124112485200366963399074277393012252158481065182965327856208648907352866143721185849685280680299469786068256205660474492727486680902832411586720070152265277380278965873339664540515213658354712820855054870571559349996314948077820282488519007787737184512731322304762354849497723538944608831050033999498195402732366528319910681161467003293032692661074996717460725310024049807108513731637457322209013097274995461932946017], M1 [22324837966068206819485320051747208985214000422999083090061700081885758658001] 2016-11-02 13:48:38.352 INFO AuthorizationClient - Auth step 2 response [ServerResponseObject [passwordServerResponse=Step2ServerResponse [serverEvidenceMessageM2=ac47f5eab11c666c55a39f28241e5f450cb5311a5910e5a1e622d7ad92ebd3e8, srpProtocolVersion=1], ]] 2016-11-02 13:48:38.353 INFO AuthorizationClient - Auth step 3 request 2016-11-02 13:48:38.947 INFO AuthorizationClient - Auth step 3 response [ServerResponseObject [passwordServerResponse=Step3ServerResponse [serverResponse={"occasus":"rO0ABXNyABRqYXZhLnV0aWwuUHJvcGVydGllczkS0HpwNj6YAgABTAAIZGVmYXVsdHN0ABZMamF2\r\nYS91dGlsL1Byb3BlcnRpZX...","authApiURLs":["d-ja-gva-101-135-154.dukascopy.com:10443","d-ja-usa-e-97-4-b.dukascopy.com:10443","d-ja-sgn-04-a.dukascopy.com:10443","d-ja-jpn-04-a.dukascopy.com:10443","d-ja-hk-04.dukascopy.com:10443","d-ja-msk-10.dukascopy.com:10443"],"srp_versio":"1"}], responseHeaderFields={Transfer-Encoding=[chunked], null=[HTTP/1.1 200], CF-RAY=[2fb7b362ad292690-FRA], Server=[cloudflare-nginx], Connection=[keep-alive], Client-Country=[Germany], Pragma=[no-cache], Last-Modified=[Wed, 02 Nov 2016 12:48:26 GMT], Date=[Wed, 02 Nov 2016 12:48:26 GMT], Cache-Control=[no-cache, must-revalidate, no-store, max-age=0], Access-Control-Allow-Credentials=[true], Client-IP=[94.125.75.209], Vary=[Accept-Encoding], Set-Cookie=[__cfduid=d483476bfac23da57f8bdec71bda2417b1478090906; expires=Thu, 02-Nov-17 12:48:26 GMT; path=/; domain=.dukascopy.com; HttpOnly], Expires=[Thu, 01 Jan 1970 00:00:00 GMT], Content-Type=[text/plain;charset=UTF-8]}]] 2016-11-02 13:48:38.960 INFO AuthorizationClient - Selecting the best server... 2016-11-02 13:48:39.335 INFO ClientProtocolHandler - TcpNoDelay=false jmx:type=TransportClient,name=79328e92-523e-403f-8939-20f68ce2aa30 2016-11-02 13:48:39.662 INFO ProtocolVersionClientNegotiatorFilter - Server: null responded with version: 4 2016-11-02 13:48:39.662 INFO ClientConnector - Primary connect successfull, primarySession is [MinaIoSessionWrapper [session=(SOCKET, R: d-ja-gva-101-135-154.dukascopy.com/194.8.15.154:10443, L: /192.168.1.103:58972, S: d-ja-gva-101-135-154.dukascopy.com/194.8.15.154:10443)]], address is [d-ja-gva-101-135-154.dukascopy.com/194.8.15.154:10443] 2016-11-02 13:48:39.733 INFO GreedClientAuthorizationProvider - !!!:Thread[ClientConnector,5,main] 2016-11-02 13:48:39.734 INFO ClientConnector - Child socket connection could be accepted now by server [<ChildSocketAuthAcceptorMessage(parentSessionId=4cf3013f-e1de-410a-b891-cbca8817c7b3,timestamp=1478090907330)>], transport client [null, d-ja-gva-101-135-154.dukascopy.com/194.8.15.154:10443] 2016-11-02 13:48:39.761 WARN WLabelData - White Label Image is not received 2016-11-02 13:48:39.762 INFO Main - Starting strategy Strategy "ImportOrderCheck" Strategy ID: C077E435999D665A46A86DAAE46C4E97 is started at 2016-11-02 12:48:27.455 GMT on the local computer with no parameters Number of found IClient orders: 0 2016-11-02 13:48:39.842 INFO DCClientImpl - Strategy started: 105 2016-11-02 13:48:40.984 INFO ProtocolVersionClientNegotiatorFilter - Server: null responded with version: 4 2016-11-02 13:48:40.985 INFO ClientConnector - Child session opened for [d-ja-gva-101-135-154.dukascopy.com/194.8.15.154:10443], sending [<ChildSocketAuthAcceptorMessage(parentSessionId=4cf3013f-e1de-410a-b891-cbca8817c7b3,timestamp=1478090907330)>], successful consequent attempt [1]
You see: Number of found IClient orders: 0
And here's the log with just IClient login:
2016-11-02 13:47:34.505 INFO Main - Connecting... 2016-11-02 13:47:34.658 INFO AuthorizationClient - Auth step 1 request [DD0B0A5EBBC33A462FAF1204CEB385ED0ABF0758] 2016-11-02 13:47:35.902 INFO AuthorizationClient - Auth step 1 response [ServerResponseObject [passwordServerResponse=Step1ServerResponse [serverPublicValueB=11e9c249c72a68b561fc71cb2c520c78deeb96e535c21730879f5d8b982be8c5b0d5a8bad4ec5a5d625be9e2aa7bf67d5af513513db53acf2490e0b8eeb736cb16103087dc90172c77bc535b5aaf4948b989997cca15bb576c6560cab9f40aa604020e061265be41c46956054f1ebb2e91e6ee4651a660fcaed8be3c4aa3a55146ef85000ac11da1aada41bc88b7cd84ecf39477441974e0bbb65bf1ea7c314a7f202b5bf84214c5fa0c384a5cdd1822a7938707a507adee8ff5fda48837ebb98a8c26d8ac9304bed4ed491ba7e6480f8009db706b067415924672293ceb66309d050ed726137fa4e26ac90a17923c7f4dff41c750846bc607c4ed3314950bbf, saltS=4dcae3fff6d84a3f3a2894e0838c79fb, safePrimeN=ac6bdb41324a9a9bf166de5e1389582faf72b6651987ee07fc3192943db56050a37329cbb4a099ed8193e0757767a13dd52312ab4b03310dcd7f48a9da04fd50e8083969edb767b0cf6095179a163ab3661a05fbd5faaae82918a9962f0b93b855f97993ec975eeaa80d740adbf4ff747359d041d5c33ea71d281e446b14773bca97b43a23fb801676bd207a436c6481f1d2b9078717461a5b9d32e688f87748544523b524b0d57d5ea77a2775d2ecfa032cfbdbf52fb3786160279004e57ae6af874e7303ce53299ccc041c7bc308d82a5698f3a8d0c38271ae35f8e9dbfbb694b5c803d89f7ae435de236d525f54759b65e372fcd68ef20fa7111f9e4aff73, correspondingGeneratorG=2, hashAlgorithmH=SHA-256, srpProtocolVersion=1], ]] 2016-11-02 13:47:35.999 INFO AuthorizationClient - Auth step 2 request A [16513176930083064402358184405307351013556637527716772795043760872920579914662429445074554315949979625858173848651005920515298072540482319180618647029015759009662172529066560327524187156244295250339607736306103058898345477110690005519658792893829475832561452396653277191630212233281976840349981629860466114135723038061075125012461808492823739392333307223874823503357697466957294418049282197911057013660242210856640757713808767963790894002364639227929514584057924152141100183433444672895134250593835308160223819152744960376148076904997374561115833193244323571432069005996945868387628492178218984845391673675120566289058], M1 [64152563664719254106827673582326489899630951230619475219600858948127238981319] 2016-11-02 13:47:36.673 INFO AuthorizationClient - Auth step 2 response [ServerResponseObject [passwordServerResponse=Step2ServerResponse [serverEvidenceMessageM2=bf5a492620caab0461a7e68d58a75bafc36e8d10f9298f6f9f8a923dbd3a2a78, srpProtocolVersion=1], ]] 2016-11-02 13:47:36.674 INFO AuthorizationClient - Auth step 3 request 2016-11-02 13:47:37.447 INFO AuthorizationClient - Auth step 3 response [ServerResponseObject [passwordServerResponse=Step3ServerResponse [serverResponse={"occasus":"rO0ABXNyABRqYXZhLnV0aWwuUHJvcGVydGllczkS0HpwNj6YAgABTAAIZGVmYXVsdHN0ABZMamF2\r\nYS91dGlsL1Byb3BlcnRpZX...","authApiURLs":["d-ja-gva-91-191.dukascopy.com:10443","d-ja-usa-e-97-4-b.dukascopy.com:10443","d-ja-sgn-04-a.dukascopy.com:10443","d-ja-jpn-04-a.dukascopy.com:10443","d-ja-hk-04.dukascopy.com:10443","d-ja-msk-10.dukascopy.com:10443"],"srp_versio":"1"}], responseHeaderFields={Transfer-Encoding=[chunked], null=[HTTP/1.1 200], CF-RAY=[2fb7b1e12df7642d-FRA], Server=[cloudflare-nginx], Connection=[keep-alive], Client-Country=[Germany], Pragma=[no-cache], Last-Modified=[Wed, 02 Nov 2016 12:47:24 GMT], Date=[Wed, 02 Nov 2016 12:47:24 GMT], Cache-Control=[no-cache, must-revalidate, no-store, max-age=0], Access-Control-Allow-Credentials=[true], Client-IP=[94.125.75.209], Vary=[Accept-Encoding], Set-Cookie=[__cfduid=d38c6cccd1ae62f2321aa722f27e417991478090844; expires=Thu, 02-Nov-17 12:47:24 GMT; path=/; domain=.dukascopy.com; HttpOnly], Expires=[Thu, 01 Jan 1970 00:00:00 GMT], Content-Type=[text/plain;charset=UTF-8]}]] 2016-11-02 13:47:37.571 INFO AuthorizationClient - Selecting the best server... 2016-11-02 13:47:38.631 INFO ClientProtocolHandler - TcpNoDelay=false jmx:type=TransportClient,name=DDS2 Standalone Transport Client 2016-11-02 13:47:39.773 WARN WLabelData - White Label Image is not received 2016-11-02 13:47:40.181 INFO ProtocolVersionClientNegotiatorFilter - Server: DDS2 Standalone Transport Client responded with version: 4 2016-11-02 13:47:40.184 INFO ClientConnector - Primary connect successfull, primarySession is [MinaIoSessionWrapper [session=(SOCKET, R: d-ja-gva-91-191.dukascopy.com/194.8.15.191:10443, L: /192.168.1.103:58932, S: d-ja-gva-91-191.dukascopy.com/194.8.15.191:10443)]], address is [d-ja-gva-91-191.dukascopy.com/194.8.15.191:10443] 2016-11-02 13:47:40.291 INFO GreedClientAuthorizationProvider - !!!:Thread[(DDS2 Standalone Transport Client) ClientConnector,5,main] 2016-11-02 13:47:40.293 INFO ClientConnector - Child socket connection could be accepted now by server [<ChildSocketAuthAcceptorMessage(parentSessionId=9cc23f72-082b-4890-804a-c913734e23b3,timestamp=1478090847887)>], transport client [DDS2 Standalone Transport Client, d-ja-gva-91-191.dukascopy.com/194.8.15.191:10443] 2016-11-02 13:47:40.295 ERROR LiveCurrencyMarketProcessingThread - Cannot create the liveCurrencyMarketWatcherThread, the properties is null. 2016-11-02 13:47:40.296 INFO LiveCurrencyMarketManager - LiveCurrencyMarketManager started. 2016-11-02 13:47:40.901 INFO DCClientImpl - Connected 2016-11-02 13:47:41.772 INFO ProtocolVersionClientNegotiatorFilter - Server: DDS2 Standalone Transport Client responded with version: 4 2016-11-02 13:47:41.772 INFO ClientConnector - Child session opened for [d-ja-gva-91-191.dukascopy.com/194.8.15.191:10443], sending [<ChildSocketAuthAcceptorMessage(parentSessionId=9cc23f72-082b-4890-804a-c913734e23b3,timestamp=1478090847887)>], successful consequent attempt [1] 2016-11-02 13:47:41.774 INFO Main - Subscribing instruments... 2016-11-02 13:47:41.775 INFO Main - Starting strategy Strategy "ImportOrderCheck" Strategy ID: C077E435999D665A46A86DAAE46C4E97 is started at 2016-11-02 12:47:31.325 GMT on the local computer with no parameters Number of found IClient orders: 1 2016-11-02 13:47:43.830 INFO DCClientImpl - Strategy started: 67
You see: Number of found IClient orders: 1
There's just one filled order in the JForexClient. Please fix this.
|