All Forums Connectivity
haranrk 1 post Joined 09/15
24 Sep 2015
ExceptionInInitializerError while connecting to Teradata through JDBC Driver

Hi,
I am trying to read data from Teradata DB in a MapReduce job using the JDBC Driver. I get the following exception/stack trace:
 
Provided connection string: jdbc:teradata://teradata/database=dbname
 

java.lang.ExceptionInInitializerError: null

at com.teradata.jdbc.jdbc.GenericTeraEncrypt.getTDgssVers ion(GenericTeraEncrypt.java:640) ~[na:na]

at com.teradata.jdbc.jdbc_4.parcel.ClientConfigParcel.toS tream(ClientConfigParcel.java:54) ~[na:na]

at com.teradata.jdbc.jdbc_4.io.TDPacket.addParcel(TDPacke t.java:98) ~[na:na]

at com.teradata.jdbc.jdbc.GenericLogonController.run(Gene ricLogonController.java:94) ~[na:na]

at com.teradata.jdbc.jdbc_4.TDSession.<init>(TDSession.ja va:208) ~[na:na]

at com.teradata.jdbc.jdk6.JDK6_SQL_Connection.<init>(JDK6 _SQL_Connection.java:35) ~[na:na]

at com.teradata.jdbc.jdk6.JDK6ConnectionFactory.construct SQLConnection(JDK6ConnectionFactory.java:25) ~[na:na]

at com.teradata.jdbc.jdbc.ConnectionFactory.createConnect ion(ConnectionFactory.java:179) ~[na:na]

at com.teradata.jdbc.jdbc.ConnectionFactory.createConnect ion(ConnectionFactory.java:169) ~[na:na]

at com.teradata.jdbc.TeraDriver.doConnect(TeraDriver.java :233) ~[1443013875589-0/:na]

at com.teradata.jdbc.TeraDriver.connect(TeraDriver.java: 159) ~[1443013875589-0/:na]

 

tomnolan 594 posts Joined 01/08
25 Sep 2015

The most likely cause of that error is that the tdgssconfig.jar file is missing from your classpath.
 
Both the terajdbc4.jar file and the tdgssconfig.jar file must be present on your classpath.
 

You must sign in to leave a comment.