How to connect Salesforce at runtime(TEA) using proxy

How to connect Salesforce at runtime(TEA) using proxy

book

Article ID: KB0079165

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for Salesforce.com 6.5.0

Description

By adding the proxy details in the config.ini file of appnode and even after deploying it on TEA, it will be not able to connect to the Salesforce.

Below is the error:
2018-09-27 10:10:57.594 ERROR [pool-8-thread-1] com.tibco.bw.palette.salesforce.runtime.SalesforceQueryActivity - TIBCO-BW-PALETTE-SALESFORCE-300005: Login failed for User 
2018-09-27 10:10:57.609 ERROR [bwEngThread:In-Memory Process Worker-3] com.tibco.bw.core - 

 Error occurred while logging in: java.lang.IllegalAccessException: [Hostname] -{ActivityName=SalesforceQueryAll, ProcessName=MC-SFDCSource.MCI.Connector.actions.QuerySalesforce, ModuleName=bw.mc-SFDCSource}
    TIBCO-BW-PALETTE-SALESFORCE-500002
    java.lang.IllegalAccessException:[Hostname] 

Issue/Introduction

This article explains a possible error if proxy details are specified in the config.ini file and provides a resolution by adding the proxy details to the app node. tra file instead.

Environment

Business Works, TEA

Resolution

To fix the issue, add proxy parameters to the java.extended.properties in the appnode.tra file instead of config.ini and restart the appnode.

-Dcom.tibco.plugin.salesforce.proxyHost=[hostname] 
-Dcom.tibco.plugin.salesforce.proxyPort=[port number]