After upgrading the backend JBOSS database from Oracle 11g to 12c, the application fails to start with exceptions similar to this:
org.jboss.util.NestedSQLException: Unable to get managed connection for hisDatasource; - nested throwable: (javax.resource.ResourceException: Unable to get managed connection for hisDatasource)
Caused by: java.lang.VerifyError: Stack map does not match the one at exception handler 1645
oracle/security/o5logon/a.a([B[B)V @1645: dup
This is caused by a conflict with the Oracle security classes.
This can be resolved by upgrading to the 10.x Java Agent
Create a custom pbd and skip all the classes that start with oracle/security package to prevent this issue.
Note there is a dot at the end of the line.