Troubleshoot 'No credentials were supplied' error for SNC type connection

Troubleshoot 'No credentials were supplied' error for SNC type connection

book

Article ID: KB0077790

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for SAP Solutions 8.x

Description

The TIBCO ActiveMatrix BusinessWorks(TM) Plug-in for SAP Solutions uses JCo to communicate with SAP server. In terms of using SNC with JCo, there must be system environment variable SECUDIR, put the PSE and credential (cred_v2) files in a directory and map this directory to the SECUDIR.

When running the application that using the SNC connection, the error 'No credentials were supplied' means JCo could not find the cred_v2 file;  the cred_2 file may not exist in the SECUDIR.

Issue/Introduction

Troubleshoot 'No credentials were supplied' error for SNC type connection

Environment

All supported Systems

Resolution

There are a few checkpoints to troubleshoot this error:
  •  Make sure the PES and cred_V2 files are valid and present in the same directory.
  •  Make sure the SECUDIR environment variable is set. On Unix, check the output of command 'env'; on Windows, check the output of command 'set'.
  •  If the system environment is correct, on Unix please check if the environment variable is overrided in the start script (startBWAppnode.sh).
  •  Check the loaded SECUDIR env variable value in the runtime. To do this:
    1. enable the OSGI console. https://docs.tibco.com/pub/activematrix_businessworks/6.5.1/doc/html/GUID-780D3F2B-CE92-4D1B-AD93-8DDDFCD5D690.html
    2. telnet to the OSGI port. and run 'env', check the environment variable values.

If the SECUDIR is not correctly set in the runtime environment, we can use an override in the start script, to do this:
1. Go to the BW/domains/<domain name>/appnodes/<appspace name>/<appnode name>/bin, and modify the 'startBWAppnode.sh', 
2. Add SECUDIR override as the first line in this script and save:
   export SECUDIR=<your directory that stores pse and cred_v2 files>.
3. Restart the appnode from BWAdmin or TEA.

Additional Information

https://docs.tibco.com/pub/activematrix_businessworks/6.5.1/doc/html/GUID-780D3F2B-CE92-4D1B-AD93-8DDDFCD5D690.html
https://docs.tibco.com/pub/bwpluginsap/8.2.2/doc/html/GUID-EB289280-89D8-4B46-B899-1BFE3A256A6F.html