Instance.Reflection.setPropertyAtomValue() function does not throw an exception. It only logs the exception.

Instance.Reflection.setPropertyAtomValue() function does not throw an exception. It only logs the exception.

book

Article ID: KB0087055

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Resolution:
Description:
============
Instance.Reflection.setPropertyAtomValue() function's return type is boolean. It returns true if the property is set to a new value, false otherwise. e.g., mismatched type, no such property exception as mentioned in the function's documentation. The exception is logged only and not thrown.

Environment:
===========
TIBCO BusinessEvents 4.x,5.x
All Operating Systems

Symptoms:
========
When Instance.Reflection.setPropertyAtomValue() function is used in TRY block and if this function encounters an exception for e.g.,  java.lang.NoSuchFieldException then the control does not go to CATCH block.

Cause:
=====
Instance.Reflection.setPropertyAtomValue() function does not throw an exception. It only logs the exception.

Resolution:
==========
Use the return type of Instance.Reflection.setPropertyAtomValue() in TRY block logic. For e.g., if the return type is false then do the activities that are supposed to be done in the catch block of code.

Issue/Introduction

Instance.Reflection.setPropertyAtomValue() function does not throw an exception. It only logs the exception.