When using a Java Stored Procedure from within the Oracle 11g database, an attempt to open a connection to Teradata using the JDBC driver version 14 throws the following error.
Exception in thread "Root Thread" java.lang.NullPointerException
First, the Oracle Database server-side JVM for Oracle Java Stored Procedures is not one of the supported environments for the Teradata JDBC Driver.
Having said that, this problem corresponds to a known issue -- JDBC DR 167176 Avoid NullPointerException at logon when System property "java.vm.info" is not set
We will be shipping a Teradata JDBC Driver change to address that issue soon. In the meantime, you can work around this Oracle JVM issue by setting the System property "java.vm.info" yourself to some value -- the actual value doesn't matter; it simply needs to be non-null.
System.setProperty("java.vm.info", "Oracle Database JVM");