How to resolve "java.lang.IllegalArgumentException: Not a serverside socket" exception.

How to resolve "java.lang.IllegalArgumentException: Not a serverside socket" exception.

book

Article ID: KB0081404

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for Twitter 1.0.0

Description

When TwitterPublish activity of TIBCO ActiveMatrix BusinessWorks Plug-in for Twitter is executed, it fails to connect to the Twitter server and returns the following exception.​ See attached snapshot.

java.lang.IllegalArgumentException: Not a serverside socket
    at iaik.security.jsse.net.IAIKSSLSocketWrapper.setWantClientAuth(Unknown Source)
    at javax.net.ssl.SSLSocket.setSSLParameters(Unknown Source)
    at com.tibco.security.providers.TIBCOSSLSocketWrapper.setSSLParameters(TIBCOSSLSocketWrapper.java:349)
    at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
    at twitter4j.internal.http.HttpClientImpl.request(HttpClientImpl.java:150)
    at twitter4j.internal.http.HttpClientWrapper.request(HttpClientWrapper.java:61)
    at twitter4j.internal.http.HttpClientWrapper.post(HttpClientWrapper.java:98)
    at twitter4j.TwitterImpl.post(TwitterImpl.java:1857)
    at twitter4j.TwitterImpl.updateStatus(TwitterImpl.java:238)
    at com.tibco.plugin.twitter.activities.TwitterPublishActivity.postTweet(TwitterPublishActivity.java:164)
    at com.tibco.plugin.twitter.activities.TwitterPublishActivity.eval(TwitterPublishActivity.java:98)
    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)

Environment

All supported platforms

Resolution

This issue is occurs due to TRA complains about HTTPS connection. To resolve this issue, add the following property to the designer.tra file 
----
java.property.TIBCO_SECURITY_VENDOR=j2se
----
 

Issue/Introduction

Add java.property.TIBCO_SECURITY_VENDOR=j2se property to the designer.tra file.

Attachments

How to resolve "java.lang.IllegalArgumentException: Not a serverside socket" exception. get_app