EM13c: OMSPatcher lspatches Command For 13c OMS Fails With Error "OMSPatcher failed with error code 255" (Doc ID 2130062.1)

Last updated on APRIL 29, 2016

Applies to:

Enterprise Manager Base Platform - Version 13.1.0.0.0 and later
Information in this document applies to any platform.

Symptoms

Listing patches for 13c OMS using "omspatcher lspatches" command fails with following error:
================
$ omspatcher lspatches
OMSPatcher Automation Tool
Copyright (c) 2015, Oracle Corporation. All rights reserved.

OMSPatcher version : 13.6.0.0.0
OUI version : 13.6.0.0.0
Running from : /u01/app/middle13c
Log file location : /u01/app/middle13c/cfgtoollogs/omspatcher/opatch2016-04-21_11-05-36AM_1.log

OMSPatcher failed with error code 255
================

From 13c_MIDDLEWARE_HOME/cfgtoollogs/omspatcher/opatch2016-04-21_11-05-36AM_1.log:
=========================
[Apr 21, 2016 11:05:36 AM] OMSPatcher invoked as follows: 'lspatches -invPtrLoc /u01/app/middle13c/oraInst.loc '
[Apr 21, 2016 11:05:36 AM] OMSPatcher version : 13.6.0.0.0
OUI version : 13.6.0.0.0
Running from : /u01/app/middle13c
Log file location : /u01/app/middle13c/cfgtoollogs/omspatcher/opatch2016-04-21_11-05-36AM_1.log
[Apr 21, 2016 11:05:36 AM] Starting LsPatchesSession at Thu Apr 21 11:05:36 EDT 2016
[Apr 21, 2016 11:05:41 AM] Finishing LsPatchesSession at Thu Apr 21 11:05:41 EDT 2016
[Apr 21, 2016 11:05:41 AM] Stack Description: java.lang.NoSuchMethodError: oracle.opatch.opatchsdk.OPatchPatch.getESysPatchID()Ljava/lang/String;
[Apr 21, 2016 11:05:41 AM] StackTrace: oracle.opatchauto.oms.ESysPatchMetadataCommit.getESysPatchIDsMap(ESysPatchMetadataCommit.java:989)
[Apr 21, 2016 11:05:41 AM] StackTrace: oracle.opatchauto.oms.LsPatchesSession.printInstalledPatchForAllHomes(LsPatchesSession.java:112)
[Apr 21, 2016 11:05:41 AM] StackTrace: oracle.opatchauto.oms.LsPatchesSession.process(LsPatchesSession.java:71)
[Apr 21, 2016 11:05:41 AM] StackTrace: oracle.opatchauto.oms.OMSPatchingSession.main(OMSPatchingSession.java:576)
[Apr 21, 2016 11:05:41 AM] StackTrace: oracle.opatchauto.oms.OPatchAuto.main(OPatchAuto.java:795)
=========================

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