Dukascopy
 
 
Wiki JStore Search Login

APICLIENT-74 Jforex Spread java.lang.NullPointerException error?
 Post subject: APICLIENT-74 Jforex Spread java.lang.NullPointerException error? Post rating: 0   New post Posted: Tue 29 May, 2012, 23:00 
User avatar

User rating: 0
Joined: Tue 29 May, 2012, 22:54
Posts: 2
Location: Canada, Toronto
Hey guys, i got a strategy i use to run that shows me the spread of each currency pair on the chart. Dont know what happen but it stopped working and it keeps giving me an errror over and over. I tried downloading another one that similar, same error code. any help would be appreciated.


21:53:45 java.lang.NullPointerException
21:53:44 java.lang.NullPointerException
21:53:43 java.lang.NullPointerException
21:53:43 java.lang.NullPointerException

this is teh previous one i was using
https://www.hastyle.ca/temp/StopManager.jfx

this is the one i just downloaded, same problem, can it be a coincident?
https://www.hastyle.ca/temp/SpreadTime.jfx

thanks


 
 Post subject: Re: Jforex Spread java.lang.NullPointerException error? Post rating: 0   New post Posted: Wed 30 May, 2012, 07:22 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
We can't assist you without source code. If you don't wish to publish the source code in the forum, then please send a support request to [email protected]


 
 Post subject: Re: Jforex Spread java.lang.NullPointerException error? Post rating: 0   New post Posted: Tue 05 Jun, 2012, 12:06 

User rating: 0
Joined: Wed 22 Jun, 2011, 08:44
Posts: 1
Location: SwitzerlandSwitzerland
Hello
I have the same problem with the strategy "tick line label"
The error occurs only in the live version on
Thanks


Attachments:
TickLineLabel.java [7.93 KiB]
Downloaded 389 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.
 
 Post subject: Re: APICLIENT-74 Jforex Spread java.lang.NullPointerException error? Post rating: 0   New post Posted: Tue 05 Jun, 2012, 12:51 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
The issue has been registered. As a temporary workaround consider plotting a text on the chart in the following way:
ITextChartObject text = chart.getChartObjectFactory().createText("textKey", timeValue, priceValue);
text.setText("Hello world");
text.setColor(Color.BLUE);
chart.addToMainChart(text);


 

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