My Oracle Support Banner

Applying a One-off Patch on Portal 11g gets Invocation Returned Error... '', Return Code = 1 (Doc ID 1491602.1)

Last updated on OCTOBER 10, 2023

Applies to:

Portal - Version to [Release FMW11g]
Information in this document applies to any platform.


When trying to install any one-off Patch, the following error is seen from the Opatch utility:

Return Code = 1 error

This may happen when attempting to apply new one-off patches after a new Patchset was applied.

From opatch.log file:

Deleted Directory
/<MIDDLEWARE_HOME>/as_1/portal/patch/oneoffs/Temp/14392181 to
Copying file

Deleted Directory
ReaderThread::run(): Stream InputStream reading completed
ReaderThread::run(): Stream ErrorStream reading completed
SystemCall:RuntimeExec(cmds, runDir): process.waitFor() is OVER
SystemCall:RuntimeExec(cmds, runDir): Error stream thread joined successfully
SystemCall:RuntimeExec(cmds, runDir): Input stream thread joined successfully

Command invocation returned Error... '', Return Code = 1
Execution of PRE script failed, with return value = 1

The same error happens even with the latest OPatch release installed and the mandatory Patch:15844859 successfully installed as suggested in Note 1443292.1 - Recommended Patches for Oracle Portal 11g.

The apply_xxx.log will also contain errors such as:

OUI-67073:OPatch failed: ApplySession failed in system modification phase
OUI-67133:Execution of PRE script failed, with return value = 1

It can happen with a variety of patch combinations.


Recently applied a new Patchset.

For example moved from to or


To view full details, 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 a vibrant support community of peers and Oracle experts.