All Forums Connectivity
sharad 3 posts Joined 11/05
28 Nov 2005
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.jarThis is the error :exception -----------org.apache.jasper.JasperException org.apache.jasper.servlet.JspServletWrapper.service(Js pServletWrapper.java:370) org.apache.jasper.servlet.JspServlet.serviceJspFile(Js pServlet.java:291) org.apache.jasper.servlet.JspServlet.service(JspServle t.java:241) javax.servlet.http.HttpServlet.service(HttpServlet.jav a:802)root cause -----------java.lang.NullPointerException com.ncr.teradata.jtdgss.TdgssConfigApi.GetMechanisms(D ashoA13*..) com.ncr.teradata.jtdgss.TdgssManager.(DashoA13*..) com.ncr.teradata.jtdgss.TdgssManager.getInstance(Dasho A13*..) com.ncr.teradata.TeraEncrypt.getGSSM(TeraEncrypt.java: 551) com.ncr.teradata.TeraEncrypt.getClientDefaultMech(Tera Encrypt.java:678) com.ncr.teradata.jdbc_4.statemachine.LogonController.r un(LogonController.java:77) com.ncr.teradata.jdbc_4.TDSession.connect(TDSession.ja va: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.jav a:525) java.sql.DriverManager.getConnection(DriverManager.jav a:171) org.apache.jsp.myfirst_jsp._jspService(org.apache.jsp. myfirst_jsp:85) org.apache.jasper.runtime.HttpJspBase.service(HttpJspB ase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.jav a:802) org.apache.jasper.servlet.JspServletWrapper.service(Js pServletWrapper.java:322) org.apache.jasper.servlet.JspServlet.serviceJspFile(Js pServlet.java:291) org.apache.jasper.servlet.JspServlet.service(JspServle t.java:241) javax.servlet.http.HttpServlet.service(HttpServlet.jav a:802)Thanks in advance for ur help.

durga9 1 post Joined 05/06
17 May 2006

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:678) at com.ncr.teradata.jdbc_4.statemachine.LogonController.run(LogonController.java:77) at com.ncr.teradata.jdbc_4.TDSession.connect(TDSession.java:113) at com.ncr.teradata.jdbc_3.ifjdbc_4.TeraLocalConnection.(TeraLocalConnection.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)

kalatp 6 posts Joined 05/10
01 Jun 2010

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

tomnolan 594 posts Joined 01/08
01 Jun 2010

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.

You must sign in to leave a comment.