OPatch apply or rollback fails with com.oracle.cie.gdr.libraries.LibraryException: com.oracle.cie.gdr.utils.GdrException: Failed to apply xml diff to component definition error in WebLogic PSU

(Doc ID 2088228.1)

Last updated on MARCH 08, 2018

Applies to:

Oracle WebLogic Server - Version 12.1.3.0.0 and later
Information in this document applies to any platform.

Symptoms

OPatch fails with the following errors while applying any WebLogic Patch Set Update (PSU):

Error during Update inventory for apply phase ] Detail: OUI-67073:OPatch failed: ApplySession failed in system modification phase... 'ApplySession::apply failed: Check if library regeneration is needed with error message: com.oracle.cie.gdr.libraries.LibraryException: com.oracle.cie.gdr.utils.GdrException: Failed to apply xml diff to component definition /oracle/Middleware/Oracle_Home/inventory/Components/oracle.wls.libraries/12.1.3.0.0/compDef.xml'

Instead of applying the new PSU to override the old PSU, even if we try to rollback previous WLS PSU patches in a separate session, we see the following errors :

[ Error during Update inventory for rollback Phase]. Detail: RollbackSession failed: RollbackSession failed in system modification phase... 'Check if library regeneration is needed with error message: com.oracle.cie.gdr.libraries.LibraryException: com.oracle.cie.gdr.utils.GdrException: Failed to apply xml diff to component definition /oracle/Middleware/Oracle_Home/inventory/Components/oracle.wls.libraries/12.1.3.0.0/compDef.xml'

The above sample errors are for a WLS 12.1.3 PSU but the issue can be seen in older WLS PSU version 12.1.2 or newer versions 12.2.1, 12.2.1.1, 12.2.1.2 or upcoming releases. The expected behavior is to see Opatch detect the previous PSU patch applied as a subset and rollback and apply the new automatically.

In some cases separately rolling back the old and applying the new resolves the issue, but not in all cases.

 

Changes

 

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