Dukascopy
 
 
Wiki JStore Search Login

NPE preventing the strategy from running
 Post subject: NPE preventing the strategy from running Post rating: 0   New post Posted: Fri 02 Mar, 2012, 17:00 
User avatar

User rating: 1
Joined: Mon 25 Jul, 2011, 11:46
Posts: 29
Location: United Kingdom, Burnley
Hello, there looks to be an error preventing my strategy from starting this month, originating from a call to indicators.rsi(..). Local testing does not give the same error, it only seems to be a problem for the strategy contest server.


ERROR
01.03.2012 01:07:00 java.lang.NullPointerException @ jforex.RSI.onBar(RSI.java:96)
ERROR
01.03.2012 01:07:00 ... 18 more
ERROR
01.03.2012 01:07:00 at com.dukascopy.api.impl.History.getBarsSecured(History.java:485)
ERROR
01.03.2012 01:07:00 at com.dukascopy.charts.data.datacache.FeedDataProvider.loadCandlesDataSynched(FeedDataProvider.java:590)
ERROR
01.03.2012 01:07:00 at com.dukascopy.charts.data.datacache.LoadDataAction.run(LoadDataAction.java:261)
ERROR
01.03.2012 01:07:00 at com.dukascopy.charts.data.datacache.CurvesDataLoader.loadInCache(CurvesDataLoader.java:78)
ERROR
01.03.2012 01:07:00 at com.dukascopy.charts.data.datacache.CurvesDataLoader.loadInCache(CurvesDataLoader.java:247)
ERROR
01.03.2012 01:07:00 at com.dukascopy.charts.data.datacache.CurvesDataLoader.loadAndSaveIntradayData(CurvesDataLoader.java:830)
ERROR
01.03.2012 01:07:00 at com.dukascopy.charts.data.datacache.CurvesJsonProtocolHandler.loadData(CurvesJsonProtocolHandler.java:373)
ERROR
01.03.2012 01:07:00 at com.dukascopy.charts.data.datacache.CurvesJsonProtocolHandler.loadData(CurvesJsonProtocolHandler.java:723)
ERROR
01.03.2012 01:07:00 at com.dukascopy.charts.data.datacache.CurvesJsonProtocolHandler.connect(CurvesJsonProtocolHandler.java:322)
ERROR
01.03.2012 01:07:00 at com.dukascopy.charts.data.datacache.CurvesJsonProtocolHandler.fastConnect(CurvesJsonProtocolHandler.java:271)
ERROR
01.03.2012 01:07:00 Caused by: java.lang.NullPointerException
ERROR
01.03.2012 01:07:00 at java.lang.Thread.run(Thread.java:662)
ERROR
01.03.2012 01:07:00 at com.dukascopy.api.impl.execution.ScienceThreadPoolExecutor$Worker.run(ScienceThreadPoolExecutor.java:926)
ERROR
01.03.2012 01:07:00 at com.dukascopy.api.impl.execution.ScienceThreadPoolExecutor$Worker.runTask(ScienceThreadPoolExecutor.java:904)
ERROR
01.03.2012 01:07:00 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
ERROR
01.03.2012 01:07:00 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
ERROR
01.03.2012 01:07:00 at com.dukascopy.api.impl.execution.TaskOnBar.call(TaskOnBar.java:22)
ERROR
01.03.2012 01:07:00 at com.dukascopy.api.impl.execution.TaskOnBar.call(TaskOnBar.java:62)
ERROR
01.03.2012 01:07:00 at com.dukascopy.api.impl.execution.TaskOnBar.postData(TaskOnBar.java:84)
ERROR
01.03.2012 01:07:00 at jforex.RSI.onBar(RSI.java:96)
ERROR
01.03.2012 01:07:00 at com.dukascopy.api.impl.Indicators.rsi(Indicators.java:3004)
ERROR
01.03.2012 01:07:00 at com.dukascopy.api.impl.Indicators.function(Indicators.java:3950)
ERROR
01.03.2012 01:07:00 at com.dukascopy.api.impl.Indicators.calculateIndicator(Indicators.java:3965)
ERROR
01.03.2012 01:07:00 at com.dukascopy.api.impl.Indicators.calculateIndicator(Indicators.java:4044)
ERROR
01.03.2012 01:07:00 at com.dukascopy.api.impl.Indicators.getInputData(Indicators.java:4911)
ERROR
01.03.2012 01:07:00 at com.dukascopy.api.impl.History.getBars(History.java:455)
ERROR
01.03.2012 01:07:00 at java.security.AccessController.doPrivileged(Native Method)
ERROR
01.03.2012 01:07:00 at com.dukascopy.api.impl.History$10.run(History.java:455)
ERROR
01.03.2012 01:07:00 at com.dukascopy.api.impl.History$10.run(History.java:457)
ERROR
01.03.2012 01:07:00 at com.dukascopy.api.impl.History.getBarsSecured(History.java:495)
ERROR
01.03.2012 01:07:00 com.dukascopy.api.JFException: Error while loading bars
ERROR
01.03.2012 01:07:00 Error while loading bars:
ERROR
01.03.2012 01:07:00 java.lang.NullPointerException @ jforex.RSI.onBar(RSI.java:96)
INFO
01.03.2012 01:06:55 Strategy "RSI" is started at 2012-03-01 01:06:55.082 GMT on the local computer with no parameters


 
 Post subject: Re: NPE preventing the strategy from running Post rating: 0   New post Posted: Fri 02 Mar, 2012, 17:37 
User avatar

User rating: 0
Joined: Tue 14 Feb, 2012, 15:54
Posts: 10
Location: FranceFrance
It will be great if we can have news from dukascopy .
What will happen next ?
only 20 participants have running strategy right now on 180 participants .
will you restart the contest next week ?
will our strategy will works properly and when ?

thank you !!!


 
 Post subject: Re: NPE preventing the strategy from running Post rating: 0   New post Posted: Fri 02 Mar, 2012, 18:11 
User avatar

User rating: 0
Joined: Tue 31 May, 2011, 16:45
Posts: 13
Location: GermanyGermany
yes, same for me. Dukascopy, please solve the problem.
Exceptions are thrown that do not appear when running the code locally:

ERROR
02.03.2012 15:00:01 at com.dukascopy.api.impl.History.getBarsSecured(History.java:566)
ERROR
02.03.2012 15:00:01 at com.dukascopy.charts.data.datacache.FeedDataProvider.loadCandlesDataBeforeAfterSynched(FeedDataProvider.java:552)
ERROR
02.03.2012 15:00:01 at com.dukascopy.charts.data.datacache.LoadNumberOfCandlesAction.run(LoadNumberOfCandlesAction.java:318)
ERROR
02.03.2012 15:00:01 at com.dukascopy.charts.data.datacache.LoadDataAction.run(LoadDataAction.java:261)
ERROR
02.03.2012 15:00:01 at com.dukascopy.charts.data.datacache.CurvesDataLoader.loadInCache(CurvesDataLoader.java:78)
ERROR
02.03.2012 15:00:01 at com.dukascopy.charts.data.datacache.CurvesDataLoader.loadInCache(CurvesDataLoader.java:279)
ERROR
02.03.2012 15:00:01 at com.dukascopy.charts.data.datacache.CurvesDataLoader.isDataInCache(CurvesDataLoader.java:741)
ERROR
02.03.2012 15:00:01 at com.dukascopy.charts.data.datacache.CurvesJsonProtocolHandler.loadData(CurvesJsonProtocolHandler.java:373)
ERROR
02.03.2012 15:00:01 at com.dukascopy.charts.data.datacache.CurvesJsonProtocolHandler.loadData(CurvesJsonProtocolHandler.java:723)
ERROR
02.03.2012 15:00:01 at com.dukascopy.charts.data.datacache.CurvesJsonProtocolHandler.connect(CurvesJsonProtocolHandler.java:322)
ERROR
02.03.2012 15:00:01 at com.dukascopy.charts.data.datacache.CurvesJsonProtocolHandler.fastConnect(CurvesJsonProtocolHandler.java:271)
ERROR
02.03.2012 15:00:01 Caused by: java.lang.NullPointerException
ERROR
02.03.2012 15:00:01 at java.lang.Thread.run(Thread.java:662)
ERROR
02.03.2012 15:00:01 at com.dukascopy.api.impl.execution.ScienceThreadPoolExecutor$Worker.run(ScienceThreadPoolExecutor.java:926)
ERROR
02.03.2012 15:00:01 at com.dukascopy.api.impl.execution.ScienceThreadPoolExecutor$Worker.runTask(ScienceThreadPoolExecutor.java:904)
ERROR
02.03.2012 15:00:01 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
ERROR
02.03.2012 15:00:01 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
ERROR
02.03.2012 15:00:01 at com.dukascopy.api.impl.execution.TaskOnBar.call(TaskOnBar.java:22)
ERROR
02.03.2012 15:00:01 at com.dukascopy.api.impl.execution.TaskOnBar.call(TaskOnBar.java:62)
ERROR
02.03.2012 15:00:01 at com.dukascopy.api.impl.execution.TaskOnBar.postData(TaskOnBar.java:84)


 
 Post subject: Re: NPE preventing the strategy from running Post rating: 0   New post Posted: Sat 03 Mar, 2012, 04:32 
