Unable to catch Exception from external jar files.

One Star

Unable to catch Exception from external jar files.

Hi,
I am using external jar files to call some method in tjava. When method throws an APIException,I am unable to catch that exception through tLogCatcher. Attached are the snapshots for the same.
In the logfile I am expecting a Exception Type as "java exception" with a message "The access token could not be decrypted","type":"OAuthException","code":190,"fbtrace_id":"CBTJV5U6U80"}}
at com.facebook.ads.sdk.APIRequest.readResponse(APIRequest.java:223)" .


One Star

Re: Unable to catch Exception from external jar files.

You can use tJavaFlex.  With try catch exception and link it to your tjava code.  You can save the logs in a globalMap variable and write it to the file in the end 
One Star

Re: Unable to catch Exception from external jar files.

Hi ahallam,
Thank you. It worked.
 Regards
Isha Taneja

What’s New for Talend Spring ’19

Join us live for a sneak peek!

Sign up now

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch