LiveView Publisher adapter IndexOutOfBoundsException and server "Invalid session" error

LiveView Publisher adapter IndexOutOfBoundsException and server "Invalid session" error

book

Article ID: KB0082787

calendar_today

Updated On:

Products Versions
TIBCO Streaming 7.6

Description

The two errors associated with bug SB-30498 are...

From the StreamBase client application:
2018-01-01 22:33:57.405 ERROR [BufferedTablePublisher] Error on publisher {adapter name} thread
com.sun.jersey.api.client.ClientHandlerException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 1
In the Live Datamart server console log:
2017-02-03 07:47:08.571 WARN  LiveViewServerResource - publish-tuples: {id}
com.streambase.liveview.client.LiveViewException: Invalid session '{session id}'

Issue/Introduction

Bug SB-30498 fixed in version 7.6.8 and following.

Resolution

The client-side error "IndexOutOfBoundsException" is accompanied by a server side "LiveViewException: Invalid session" error. This is known bug "SB-30498" in Live Datamart fixed in version 2.1.8 (StreamBase 7.6.8).

To fix this server bug, please upgrade to LDM 2.1.8 or later.

The only workaround in prior releases is to edit every LiveView Publish adapter in StreamBase Studio, StreamBase Properties view, Adapter Properties tab, and unset (no check-mark) "Share LiveView Connection" and re-deploy the StreamBase application. This will increase the number of independent connections to the Live Datamart server. This will have a small performance impact and may require additional program logic if the order of connections is important.