Reputation: 61
I have been using ojdbc14.jar earlier and now want to upgrade it to ojdbc7.jar for supporting oracle12c.
But while connecting server gives error for "oracle/security/pki/OraclePKIProvider".
If I add oraclepki.jar to the classpath server starts up properly without any error.
I am trying to figure out what special got added in ojdbc7.jar that its asking me to add oraclepki.jar, As with ojdbc14.jar it never asked me to add oraclepki into my classpath.
Does anyone know what changes with ojdbc7 that's causing this error and what can be done to avoid adding oraclepki on classpath?
Upvotes: 6
Views: 8878
Reputation: 5247
This is an issue recorded in the Oracle Support Database. If you have Oracle Support, you can find out more there. If not...
As Joseph Carroll states, removing the -XX:-UseSplitVerifier
from your command line Java arguments might solve your problem. The UseSplitVerifier argument basically tells Java to use an earlier, less stringent, byte code verifier (which was sometimes used to get older byte code instrumentation tools to work when upgrading from Java 6 to Java 7). Unfortunately, it caused some problems when upgrading certain tools from Java 7 to Java 8. Other things you might do include (per Oracle):
This article talks about why -XX:-UseSplitVerifier
was added for using Java 7 with Oracle. This article talks about using the –noverify
flag with Java 8 instead of -XX:-UseSplitVerifier
.
Upvotes: 0
Reputation: 539
Check your classpath and make sure you remove the following: (if it exists)
-XX:-UseSplitVerifier
Upvotes: 3