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.

IChartObjectFactory.createRayLine(...) - NoSuchMethodException
 Post subject: IChartObjectFactory.createRayLine(...) - NoSuchMethodException Post rating: 0   New post Posted: Tue 27 Mar, 2012, 15:17 
User avatar

User rating: 3
Joined: Wed 18 May, 2011, 16:25
Posts: 331
Location: SwitzerlandSwitzerland
With the current API 2.6.60.1 I found that the only method that is working to create a RayLine is factory.createRayLine();

Neither of the 2 other methods,
1) factory.createRayLine(key) or
2) factory.createRayLine(key, args)
are working.

They will throw
Quote:
13:56:33 at com.dukascopy.charts.chartbuilder.e.createRayLine(Unknown Source)
13:56:33 at com.dukascopy.charts.chartbuilder.e.create(Unknown Source)
13:56:33 at com.dukascopy.charts.chartbuilder.e.a(Unknown Source)
13:56:33 java.lang.RuntimeException: java.lang.NoSuchMethodException: com.dukascopy.charts.drawings.RayLineChartObject.<init>(java.lang.String)


and

Quote:
13:56:33 at com.dukascopy.charts.chartbuilder.e.createRayLine(Unknown Source)
13:56:33 at com.dukascopy.charts.chartbuilder.e.create(Unknown Source)
13:56:33 at com.dukascopy.charts.chartbuilder.e.a(Unknown Source)
13:56:33 java.lang.RuntimeException: java.lang.NoSuchMethodException: com.dukascopy.charts.drawings.RayLineChartObject.<init>(java.lang.String, double, long, double, long)


respectively.

Regards,
RR.


 
 Post subject: Re: IChartObjectFactory.createRayLine(...) - NoSuchMethodException Post rating: 0   New post Posted: Wed 28 Mar, 2012, 12:59 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
RoadRunner wrote:
1) factory.createRayLine(key) or
This will be fixed with the upcoming JForex-API 2.6.63.
RoadRunner wrote:
2) factory.createRayLine(key, args)
In your example you are using the wrong amount of arguments for the ray line, see ray line examples here:
viewtopic.php?f=16&t=46715
The method will be usable with the new API version, but will have a different signature, see more here:
viewtopic.php?f=65&t=46932


 
 Post subject: Re: IChartObjectFactory.createRayLine(...) - NoSuchMethodException Post rating: 0   New post Posted: Thu 29 Mar, 2012, 13:55 
User avatar

User rating: 3
Joined: Wed 18 May, 2011, 16:25
Posts: 331
Location: SwitzerlandSwitzerland
Yes, I had the arguments in the wrong sequence...

And thanks a lot for your info on the re-introduction of the create-methods with arguments.

Kind regards,
RR.


 
 Post subject: Re: IChartObjectFactory.createRayLine(...) - NoSuchMethodException Post rating: 0   New post Posted: Thu 29 Mar, 2012, 14:17 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
RoadRunner wrote:
1) factory.createRayLine(key) or
This fix did not get released with the 2.6.63, this will get fixed with the 2.6.64.
RoadRunner wrote:
2) factory.createRayLine(key, args)
The changed method should work with the latest DEMO release, try:
https://www.dukascopy.com/client/javadoc//com/dukascopy/api/drawings/IChartObjectFactory.html#createRayLine(java.lang.String,%20long,%20double,%20long,%20double)


 
 Post subject: Re: IChartObjectFactory.createRayLine(...) - NoSuchMethodException Post rating: 0   New post Posted: Thu 29 Mar, 2012, 18:10 
User avatar

User rating: 3
Joined: Wed 18 May, 2011, 16:25
Posts: 331
Location: SwitzerlandSwitzerland
Quote:
2) factory.createRayLine(key, args)
The changed method should work with the latest DEMO release, try:
https://www.dukascopy.com/client/javadoc ... ,%20double)


Yes, it's working.

Thanks a lot!


 

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