Got error like this when trying to connect to Oracle DB using ojdbc14.jar
java.lang.ArrayIndexOutOfBoundsException: -1 at oracle.jdbc.driver.T4CTTIoauthenticate.setSessionFields(T4CTTIoauthenticate.java:972)
It is because of security policy of JRE, I have to change the policy by editing java.policy
file