Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Submit JForex API bug reports in this forum only.
    Submit Converter issues in Converter Issues.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

JForex not connecting
 Post subject: JForex not connecting Post rating: 1   New post Posted: Mon 02 Mar, 2015, 02:26 
User avatar

User rating: 1
Joined: Mon 02 Mar, 2015, 02:13
Posts: 1
Location: Hong KongHong Kong
I have been trading sometime both Demo and Live using a custom Jforex API build. For some reason last Monday a week ago the application would no longer connect or trade with the account it stopped at approximately 8:35 GMT Monday 23.02.2015. So far I have been unable to figure it out. Does anyone have any experience or suggestions. I am using Java 1.7 and JForex -API-2.6.72.jar. Work fine for weeks even months even on Monday the 23rd until 8:35 GMT.

Any suggestions or experience anyone can share with me will be kindly appreciated.

Cheers
Nevis


 
 Post subject: Re: JForex not connecting Post rating: 0   New post Posted: Wed 04 Mar, 2015, 13:25 
User avatar

User rating: 0
Joined: Wed 04 Mar, 2015, 13:16
Posts: 4
Location: India,
Hi
Same here. I am using java 1.7 and JForex-API-2.6.72.jar. Still its not connect with demo account.

Thanks,
Satya


 
 Post subject: Re: JForex not connecting Post rating: 0   New post Posted: Thu 05 Mar, 2015, 13:07 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Please use latest version, very old versions are no longer supported:
https://www.dukascopy.com/swiss/english ... 13&t=52229


 
 Post subject: Re: JForex not connecting Post rating: 0   New post Posted: Tue 10 Mar, 2015, 11:45 
User avatar

User rating: 0
Joined: Wed 04 Mar, 2015, 13:16
Posts: 4
Location: India,
Thanks for the suggestion.

I am using JForexAPI-2.12.6, DDS2-jClient-JForex2.43.2, dds2-common-2.5.70.

While executing "ClientFactory.getDefaultInstance()" Its generate the following exception and so IClient object could not able to connect.

"java.lang.NoClassDefFoundError: com/dukascopy/json/JSONObject
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2493)
at java.lang.Class.getConstructor0(Class.java:2803)
at java.lang.Class.newInstance(Class.java:345)
at com.dukascopy.api.system.ClientFactory.getDefaultInstance(ClientFactory.java:27)
at com.mindfire.scheduler.JForexProcess.main(JForexProcess.java:53)
Caused by: java.lang.ClassNotFoundException: com.dukascopy.json.JSONObject
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 18 more"

Then I have changed the version of dds2-common to 2.5.6, then I got the following exception

"Exception
java.lang.NoClassDefFoundError: com/dukascopy/transport/common/msg/strategy/FileMngRequestMessage"

Would you like to help me on this ? :cry:
Would you like to share me which version of jar file I need to use?

Thanks,
Satya


 
 Post subject: Re: JForex not connecting Post rating: 0   New post Posted: Tue 10 Mar, 2015, 12:57 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Please remove dependency on dds2-common. It is redundant. Only JForexAPI-2.12.6 and DDS2-jClient-JForex2.43.2 are required.


 
 Post subject: Re: JForex not connecting Post rating: 0   New post Posted: Wed 11 Mar, 2015, 06:23 
User avatar

User rating: 0
Joined: Wed 04 Mar, 2015, 13:16
Posts: 4
Location: India,
Thanks

I have removed dds2-common. After that I am getting the following exception. The exception arises on the below statement.
try {
client = ClientFactory.getDefaultInstance();
}
catch(Throwable e) {
e.printStackTrace();
}

Exception:-
java.lang.NoClassDefFoundError: com/dukascopy/transport/common/msg/ProtocolMessage
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2493)
at java.lang.Class.getConstructor0(Class.java:2803)
at java.lang.Class.newInstance(Class.java:345)
at com.dukascopy.api.system.ClientFactory.getDefaultInstance(ClientFactory.java:27)
at com.mindfire.scheduler.JForexProcess.main(JForexProcess.java:53)
Caused by: java.lang.ClassNotFoundException: com.dukascopy.transport.common.msg.ProtocolMessage
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 6 more

Thanks,
Satya


 
 Post subject: Re: JForex not connecting Post rating: 0   New post Posted: Tue 17 Mar, 2015, 12:26 
User avatar

User rating: 0
Joined: Wed 04 Mar, 2015, 13:16
Posts: 4
Location: India,
Hi support Team,

Would you like to help me on this? I am waiting for your response. I have tested this with Java 1.7. Should I test this with java 1.8?

Thanks,
Satya


 
 Post subject: Re: JForex not connecting Post rating: 0   New post Posted: Wed 18 Mar, 2015, 08:04 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
NoClassDefFoundError usually is due to problems with IDE project library configuration. ProtocolMessage is located in transport-common jar.
One option to test the project could be to run mvn clean install from command line.


 

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