Skip to content

Version 1.3.0 Error: com.dxfeed.event.candle.CandleSymbol cannot be cast to java.lang.String #55

Open
@EcBen

Description

@EcBen

@stdcion
Testing out the new 1.3.0 version and getting this error:

SendCandleSubscription() for /ESM24:XCME{=m}{fromTime=20240519-151501.000}
SendCandleSubscription() Error: DxFeed.Graal.Net.Native.ErrorHandling.JavaException: Java exception of type 'java.lang.ClassCastException' was thrown. com.dxfeed.event.candle.CandleSymbol cannot be cast to java.lang.String
        at com.dxfeed.event.market.MarketEventDelegateSet.getTimeSeriesDelegatesByEventSymbol(MarketEventDelegateSet.java:51)
        at com.dxfeed.api.impl.DXFeedImpl.toSubscription(DXFeedImpl.java:541)
        at com.dxfeed.api.impl.DXFeedImpl.access$800(DXFeedImpl.java:63)
        at com.dxfeed.api.impl.DXFeedImpl$SubscriptionChangeListener.symbolsAdded(DXFeedImpl.java:737)
        at com.dxfeed.api.DXFeedSubscription.addSymbolImpl(DXFeedSubscription.java:783)
        at com.dxfeed.api.DXFeedSubscription.addSymbols(DXFeedSubscription.java:507)
        at com.dxfeed.sdk.subscription.SubscriptionNative.dxfg_DXFeedSubscription_addSymbol(SubscriptionNative.java:104)
   at DxFeed.Graal.Net.Native.ErrorHandling.JavaExceptionHandle.ThrowException()
   at DxFeed.Graal.Net.Native.ErrorHandling.JavaExceptionHandle.ThrowIfJavaThreadExceptionExists()
   at DxFeed.Graal.Net.Native.ErrorHandling.ErrorCheck.ThrowIfJavaThreadExceptionExists()
   at DxFeed.Graal.Net.Native.ErrorHandling.ErrorCheck.SafeCall(Int32 result)
   at DxFeed.Graal.Net.Native.Subscription.SubscriptionNative.SubscriptionImport.AddSymbol(IntPtr thread, SubscriptionHandle* subHandle, Object symbol)
   at DxFeed.Graal.Net.Native.Subscription.SubscriptionNative.AddSymbols(Object[] symbols)
   at DxFeed.Graal.Net.Api.DXFeedSubscription.AddSymbols(Object[] symbols)

Has something changed with how Candle subscriptions work?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions