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.

java.lang.NullPointerException @ jforex.converted.XXXXX
 Post subject: java.lang.NullPointerException @ jforex.converted.XXXXX Post rating: 0   New post Posted: Thu 13 May, 2010, 12:57 

User rating: -
Hi,
I use the MQL2LFOREX Converter to convert my MQL EA to java ,and run on the JForex platform for several days,but today it's stop working ,the error message is :java.lang.NullPointerException @ jforex.converted.XXXX.start(XXXX.java:324), I don't konow what's meaning of this error code, if anyone konw the reason please tell me ,thanks very much.

I check the code just now and i found that the error is appera when the strategies try to delete a buylimit order . Here is the code:

if (i_ticket_buy == 0 && i_ticket_buylimit != 0)
{
OrderDelete(i_ticket_buylimit);
}
I print the the i_ticket_buylimit and it's 7953952.
please help me,thanks! :(


 
 Post subject: Re: java.lang.NullPointerException @ jforex.converted.XXXXX Post rating: 0   New post Posted: Thu 13 May, 2010, 14:41 

User rating: 1
Joined: Fri 26 Mar, 2010, 19:19
Posts: 116
Location: Canada
NullPointerException is when the code reference an object that doesn't exist.

Looks like something is wrong with OrderDelete().


 

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