Using Document ID 406982.1 for Cloning Oracle Applications R12 with Rapid Clone, we are able to complete cloning steps until Section 4 where we use Option 6 for Cloning the Database separately. Once the database is restored via RMAN, and the library update has been run against the DB, and confirming that the database is up and running, we run:
$ cd [RDBMS ORACLE_HOME]/appsutil/clone/bin
$ perl adcfgclone.pl dbconfig [Database target context file]
Where Database target context file is: [RDBMS ORACLE_HOME]/appsutil/[Target CONTEXT_NAME].xml.
Following this step the FND_DATABASE_INSTANCES table within the database is empty.
Next we run:
$ cd [COMMON_TOP]/clone/bin
$ perl adcfgclone.pl appsTier [APPL_TOP target context file]
Where APPL_TOP target context file is [INST_TOP]/appl/admin/[Target CONTEXT_NAME].xml
Following this step the FND_NODES table is fully populated, but we do not start the application.
After this we run autoconfig on the database nodes and it fails with the following entry in the logfile:
Loading ORACLE_HOME environment from /u01/OracleHomes/121020/db
AC-50480: Internal error occurred: java.lang.NullPointerException
Error generating tnsnames.ora from the database, temperory tnsnames.ora will be generated using templates
Our process has worked for years now, but this time we are experiencing this issue for the very first time.
*** RAC is NOT configured. Generating listener.ora from the template ad8ilsnr.ora ***
adgentns.pl exiting with status 2
Running adgentns.pl separately results in the same error: AC-50480: Internal error occurred: java.lang.NullPointerException
I am attaching the NetServiceHandler.log file which detailed the adgentns.pl process.
Upon researching this particular error, most suggestions are to run the exec fnd_conc_clone.setup_clean, which does not solve the issue.