User avatar

User rating: 2
Joined: Thu 19 May, 2011, 09:37
Posts: 86
Location: India, Chennai
same for me as well


 
 Post subject: Re: NPE preventing the strategy from running Post rating: 0   New post Posted: Mon 05 Mar, 2012, 10:45 
User avatar

User rating: 1
Joined: Tue 14 Jun, 2011, 11:41
Posts: 26
Location: Lithuania, Vilnius
Same for me.


 
 Post subject: Re: NPE preventing the strategy from running Post rating: 0   New post Posted: Mon 05 Mar, 2012, 11:21 
User avatar

User rating: 1
Joined: Fri 02 Mar, 2012, 13:19
Posts: 31
Location: PolandPoland
... and me too... :(


 
 Post subject: Re: NPE preventing the strategy from running Post rating: 0   New post Posted: Mon 05 Mar, 2012, 11:33 
User avatar

User rating: 2
Joined: Thu 19 May, 2011, 09:37
Posts: 86
Location: India, Chennai
The strategy started running now. tnx Support.


 
 Post subject: Re: NPE preventing the strategy from running Post rating: 0   New post Posted: Mon 05 Mar, 2012, 14:28 

User rating: 0
Joined: Thu 17 Nov, 2011, 11:48
Posts: 19
Location: Hungary, kőröshegy
Hello Support,

same for me as well...... dear support, please help!

Thanks


 
 Post subject: Re: NPE preventing the strategy from running Post rating: 0   New post Posted: Mon 05 Mar, 2012, 17:34 

User rating: -
Hi Support
This month's competition seems to have become unfair for the majority of competitors
Like many others my strategy has not commenced yet...............
Could you assist please

Many thanks

us_copiosus


 
 Post subject: Re: NPE preventing the strategy from running Post rating: 0   New post Posted: Mon 05 Mar, 2012, 17:43 
User avatar

User rating: 0
Joined: Sat 18 Feb, 2012, 04:48
Posts: 5
Location: IndiaIndia
I am also facing the same problem

I want to get it resolved.
Is it because of the new API compatibility that Dukascopy has recently updated?
Please help us to resolve the problem...!

ERROR
02.03.2012 01:32:20 at com.dukascopy.api.impl.execution.ScienceThreadPoolExecutor$Worker.runTask(ScienceThreadPoolExecutor.java:904)
ERROR
02.03.2012 01:32:20 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
ERROR
02.03.2012 01:32:20 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
ERROR
02.03.2012 01:32:20 at com.dukascopy.api.impl.execution.AbstractPostDataTask.call(AbstractPostDataTask.java:43)
ERROR
02.03.2012 01:32:20 at com.dukascopy.api.impl.execution.TaskTick.postData(TaskTick.java:67)
ERROR
02.03.2012 01:32:20 at dukascopy.strategies.indicators.NIKUNJ_OSHO.onTick(NIKUNJ_OSHO.java:72)
ERROR
02.03.2012 01:32:20 at com.dukascopy.api.impl.Indicators.butterworthFilter(Indicators.java:520)
ERROR
02.03.2012 01:32:20 at com.dukascopy.api.impl.Indicators.calculateIndicator(Indicators.java:3965)
ERROR
02.03.2012 01:32:20 at com.dukascopy.api.impl.Indicators.calculateIndicator(Indicators.java:4044)
ERROR
02.03.2012 01:32:20 at com.dukascopy.api.impl.Indicators.getInputData(Indicators.java:4911)
ERROR
02.03.2012 01:32:20 at com.dukascopy.api.impl.History.getBars(History.java:455)
ERROR
02.03.2012 01:32:20 at java.security.AccessController.doPrivileged(Native Method)
ERROR
02.03.2012 01:32:20 at com.dukascopy.api.impl.History$10.run(History.java:455)
ERROR
02.03.2012 01:32:20 at com.dukascopy.api.impl.History$10.run(History.java:457)
ERROR
02.03.2012 01:32:20 at com.dukascopy.api.impl.History.getBarsSecured(History.java:495)
ERROR
02.03.2012 01:32:20 com.dukascopy.api.JFException: Error while loading bars
ERROR
02.03.2012 01:32:20 Error while loading bars:
ERROR
02.03.2012 01:32:20 java.lang.NullPointerException @ dukascopy.strategies.indicators.NIKUNJ_OSHO.onTick(NIKUNJ_OSHO.java:72)
ERROR
02.03.2012 01:32:19 java.lang.NullPointerException @ dukascopy.strategies.indicators.NIKUNJ_OSHO.onTick(NIKUNJ_OSHO.java:72)
ERROR
02.03.2012 01:32:19 ... 16 more
ERROR
02.03.2012 01:32:19 at com.dukascopy.api.impl.History.getBarsSecured(History.java:485)
ERROR
02.03.2012 01:32:19 at com.dukascopy.charts.data.datacache.LoadDataAction.run(LoadDataAction.java:141)
ERROR
02.03.2012 01:32:19 at com.dukascopy.charts.data.datacache.LoadCustomPeriodDataAction.run(LoadCustomPeriodDataAction.java:98)
ERROR
02.03.2012 01:32:19 at com.dukascopy.charts.data.datacache.LoadDataAction.run(LoadDataAction.java:261)
ERROR
02.03.2012 01:32:19 at com.dukascopy.charts.data.datacache.CurvesDataLoader.loadInCache(CurvesDataLoader.java:78)


 
 Post subject: Re: NPE preventing the strategy from running Post rating: 0   New post Posted: Mon 05 Mar, 2012, 20:52 
User avatar

User rating: 3
Joined: Mon 30 May, 2011, 18:51
Posts: 51
Location: Portugal, Aveiro
Hello Support,

I have same problem, my strategy pass all day in Pending State, I upload a new one now and still pending, now I have two and no one start run...

Pleas help,

Thanks

LinnuxFX


 
 Post subject: Re: NPE preventing the strategy from running Post rating: 0   New post Posted: Tue 06 Mar, 2012, 03:52 
User avatar

User rating: 2
Joined: Thu 19 May, 2011, 09:37
Posts: 86
Location: India, Chennai
It worked yesterday but again same NPE is coming in the log and the strat is not working, I can not upload new version as the remote server says you are allowed one update only but this is the first update.


 
 Post subject: Re: NPE preventing the strategy from running Post rating: 0   New post Posted: Tue 06 Mar, 2012, 06:26 

User rating: -
As of now [5:24 a.m. on 6th March] only 32 of 132 contestants have a balance other than $100,000

Please Support - can we have a statement about the problem affecting the 100 other participants!

Thank you


 
 Post subject: Re: NPE preventing the strategy from running Post rating: 0   New post Posted: Tue 06 Mar, 2012, 08:55 
User avatar

User rating: 1
Joined: Fri 02 Mar, 2012, 13:19
Posts: 31
Location: PolandPoland
very professional contest...good job support :lol: :lol: :lol:


 
 Post subject: Re: NPE preventing the strategy from running Post rating: 0   New post Posted: Tue 06 Mar, 2012, 11:51 

User rating: 0
Joined: Tue 27 Dec, 2011, 11:27
Posts: 2
Location: Hungary, Budapest
Dear Support,

it would be nice if someone finally "repairing" the strategy contest server......

My strategy is also NOT running on the contest server ....Like many of the participant!!!

p.s.: my strategy running flawlessly for several months.... only this month NOT RUNNING

Thanks


 
 Post subject: Re: NPE preventing the strategy from running Post rating: 0   New post Posted: Tue 06 Mar, 2012, 12:14 
User avatar

User rating: 8
Joined: Wed 21 Apr, 2010, 10:42
Posts: 1167
We apologize for inconveniences made in this regard. The remote server has been fixed and the strategies are running with exceptions.

Please send an email if you're still experiencing any issues.


 
 Post subject: Re: NPE preventing the strategy from running Post rating: 0   New post Posted: Tue 06 Mar, 2012, 13:35 
User avatar

User rating: 2
Joined: Thu 19 May, 2011, 09:37
Posts: 86
Location: India, Chennai
Contest Support wrote:
We apologize for inconveniences made in this regard. The remote server has been fixed and the strategies are running with exceptions.

Please send an email if you're still experiencing any issues.

thnks for the action. it is working now.


 
 Post subject: Re: NPE preventing the strategy from running Post rating: 0   New post Posted: Tue 06 Mar, 2012, 20:56 
User avatar

User rating: 2
Joined: Mon 02 Jan, 2012, 06:15
Posts: 22
Location: Argentina, CORDOBA
Dear Jforex Team,

My strategy continues with the same problem, the logs of the server show this:

ERROR 06.03.2012 16:23:33 Caused by: java.lang.NullPointerException
ERROR 06.03.2012 16:23:33 at java.lang.Thread.run(Thread.java:662)
ERROR 06.03.2012 16:23:33 at com.dukascopy.api.impl.execution.ScienceThreadPoolExecutor$Worker.run(ScienceThreadPoolExecutor.java:926)
ERROR 06.03.2012 16:23:33 at com.dukascopy.api.impl.execution.ScienceThreadPoolExecutor$Worker.runTask(ScienceThreadPoolExecutor.java:904)
ERROR 06.03.2012 16:23:33 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
ERROR 06.03.2012 16:23:33 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
ERROR 06.03.2012 16:23:33 at com.dukascopy.api.impl.execution.AbstractPostDataTask.call(AbstractPostDataTask.java:43)
ERROR 06.03.2012 16:23:33 at com.dukascopy.api.impl.execution.TaskTick.postData(TaskTick.java:67)
ERROR 06.03.2012 16:23:33 at jforex.SircrisFX.onTick(SircrisFX.java:270)
ERROR 06.03.2012 16:23:33 at jforex.SircrisFX.Strategy(SircrisFX.java:228)


In the historical tester run OK, the tester shows me that my strategy should have opened at least five Trades, for my strategy, 5 trades not opened is fatal.

Please help.
Regards.


 

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