Caused by - java.lang.NullPointerException: null
at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1690)
* at com.dukascopy.charts.data.datacache.FeedDataProvider.getOrCreateListenersSet(FeedDataProvider.java:3190) *
* at com.dukascopy.charts.data.datacache.FeedDataProvider.addCacheDataUpdatedListener(FeedDataProvider.java:2477) *
* at com.dukascopy.charts.data.datacache.IntraperiodCandlesGenerator.<init>(IntraperiodCandlesGenerator.java:140) *
* at com.dukascopy.charts.data.datacache.FeedDataProvider.<init>(FeedDataProvider.java:286) *
* at com.dukascopy.charts.data.datacache.FeedDataProvider.<init>(FeedDataProvider.java:234) *
* at com.dukascopy.charts.data.datacache.FeedDataProvider.createFeedDataProvider(FeedDataProvider.java:367) *
* at com.dukascopy.charts.data.datacache.FeedDataProvider.createFeedDataProvider(FeedDataProvider.java:341) *
* at com.dukascopy.charts.data.datacache.FeedDataProvider.createFeedDataProvider(FeedDataProvider.java:331) *
* at com.dukascopy.api.impl.connect.TesterClientImpl.connect(TesterClientImpl.java:255) *
* at com.dukascopy.api.impl.connect.TesterClientImpl.connect(TesterClientImpl.java:221) *
* at de.invesdwin.trading.jforex.runtime.JForexRuntimeProperties.getAvailableInstrumentsFromTesterClient(JForexRuntimeProperties.java:57) *
(I guess Instrument.values() somehow contains null values due to some initialization race condition on first connect?)
The code that is doing the connect is:
private static Set<Instrument> getAvailableInstrumentsFromTesterClient()
throws JFAuthenticationException, JFVersionException, Exception {
final ITesterClient client = TesterFactory.getDefaultInstance();
try {
if (!client.isConnected()) {
client.connect(JFOREX_JNLP_URL.toString(), JFOREX_JNLP_USERNAME, JFOREX_JNLP_PASSWORD);
}
final Set<Instrument> availableInstruments = client.getAvailableInstruments();
return availableInstruments;
}
This happens only recently after I have upgraded to the current version of jforex:
<version.jforex-3-sdk>[3.6.5,)</version.jforex-3-sdk>
<version.jforex-api>[2.13.76,)</version.jforex-api>
<version.greed-common>[318.4.87,)</version.greed-common>
<version.dds2-charts>[6.24.89,)</version.dds2-charts>