OPATCH_JAVA_ERROR With "Can not lock OUI inventory (READ/WRITE Level)" in Logs

(Doc ID 1264274.1)

Last updated on JANUARY 12, 2017

Applies to:

Oracle Fusion Middleware - Version 10.1.2.3.0 to 10.1.4.3.0 [Release AS10gR2 to AS10gR3]
Information in this document applies to any platform.
Checked for relevance on 12-Sep-2012

Symptoms

This problem has been seen during an Identity Management 10g (10.1.4) and Oracle Application Server 10g (10.1.3) installation on Microsoft Windows 2008 R2. The problem is actually with the OPatch utility while applying a one-off patch to a given Oracler home. This does occur 'automatically' when installing 10.1.3/10.1.4. The solution would apply to any Oracle Application Server 10g installation where OPatch is failing with the following commands and resulting errors:

%ORACLE_HOME%\OPatch apply
%ORACLE_HOME%\OPatch lsinventory


OPATCH_JAVA_ERROR : An exception of type "OPatchException" has occurred:
Can not get a list of inventory on this home.

ERROR: OPatch failed because of Inventory problem.
OPatch returns with error code = 100

When looking at the ORACLE_HOME\.patch_storage\<patch_directory>, the following is found:

java.lang.NullPointerException
at oracle.sysman.oii.oiix.OiixPathOps.concatPath(OiixPathOps.java:551)
at oracle.sysman.oii.oiic.OiicStandardInventorySession.updateProperties(OiicStandardInventorySession.java:401)
at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:243)
at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:218)
at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:167)
at opatch.O2O.setupSession(O2O.java:535)
at opatch.O2O.setupInventory(O2O.java:597)
at opatch.O2O.setupInventoryThenRAC(O2O.java:1109)
at opatch.LsInventory.main(LsInventory.java:195)
LsInventory: OPatch Exception while accessing O2O


OPATCH_JAVA_ERROR : An exception of type "OPatchException" has occurred:
OPatch Exception: Can not lock OUI inventory (READ/WRITE Level)
An exception occurs
null
Can not lock OUI inventory (READ/WRITE Level)
An exception occurs
null
Can not lock OUI inventory (READ/WRITE Level)
An exception occurs
null
Can not lock OUI inventory (READ/WRITE Level)
An exception occurs
null
Can not lock OUI inventory (READ/WRITE Level)
An exception occurs
null
Can not lock OUI inventory (READ/WRITE Level)
An exception occurs
null
Can not lock OUI inventory (READ/WRITE Level)
An exception occurs
null
Can not lock OUI inventory (READ/WRITE Level)
An exception occurs
null
Can not lock OUI inventory (READ/WRITE Level)
An exception occurs
null
Can not lock OUI inventory (READ/WRITE Level)
An exception occurs
null

Changes


While this may happen with any patch installation for different reasons, if you are installing 10.1.3/10.1.4, you should be aware that many portions are now past Premier Support and not eligible for new fixes. On newer platforms, there was a previous post-release certification, but there may be more issues without any resolution.

Reference:

<Note 1290868.1> Error Correction Support Dates for Oracle Application Server 10g (10.1.2, 10.1.3, 10.1.4)

<Note 465847.1> Oracle Identity Management 10g (10.1.4.0.1) Release Notes Addendum
  - Includes Microsoft Windows Vista, 2008 R1, 2008 R2, Linux Red Hat 5 and SuSE 10


Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms