Error when applying patch 34012040
I am applying patch 34012040 and receiving the following error below. I have updated Opatch to latest version, installed the latest version of Java 1.8.331 too. All Oracle services were disabled before applying the patch. I checked the log mentioned below, but didn't find anything useful. How do I resolve this?
Patching component oracle.com.fasterxml.jackson.dataformat.jackson.dataformat.xml, 2.9.9.0.0...
Patching component oracle.com.fasterxml.jackson.dataformat.jackson.dataformat.xml, 2.9.9.0.0...
ApplySession failed in system modification phase... 'ApplySession::apply failed: oracle.glcm.opatch.common.api.install.HomeOperationsException: A failure occurred while processing patch: 34012040'
Restoring "D:\Oracle\Middleware12\Oracle_Home" to the state prior to running NApply...