TaskException on recursive Job throws ClassNotFoundException

TaskException on recursive Job throws ClassNotFoundException

book

Article ID: KB0090227

calendar_today

Updated On:

Products Versions
TIBCO DataSynapse GridServer -
Not Applicable -

Description

Resolution:
On the Engine side of a Java Service which recursively submits a Job, it may fail when TaskException.getTaskInput throws a ClassNotFoundException.

To solve this issue, change your code around getTaskInput() as follows. Replace

TaskInput input = e.getTaskInput();

with

IByteSource src = e.getByteSource();
TaskInput input = (TaskInput) BasicByteSupport.inflateObj( src.getBytes(), getClass().getClassLoader(), src.getCompress());

Issue/Introduction

TaskException on recursive Job throws ClassNotFoundException