Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

TaskOrderNotify on Linux server
 Post subject: TaskOrderNotify on Linux server Post rating: 0   New post Posted: Wed 19 Feb, 2014, 17:36 
User avatar

User rating: 98
Joined: Mon 23 Jul, 2012, 02:02
Posts: 656
Location: United States, Durham, NC
Standalone API linux server showing these messages.
System is failing to submit orders against demo account.
I'll check connection logic in logs, etc.

2014-02-19 16:20:47.221 ERROR TaskOrderNotify -
null: java.lang.NullPointerException
2014-02-19 16:20:47.221 ERROR TaskOrderGroupUpdate -
java.lang.NullPointerException

HyperScalper


 
 Post subject: Re: TaskOrderNotify on Linux server Post rating: 0   New post Posted: Thu 20 Feb, 2014, 15:20 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Are you able to replicate this with a trivial strategy?


 
 Post subject: Re: TaskOrderNotify on Linux server Post rating: 0   New post Posted: Fri 21 Feb, 2014, 05:30 
User avatar

User rating: 98
Joined: Mon 23 Jul, 2012, 02:02
Posts: 656
Location: United States, Durham, NC
I'm not sure. This is a complex system on
Linux running a dozen or so strategies in the
same process.

I should say that this is DEMO, and I usually don't
worry until these errors show up LIVE.

However, unlike what I said earlier, it appears
that Order Entry is proceeding normally.

So maybe this is an exception which can
simply be ignored. Snippet of my console
log, doesn't seem to affect order processing.
Sorry about the panic. This is API 2.9.4.1 so
I could probably upgrade to the latest.

2014-02-21 04:12:27.666 ERROR TaskOrderNotify -
java.lang.NullPointerException

2014-Feb-21 04:12:27 HyperBOT2_AUDJPY FILLED id: 59069087 label: HBOT2_7AUDJPY_S_4 prc: 92.134 pnlPips: -1.9

2014-02-21 04:12:27.699 ERROR TaskOrderGroupUpdate -
java.lang.NullPointerException

2014-Feb-21 04:12:27 HyperBOT2_AUDJPY CLOSED id: 59069087 label: HBOT2_7AUDJPY_S_4 prc: 92.153 pnlPips: -1.9
2014-Feb-21 04:12:27 HyperBOT2_AUDJPY Short*** Order HBOT2_7AUDJPY_S_4 Short closed with pnl: -1.9 pips LOSS
2014-Feb-21 04:12:27 HyperBOT2_AUDJPY ...AUD/JPY order loss pips: -1.9


HyperScalper


 
 Post subject: Re: TaskOrderNotify on Linux server Post rating: 0   New post Posted: Mon 03 Mar, 2014, 19:12 
User avatar

User rating: 98
Joined: Mon 23 Jul, 2012, 02:02
Posts: 656
Location: United States, Durham, NC
I have some clarity on this. The Linux standalone API servers in the same LIVE
account are receiving these TaskOrderGroupUpdate and TaskOrderNotify
exceptions when another API client in the *same* LIVE account is submitting
orders, from another geographical location.

API 2.9.5.1

2014-03-03 18:04:15.126 ERROR TaskOrderGroupUpdate -
java.lang.NullPointerException
java.lang.NullPointerException
null: java.lang.NullPointerException
2014-03-03 18:04:20.770 ERROR TaskOrderNotify -
null: java.lang.NullPointerException
2014-03-03 18:04:20.801 ERROR TaskOrderGroupUpdate -
java.lang.NullPointerException



HyperScalper


 
 Post subject: Re: TaskOrderNotify on Linux server Post rating: 0   New post Posted: Thu 06 Mar, 2014, 10:44 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Can you reproduce this with the latest JForex-API version?


 
 Post subject: Re: TaskOrderNotify on Linux server Post rating: 0   New post Posted: Sat 08 Mar, 2014, 16:14 
User avatar

User rating: 98
Joined: Mon 23 Jul, 2012, 02:02
Posts: 656
Location: United States, Durham, NC
I will upgrade the software version on the servers, and
then let you know if the problem persists.

However, I am waiting for a fix to my other issue that
IBroadcast is also not being received by the Linux servers
so am waiting for next API release.

HyperScalper


 
 Post subject: Re: TaskOrderNotify on Linux server Post rating: 0   New post Posted: Thu 03 Apr, 2014, 17:29 
User avatar

User rating: 98
Joined: Mon 23 Jul, 2012, 02:02
Posts: 656
Location: United States, Durham, NC
OK, updated servers to use API 2.9.7.1 latest at this time on
my dozen or so Linux servers.

