|
NullPointerException on OnStart |
thurlow03m
|
Post subject: NullPointerException on OnStart |
Post rating: 0
|
Posted: Fri 16 Nov, 2012, 08:41
|
|
User rating: 0
Joined: Fri 16 Nov, 2012, 08:16 Posts: 1
|
Hi, friends: I am a newbie for the Jforex platform, and just learned to use some example programs from Strategy tutorial. I used Feeds.java file from Strategy Tutorial for the test. I copy all the codes from this file and makes a new strategy called " Feeds.java" . Compiling is succesful. But when I test it, it won't go through the whole procedure instead of showing the error message like this: 07:06:49 Strategy tester: java.lang.NullPointerException @ feed.Feeds.onStart(Feeds.java:109) I checked the line 109, it shows this: this.factory = openedChart.getChartObjectFactory(); It seem there is a problem for openning a chart. I always have same problem even in other file :ChartUsage.java. (Compiling is OK but Just couldn't run!). Could you please tell me how to deal with this problem ? Thanks. Thurlow
Attachments: |
Feeds.txt [13.63 KiB]
Downloaded 429 times
|
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on
this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control
on their content. Anyone accessing this webpage and downloading or otherwise making use of any document,
data or information found on this webpage shall do it on his/her own risks without any recourse against
Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from
the use and/or reliance on any document, data or information found on this webpage.
|
|
|
|
|
 |
API Support
|
Post subject: Re: NullPointerException on OnStart |
Post rating: 0
|
Posted: Fri 16 Nov, 2012, 10:18
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
This is because you have not opened the respective chart.
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|