Unable to connect by using the sample code under ftl 2.1 root\samples\bin\tibrecv

Unable to connect by using the sample code under ftl 2.1 root\samples\bin\tibrecv

book

Article ID: KB0090343

calendar_today

Updated On:

Products Versions
TIBCO FTL -
Not Applicable -

Description

Resolution:
Description:
===============
The sample code generates the following error:

com.tibco.ftl.exceptions.FTLTimeoutException: TIBCO Exception:
    Error Code    = Timeout
    Description   = Request to Realm Server timed out
    Stack Trace:
        _tibRealm_SyncRequestInPlace, 345
        _tibRealm_DoDiscovery, 2084
        _tibRealm_InitFromServer, 2150
        _tibRealm_Connect, 346
        tibRealm_Connect, 525

    at com.tibco.ftl.jni.NativeFTL.createRealmFromRealmServer(Native Method)
    at com.tibco.ftl.jni.NativeFTL.connectToRealm(Unknown Source)
    at com.tibco.ftl.FTL.connectToRealmServer(Unknown Source)
    at com.tibco.ftl.samples.TibSend.send(TibSend.java:211)
    at com.tibco.ftl.samples.TibSend.main(TibSend.java:262)

Reason:
= = = = = =
The out-of-box realmserver has no objects defined like applications or transports.


Resolution:
===============

After starting a realm server, update the realm with the tibrealmserver.json file.  

One sample procedure would be as follows:

1).  Start the realm server.

2). Set RS_SCRIPT_BASE= c:\tibco\ftl\2.1\bin\

3). C:\tibco\ftl\2.1\samples\scripts>\tibco\ftl\2.1\bin\tibrealmadmin.bat -rs http://localhost:12000 -ur tibrealmserver.json  -u admin -pw admin-pw --force

4). Start the sample program as follows:

tibrecv -a tibrecv -e tibrecv-endpoint -t info

Issue/Introduction

Unable to connect by using the sample code under ftl 2.1 root\samples\bin\tibrecv