My Oracle Support Banner

Failed To Obtain/create Connection. Reason : No PasswordCredential Found (Doc ID 1530209.1)

Last updated on JANUARY 30, 2020

Applies to:

Oracle Java CAPS - Version 5.1.3 and later
Information in this document applies to any platform.

Goal

Updating the IP address of a host in the /etc/hosts file is leading to the following error when a JDBC connection to DB2, via the JDBC/ODBC Adapter, is attempted.

For example, entry in /etc/hosts

    mydb.company.com    192.xxx.xx.xx

is changed to

    mydb.company.com    192.xxx.x.xx


Nothing else has changed except for the IP Address mentioned above.  The following error is produced:

[#|2013-02-06T12:34:32.636+0100|WARNING|IS5.1.3|javax.enterprise.resource.resourceadapter|_ThreadID=19; ThreadName=Worker: 22; Context=dpCM01_0100_CMF028_3_22_1_1_0_1_RUE_nA_19010/quCM01_0100_CMF028_3_22_1_1_0_svcCM01_0187308131_ejb;|RAR5117 : Failed to obtain/create connection. Reason : No PasswordCredential found|#]

If the domain is restarted, it works, but if /etc/hosts file is changed again, the error returns back.

Questions are:


1. Why it is saying that there is no PasswordCredential if I did not touch any setting in domain.xml or anywhere (just changed OS /etc/hosts file)?

2. Is there a way to handle this without a domain restart, like having a JVM property set?

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.