Trade activity by another API client in the same account is causing this
process to report TaskOrderGroupUpdate errors. This process is
logged into the account but is not performing any trade activity
at this time.

Thanks for looking into this,
HyperScalper


Position 29075272 TAKE PROFIT #122349397 price changed from 1.01817 CAD to 1.01831 CAD
Position 29075272 TAKE PROFIT #122349397 price changed from 1.01817 CAD to 1.01831 CAD
Position 29075272 TAKE PROFIT #122349397 price changed from 1.01817 CAD to 1.01831 CAD
Position 29075272 TAKE PROFIT #122349397 price changed from 1.01817 CAD to 1.01831 CAD
Position 29075278 TAKE PROFIT #122349494 price changed from 1.01806 CAD to 1.0182 CAD
Position 29075278 TAKE PROFIT #122349494 price changed from 1.01806 CAD to 1.0182 CAD
Position 29075278 TAKE PROFIT #122349494 price changed from 1.01806 CAD to 1.0182 CAD
Position 29075278 TAKE PROFIT #122349494 price changed from 1.01806 CAD to 1.0182 CAD
java.lang.NullPointerException
null: java.lang.NullPointerException
2014-04-03 16:18:47.694 ERROR TaskOrderGroupUpdate -
java.lang.NullPointerException
java.lang.NullPointerException
null: java.lang.NullPointerException
2014-04-03 16:18:47.695 ERROR TaskOrderGroupUpdate -
java.lang.NullPointerException
Position 29075280 TAKE PROFIT #122349556 price changed from 1.01799 CAD to 1.01813 CAD
Position 29075280 TAKE PROFIT #122349556 price changed from 1.01799 CAD to 1.01813 CAD
Position 29075280 TAKE PROFIT #122349556 price changed from 1.01799 CAD to 1.01813 CAD
Position 29075280 TAKE PROFIT #122349556 price changed from 1.01799 CAD to 1.01813 CAD
java.lang.NullPointerException
null: java.lang.NullPointerException
2014-04-03 16:18:47.701 ERROR TaskOrderGroupUpdate -
java.lang.NullPointerException
java.lang.NullPointerException
null: java.lang.NullPointerException
2014-04-03 16:18:47.702 ERROR TaskOrderGroupUpdate -
java.lang.NullPointerException
java.lang.NullPointerException
null: java.lang.NullPointerException
2014-04-03 16:18:47.788 ERROR TaskOrderGroupUpdate -
java.lang.NullPointerException
java.lang.NullPointerException
null: java.lang.NullPointerException
2014-04-03 16:18:47.789 ERROR TaskOrderGroupUpdate -
java.lang.NullPointerException


 
 Post subject: Re: TaskOrderNotify on Linux server Post rating: 0   New post Posted: Thu 03 Apr, 2014, 17:41 
User avatar

User rating: 98
Joined: Mon 23 Jul, 2012, 02:02
Posts: 656
Location: United States, Durham, NC
Here's a bit more after another client API login closed
positions and canceled some orders.

Here we also see TaskOrderNotify. I wonder whether my
code is in error and should somehow handle an
onMessage callback correctly? Are these associated
with onMessage callback events, maybe, which I
should handle properly?

Not sure...... I'll have
to see where this originates in my code. My error
logging may not be the most helpful.......

The repeated messages are because this process is
running multiple IStrategy instances and each one of
them reports, I think this is a print by the API which
I can't influence, for example the "BID CANCELLED"
output.

HyperScalper

02.266 ERROR TaskOrderGroupUpdate -
java.lang.NullPointerException
BID CANCELLED #122350419 reason: BID CANCELED BY USER
BID CANCELLED #122350419 reason: BID CANCELED BY USER
BID CANCELLED #122350419 reason: BID CANCELED BY USER
BID CANCELLED #122350419 reason: BID CANCELED BY USER
java.lang.NullPointerException
null: java.lang.NullPointerException
2014-04-03 16:35:03.870 ERROR TaskOrderNotify -
java.lang.NullPointerException
java.lang.NullPointerException
null: java.lang.NullPointerException
2014-04-03 16:35:03.870 ERROR TaskOrderNotify -
java.lang.NullPointerException
java.lang.NullPointerException
null: java.lang.NullPointerException
2014-04-03 16:35:03.963 ERROR TaskOrderGroupUpdate -
java.lang.NullPointerException
java.lang.NullPointerException
null: java.lang.NullPointerException
2014-04-03 16:35:03.963 ERROR TaskOrderGroupUpdate -
java.lang.NullPointerException


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com