Dukascopy
 
 
Wiki JStore Search Login

JForex SDK ITesterClient authentication failure
 Post subject: JForex SDK ITesterClient authentication failure Post rating: 0   New post Posted: Fri 24 May, 2013, 06:40 

User rating: 0
Joined: Fri 24 May, 2013, 06:20
Posts: 2
Hi,

I am very new to JForex SDK and should apologize for any stupid or duplicated questions raised.

I recently opened a trading account with dukascopy eu. However, I cannot use the newly activated username, password, and pin to get my testing program to connect to JForex server. Below is the code that I modified from the JForex SDK samples:


private static String jnlpUrl = "https://www.dukascopy.com/client/live/jclient/jforex.jnlp";

//user name
private static String userName = "My user name";


//password
private static String password = "Mypassword";
//pin
private static String pin = "My 4 digit Pin";

//get the instance of the IClient interface
final ITesterClient client = TesterFactory.getDefaultInstance();

/****Some code here to initialize the event listener*****/

LOGGER.info("Connecting...");
//connect to the server using jnlp, user name and password
//connection is needed for data downloading
client.connect(jnlpUrl, userName, password, pin);


The program will throw the authentication exception as follows:

2013-05-24 13:03:24.986 INFO AuthorizationClient - >> [https://www1.dukascopy.com/authorization/live/auth?typus=0&munus=api&platform=JFOREXSDK&appello=Twait979EU&specialis=5EAD5C3945E12F47FA0F235474AB5BED063A3984&versio=214&sermo=ac0e1d62-4af1-4e6f-adef-fc4362c7ed5d&willPing=true&sententia=864131]
2013-05-24 13:03:26.983 INFO AuthorizationClient - << [-1]
Exception in thread "main" com.dukascopy.api.system.JFAuthenticationException: Incorrect username or password
at com.dukascopy.api.impl.connect.TesterClientImpl.authenticateAPI(TesterClientImpl.java:406)
at com.dukascopy.api.impl.connect.TesterClientImpl.connect(TesterClientImpl.java:224)
at com.jiangtao.jf.data.MyFirstJForexDataTest.main(MyFirstJForexDataTest.java:78)


Could please anybody tell me what is wrong here? I am sure that the username and password is correct as they allow me to log into Web Trading Platform. Only thing that I am not sure is if it is correct to directly use "4 Digit" pin for JForex SDK login (without translate it into a pin security code as when logging in through Web Trading Platform).

Thanks.


 
 Post subject: Re: JForex SDK ITesterClient authentication failure Post rating: 0   New post Posted: Fri 06 Sep, 2013, 18:22 

User rating: 0
Joined: Fri 06 Sep, 2013, 16:46
Posts: 1
Hi,

I've the same exception. Did you finally fix it?. Please, let me now what steps did you follow.

Regards,


 

Jump to:  

cron
  © 1998-2024 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