|
JForex strategy not working in JForex 4 |
Jellybean
|
Post subject: JForex strategy not working in JForex 4 |
Post rating: 0
|
Posted: Sat 03 Jan, 2015, 03:17
|
|
User rating: 0
Joined: Fri 10 Oct, 2014, 00:35 Posts: 58 Location: New Zealand, Auckland
|
Hi,
I have a strategy that works fine in JForex, but fails with a NullPointerException in JForex 4. The attached strategy is a "stripped down" version of it. I would like some help to solve this problem. What should I try next?
When I run it it JForex 4, the log (attached) shows the NullPointerException occurs at line 45, the first time the feed descriptor is used.
When I compile in JForex 4, these are the messages: 03/01/2015 15:06:09 Compilation successful. Strategy ID: 17923FA55EC28F46AED2C9D39BA1CF70 03/01/2015 15:06:09 Annotation processing got disabled, since it requires a 1.6 compliant JVM 03/01/2015 15:06:06 Compiling TestJF4FeedDescriptor.java
I have Java 8 Update 25. I notice that JForex uses Java 8 Update 25 Version 8.0.250, but JForex 4 uses Java 8 Update 25 (64-bit) Version 8.0.200.26. I don't know if this is significant.
I have only tried this when the markets are closed, but it still works with JForex.
Cheers Tony
Attachments: |
LOG_2015-01-03 14.59.21.log [20.62 KiB]
Downloaded 153 times
|
File comment: NullPointerException at Line 45
TestJF4FeedDescriptor.java [2.6 KiB]
Downloaded 174 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.
|
|
|
|
|
 |
Jellybean
|
Post subject: Re: JForex strategy not working in JForex 4 |
Post rating: 0
|
Posted: Thu 08 Jan, 2015, 04:23
|
|
User rating: 0
Joined: Fri 10 Oct, 2014, 00:35 Posts: 58 Location: New Zealand, Auckland
|
A little more information...
Since first reporting this, I noticed that I had 3 versions of Java 8 update 25 installed; 32-bit, 64-bit and development. Now I have uninstalled them all and re-installed only the 32-bit version (8.0.250.18).
The problem remains the same.
Cheers Tony
|
|
|
|
 |
Jellybean
|
Post subject: Re: JForex strategy not working in JForex 4 |
Post rating: 0
|
Posted: Wed 04 Feb, 2015, 23:23
|
|
User rating: 0
Joined: Fri 10 Oct, 2014, 00:35 Posts: 58 Location: New Zealand, Auckland
|
Please tell me if strategies are enabled in JForex4.
Should I continue to try to solve this non-working strategy problem, or is it expected that strategies do not work?
Cheers Tony
|
|
|
|
 |
Jellybean
|
Post subject: Re: JForex strategy not working in JForex 4 |
Post rating: 0
|
Posted: Tue 17 Feb, 2015, 01:14
|
|
User rating: 0
Joined: Fri 10 Oct, 2014, 00:35 Posts: 58 Location: New Zealand, Auckland
|
Posted again to move this post to the top. Tony
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|