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.

problem running in stand alone mode
 Post subject: problem running in stand alone mode Post rating: 0   New post Posted: Fri 10 Feb, 2012, 06:31 

User rating: 0
Joined: Tue 22 Nov, 2011, 12:47
Posts: 130
Location: United States,
hi Support,

I'm working fine with the JForex maven project per your instructions in another thread.

Everything is running nicely inside Eclipse.

I'm now trying to export to a runnable jar and run from command line.

I get the following exception when calling the IClient.connect method:
Exception in thread "main" java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:56)
Caused by: java.lang.NoSuchFieldError: USDBRL
   at com.dukascopy.dds2.greed.util.AbstractCurrencyConverter.<clinit>(AbstractCurrencyConverter.java:49)
   at com.dukascopy.charts.data.orders.OrdersProvider.<init>(OrdersProvider.java:55)
   at com.dukascopy.charts.data.orders.OrdersProvider.createInstance(OrdersProvider.java:81)
   at com.dukascopy.api.impl.connect.DCClientImpl.connect(DCClientImpl.java:168)
   at com.dukascopy.api.impl.connect.DCClientImpl.connect(DCClientImpl.java:148)


please note that this did not happen when I run on previous JFrorex-API versions (prior to the maven project)

please advise.


 
 Post subject: Re: problem running in stand alone mode Post rating: 0   New post Posted: Fri 10 Feb, 2012, 08:37 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Please check if you are using the correct set of libraries. Namely check if you are using JForex-API-2.6.55.jar and greed-common-173.jar for the latest standalone.


 
 Post subject: Re: problem running in stand alone mode Post rating: 0   New post Posted: Thu 23 Feb, 2012, 16:02 

User rating: 0
Joined: Tue 22 Nov, 2011, 12:47
Posts: 130
Location: United States,
hi,

I'm still getting the following error:

Exception in thread "main" java.lang.NoSuchFieldError: USDBRL
   at com.dukascopy.dds2.greed.util.AbstractCurrencyConverter.<clinit>(AbstractCurrencyConverter.java:49)
   at com.dukascopy.charts.data.orders.OrdersProvider.<init>(OrdersProvider.java:55)
   at com.dukascopy.charts.data.orders.OrdersProvider.createInstance(OrdersProvider.java:81)
   at com.dukascopy.api.impl.connect.DCClientImpl.connect(DCClientImpl.java:168)
   at com.dukascopy.api.impl.connect.DCClientImpl.connect(DCClientImpl.java:148)
   at xxx.main(xxx.java:142)


I'm using JForex-API-2.6.60.jar greed-common-177.jar.

Please advise.


 
 Post subject: Re: problem running in stand alone mode Post rating: 0   New post Posted: Fri 24 Feb, 2012, 09:49 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Please check what you receive when running the following test program:
package jforex.test;

import com.dukascopy.api.Instrument;
import com.dukascopy.dds2.greed.util.AbstractCurrencyConverter;

public class VersionCheck {
    public static void main(String[] args) {      
        System.out.println( AbstractCurrencyConverter.class.getPackage().getImplementationVersion());
        System.out.println( Instrument.class.getPackage().getImplementationVersion());
    }
}


 
 Post subject: Re: problem running in stand alone mode Post rating: 0   New post Posted: Sun 26 Feb, 2012, 14:12 

User rating: 0
Joined: Tue 22 Nov, 2011, 12:47
Posts: 130
Location: United States,
OK I fixed the dependencies between my projects.

the test that you wrote returns:

177
2.6.60

But I'm still getting this (different) Error:

SEVERE: Failed to connect Dukascopy servers

Maybe I'm having a problem with the DEMO account?


 
 Post subject: Re: problem running in stand alone mode Post rating: 0   New post Posted: Mon 27 Feb, 2012, 08:55 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
cb888trader wrote:
SEVERE: Failed to connect Dukascopy servers
This was a temporary server problem.


 

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