Subscription Write Service throwing the error, "[Adapter] AEFA-000161 The attribute type is not String, can not match method 'getStringStr()'."

Subscription Write Service throwing the error, "[Adapter] AEFA-000161 The attribute type is not String, can not match method 'getStringStr()'."

book

Article ID: KB0093812

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for Files for Unix and Windows -
Not Applicable -

Description

Description:
When you have a TIBCO ActiveMatrix Adapter for Files (Unix/Win) (FA) subscriber and a TIBCO ActiveMatrix BusinessWorks (BW) publisher, if the  BW publisher does not send a value to an FA subscriber for non string fields, then the FA subscriber logs the following error. 

"Error [Adapter] AEFA-000161 The attribute type is not String, can not match method 'getStringStr()'"
Symptoms:
This issue only occurs when schema fields are non string type and data becomes null for that field. The following error is logged in the subscriber logs.

"Error [Adapter] AEFA-000161 The attribute type is not String, can not match method 'getStringStr()'" 

Cause:
In TIBCO ActiveMatrix Adapter for Files (Unix/Win) (FA) 7.0, when a non string type field receives a null value, a String contains "" as the value will be set as output and it will format the output with its field type. A mismatch will occur.

Issue/Introduction

Subscription Write Service throwing the error, "[Adapter] AEFA-000161 The attribute type is not String, can not match method 'getStringStr()'."

Environment

Product: TIBCO ActiveMatrix Adapter for Files (Unix/Win) Version: 7.0.x OS: All Supported Operating Systems

Resolution

Ensure that BW sends default values for non string fields, i.e., BW should always send a non null value. Though error "AEFA-000161 The attribute type is not String, can not match method 'getStringStr()'" is logged in an FA subscriber, the subscriber does not stop and in the output file we see the expected data. This is a kind of warning and as of now it does not have any major impact on FA subscriber functionality,