question

Upvotes
Accepted
4 1 0 1

NullPointerException in notifyOnAllMsg

I keep getting this error at random intervals (to clarify, it happen once every couple of days, but the timings are not repeatable). I know there are other similar questions, but they all date from years ago and are marked as fixed.

Does anyone have any idea what might be causing this?

java.lang.NullPointerException
        at com.refinitiv.ema.access.ItemCallbackClientConsumer.notifyOnAllMsg(ItemCallbackClient.java:2561)
        at com.refinitiv.ema.access.ItemCallbackClient.statusEventCallback(ItemCallbackClient.java:1167)
        at com.refinitiv.eta.valueadd.reactor.Reactor.sendTunnelStreamStatusEventCallback(Reactor.java:2208)
        at com.refinitiv.eta.valueadd.reactor.Reactor.sendAndHandleTunnelStreamStatusEventCallback(Reactor.java:2220)
        at com.refinitiv.eta.valueadd.reactor.Reactor.handleTunnelStreamMsg(Reactor.java:5827)
        at com.refinitiv.eta.valueadd.reactor.Reactor.sendAndHandleDefaultMsgCallback(Reactor.java:2097)
        at com.refinitiv.eta.valueadd.reactor.WlItemHandler.callbackUser(WlItemHandler.java:2943)
        at com.refinitiv.eta.valueadd.reactor.WlItemHandler.readMsg(WlItemHandler.java:1987)
        at com.refinitiv.eta.valueadd.reactor.WlItemHandler.serviceDeleted(WlItemHandler.java:2809)
        at com.refinitiv.eta.valueadd.reactor.WlServiceCache.clearCache(WlServiceCache.java:187)
        at com.refinitiv.eta.valueadd.reactor.WlDirectoryHandler.deleteAllServices(WlDirectoryHandler.java:759)
        at com.refinitiv.eta.valueadd.reactor.WlDirectoryHandler.deleteAllServices(WlDirectoryHandler.java:1359)
        at com.refinitiv.eta.valueadd.reactor.Watchlist.channelDown(Watchlist.java:455)
        at com.refinitiv.eta.valueadd.reactor.Reactor.sendAndHandleChannelEventCallback(Reactor.java:2055)
        at com.refinitiv.eta.valueadd.reactor.Reactor.performChannelRead(Reactor.java:3488)
        at com.refinitiv.eta.valueadd.reactor.Reactor.dispatchChannel(Reactor.java:2672)
        at com.refinitiv.eta.valueadd.reactor.ReactorChannel.dispatch(ReactorChannel.java:610)
        at com.refinitiv.ema.access.OmmBaseImpl.rsslReactorDispatchLoop(OmmBaseImpl.java:1543)
        at com.refinitiv.ema.access.OmmBaseImpl.run(OmmBaseImpl.java:1685)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:829)
ema-apijava#technology
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Upvotes
Accepted
55.7k 144 45 65

@JasonS

Thanks for reaching out to us.

Please check if you are using the latest version of Refinitiv Real-Time SDK Java 2.0.7.L1 (EMA/ETA 3.6.7.L1). If not, please upgrade the application to use the latest version to avoid all known issues.

You can download the SDK from here or get it from maven.

Please feel free to reach out if you have any further questions.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

I have now upgraded to version 3.6.8.0 and I am still getting this error intermittently

INFO: StatusMsg
    streamId="8"
    domain="System Domain"
    privateStream
    state="Closed, Recoverable / Suspect / None / 'socket channel is not in the active state for getBuffer'"
    name="TUNNEL1"
    serviceId="10"
    serviceName="DDS_TRCE"
StatusMsgEnd

Exception in thread "pool-6-thread-1" java.lang.NullPointerException