I was recently upgrading an Exadata 126.96.36.199 DBBP6 to DBBP7 and as usual I went for the latest opatch version which was 188.8.131.52.7 (Apr 2015) as of that time.
After running the opatchauto apply or opatchauto apply -analyze I got the following error:
System Configuration Collection failed: oracle.osysmodel.driver.sdk.productdriver.ProductDriverException: java.lang.NullPointerException Exception in thread "main" java.lang.RuntimeException: java.io.IOException: Stream closed at oracle.opatchauto.gi.GILogger.writeWithoutTimeStamp(GILogger.java:450) at oracle.opatchauto.gi.GILogger.printStackTrace(GILogger.java:465) at oracle.opatchauto.gi.OPatchauto.main(OPatchauto.java:97) Caused by: java.io.IOException: Stream closed at java.io.BufferedWriter.ensureOpen(BufferedWriter.java:98) at java.io.BufferedWriter.write(BufferedWriter.java:203) at java.io.Writer.write(Writer.java:140) at oracle.opatchauto.gi.GILogger.writeWithoutTimeStamp(GILogger.java:444) ... 2 more opatchauto failed with error code 1.
This was a known problem caused by these bugs which are fixed in 184.108.40.206.8:
Bug 20892488 : OPATCHAUTO ANALYZE FAILING WITH GIPATCHINGHELPER::CREATESYSTEMINSTANCE FAILED BUG 20857919 - LNX64-121023GIPSU:APPLY GIPSU FAILED WITH SYSTEM CONFIGURATION COLLECTION FAILED
As 220.127.116.11.8 is not yet available the workaround is to use lower version of opatch 18.104.22.168.6 which can be downloaded from this note:
Opatchauto Gives "System Configuration Collection Failed" Message (Doc ID 2001933.1)
You might run into the same problem if you are applying 22.214.171.124.3 PSU.