Problem with Linux TeraJDBC.03.02.00.03 driver.

Connectivity
Fan

Problem with Linux TeraJDBC.03.02.00.03 driver.

Hi,
Facing some error with TeraJDBC driver.
I have Linux 7.2 machine with JDK 1.5 installed. Recently i installed TeraJDBC.03.02.00.03 driver. Through sample java files,provided with the installable, I was able to connect to the database and test all the DDL/DML statements.
I am getting errors when trying to connect to the database through JSP.
The code is just trying to establish a connection and insert a record in the database.
Tomcat5.5 is installed on the system.

Classpath is set and is : CLASSPATH=.:/usr/local/TeraJDBC:/usr/local/TeraJDBC/tdgssjava.jar:/usr/local/TeraJDBC/terajdbc4.jar:/usr/local/jdk1.5.0_05/lib/tools.jar:/usr/local/jdk1.5.0_05/lib/dt.jar

This is the error :

exception
-----------
org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause
-----------
java.lang.NullPointerException
com.ncr.teradata.jtdgss.TdgssConfigApi.GetMechanisms(DashoA13*..)
com.ncr.teradata.jtdgss.TdgssManager.(DashoA13*..)
com.ncr.teradata.jtdgss.TdgssManager.getInstance(DashoA13*..)
com.ncr.teradata.TeraEncrypt.getGSSM(TeraEncrypt.java:551)
com.ncr.teradata.TeraEncrypt.getClientDefaultMech(TeraEncrypt.java:678)
com.ncr.teradata.jdbc_4.statemachine.LogonController.run(LogonController.java:77)
com.ncr.teradata.jdbc_4.TDSession.connect(TDSession.java:119)
com.ncr.teradata.jdbc_3.ifjdbc_4.TeraLocalConnection.(TeraLocalConnection.java:128)
com.ncr.teradata.TeraDriver.connect(TeraDriver.java:211)
java.sql.DriverManager.getConnection(DriverManager.java:525)
java.sql.DriverManager.getConnection(DriverManager.java:171)
org.apache.jsp.myfirst_jsp._jspService(org.apache.jsp.myfirst_jsp:85)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

Thanks in advance for ur help.
3 REPLIES
N/A

Re: Problem with Linux TeraJDBC.03.02.00.03 driver.

I am getting similar error. This is simple java program to connect and run select from teradata db. I have tgdssjava.jar, and terajdbc4.jar files on class path. But I cannot find the tdgssconfig.jar. Is this error related to missing jar?
java.lang.IllegalArgumentException: InputStream cannot be null
at javax.xml.p****rs.DocumentBuilder.p****(DocumentBuilder.java:94)
at com.ncr.teradata.jtdgss.TdgssP****Xml.p****(DashoA13*..)
at com.ncr.teradata.jtdgss.TdgssConfigApi.(DashoA13*..)
at com.ncr.teradata.jtdgss.TdgssManager.(DashoA13*..)
at com.ncr.teradata.jtdgss.TdgssManager.getInstance(DashoA13*..)
at com.ncr.teradata.TeraEncrypt.getGSSM(TeraEncrypt.java:551)
at com.ncr.teradata.TeraEncrypt.getClientDefaultMech(TeraEncrypt.java:67
8)
at com.ncr.teradata.jdbc_4.statemachine.LogonController.run(LogonControl
ler.java:77)
at com.ncr.teradata.jdbc_4.TDSession.connect(TDSession.java:113)
at com.ncr.teradata.jdbc_3.ifjdbc_4.TeraLocalConnection.(TeraLocal
Connection.java:128)
at com.ncr.teradata.TeraDriver.connect(TeraDriver.java:211)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at Test.getTeradataConnection(AkamaiImageTest.java:158)
Enthusiast

Re: Problem with Linux TeraJDBC.03.02.00.03 driver.

do anybody have any updates on this issue , i am getting similar error and idea how to solve this Please help this is urgent for me
Teradata Employee

Re: Problem with Linux TeraJDBC.03.02.00.03 driver.

Yes, you need tdgssconfig.jar on your classpath also. That exception is due to tdgssconfig.jar not being available -- either not listed on your classpath, or the file is not present.