ArrayIndexOutOfBoundsException for SpeedLink Services after upgrading SpeedLink driver from 1.1.0.110 to 5.1.3.126

ArrayIndexOutOfBoundsException for SpeedLink Services after upgrading SpeedLink driver from 1.1.0.110 to 5.1.3.126

book

Article ID: KB0081137

calendar_today

Updated On:

Products Versions
TIBCO DataSynapse GridServer 5.1.3

Description

Customer reported following ArrayIndexOutOfBoundsException, when running SpeedLink Service with SpeedLink version 5.1.3.126 after upgrading it from SpeedLink 1.1.0.110.
com.datasynapse.gridserver.speedlink.impl.engine.SpeedLinkEndpoint.service[null] java.lang.ArrayIndexOutOfBoundsException: -17
	at org.apache.commons.codec.binary.Base64.isBase64(Base64.java:137)
	at org.apache.commons.codec.binary.Base64.isArrayByteBase64(Base64.java:163)
	at com.datasynapse.gridserver.speedlink.impl.engine.SpeedLinkEndpoint.convertInitData(SpeedLinkEndpoint.java:586)
	at com.datasynapse.gridserver.speedlink.impl.engine.SpeedLinkEndpoint.init(SpeedLinkEndpoint.java:154)
	at com.datasynapse.gridserver.speedlink.impl.engine.SpeedLinkEndpoint.service(SpeedLinkEndpoint.java:298)
	at sun.reflect.GeneratedMethodAccessor101.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.livecluster.core.tasklet.bridge.ClassTasklet.call(ClassTasklet.java:143)
	at com.livecluster.core.tasklet.bridge.ClassTasklet.service(ClassTasklet.java:172)
	at com.livecluster.core.tasklet.bridge.BridgeTasklet.service(BridgeTasklet.java:232)
	at com.livecluster.engine.TaskExecutor.service(TaskExecutor.java:610)
	at com.livecluster.engine.TaskExecutor.executeTask(TaskExecutor.java:212)
	at com.livecluster.engine.JSTaskRunnerPlugin$WorkerRunner.runTask(JSTaskRunnerPlugin.java:612)
	at com.livecluster.engine.JSTaskRunnerPlugin$WorkerRunner.run(JSTaskRunnerPlugin.java:536)
	at com.datasynapse.commons.sync.threading.ReusableThreadPool$InternalThread.run(ReusableThreadPool.java:341)

Issue/Introduction

ArrayIndexOutOfBoundsException for SpeedLink Services after upgrading SpeedLink from 1.1.0.110 to 5.1.3.126

Environment

ALL

Resolution

Error [java.lang.ArrayIndexOutOfBoundsException: -17] is caused if SpeedLink is updated on the manger but the driver is run with the older version of SpeedLink.jar. Upgrading the SpeedLink.jar on the driver to version 5.1.3.126 will resolve the above error. 

Additional Information

None.