TIBCO ActiveMatrix BusinessWorks Plug-in for Twitter fails to connect to a Twitter server.

TIBCO ActiveMatrix BusinessWorks Plug-in for Twitter fails to connect to a Twitter server.

book

Article ID: KB0093426

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for Twitter -
Not Applicable -

Description

Description:
When any activity of TIBCO ActiveMatrix BusinessWorks Plug-in for Twitter is executed, it fails to connect to the Twitter server and returns the following exception.

There is a problem with network connection, Server returned HTTP response code: 403 for URL: http://api.twitter.com/1.1/users/search.json?q=%40krishyekula&per_page=20&page=1&include_entities=1&include_rts=1.
        at com.tibco.plugin.twitter.activities.TwitterSearchActivity.getPeopleSearchResponse(TwitterSearchActivity.java:279)
        at com.tibco.plugin.twitter.activities.TwitterSearchActivity.eval(TwitterSearchActivity.java:111)
        at com.tibco.pe.plugin.Activity.eval(Unknown Source)
        at com.tibco.pe.core.TaskImpl.eval(Unknown Source)
        at com.tibco.pe.core.Job.a(Unknown Source)
        at com.tibco.pe.core.Job.k(Unknown Source)
        at com.tibco.pe.core.JobDispatcher$JobCourier.a(Unknown Source)
        at com.tibco.pe.core.JobDispatcher$JobCourier.run(Unknown Source)

This issue is due to only SSL connections are allowed in Twitter API endpoints.
Therefore a SSL connection is required to be initialized from TIBCO ActiveMatrix BusinessWorks Plug-in for Twitter.

Issue/Introduction

TIBCO ActiveMatrix BusinessWorks Plug-in for Twitter fails to connect to a Twitter server.

Resolution

Add the property java.property.twitter4j.http.useSSL=true in the .tra file of Designer (by default the filename is designer.tra) to change the communication from HTTP to HTTPS.