Teradata connection error in jdbc -- DriverManager.getConnection()

I have issue while connecting to teradata DB from a sampel jave jdbc code.
the code is as below.
String url="jdbc:teradata://10.33.22.27/AMRROCD";
Class.forName("com.teradata.jdbc.TeraDriver");
Properties x = new Properties();
x.put("user","user123");
x.put("password","pwd123");
Connection con = DriverManager.getConnection (url, x);--> i am getting error at this line as
GSSException: Failure unspecified at GSS-API level (Mechanism level: UserFile parameter null)
at com.teradata.tdgss.jtdgss.TdgssParseXml.<init>(DashoA1*..)
at com.teradata.tdgss.jtdgss.TdgssConfigApi.<init>(DashoA1*..)
at com.teradata.tdgss.jtdgss.TdgssManager.<init>(DashoA1*..)
at com.teradata.tdgss.jtdgss.TdgssManager.getInstance(DashoA1*..)
at com.teradata.jdbc.jdbc.GenericTeraEncrypt.getGSSM(GenericTeraEncrypt.java:583)
at com.teradata.jdbc.jdbc.GenericTeraEncrypt.getConfig(GenericTeraEncrypt.java:601)
at com.teradata.jdbc.jdbc.GenericTeraEncrypt.getUserNameForOid(GenericTeraEncrypt.java:694)
at com.teradata.jdbc.AuthMechanism.<init>(AuthMechanism.java:50)
at com.teradata.jdbc.jdbc.GenericInitDBConfigState.action(GenericInitDBConfigState.java:105)
at com.teradata.jdbc.jdbc.GenericLogonController.run(GenericLogonController.java:49)
at com.teradata.jdbc.jdbc_4.TDSession.<init>(TDSession.java:195)
at com.teradata.jdbc.jdbc_3.ifjdbc_4.TeraLocalConnection.<init>(TeraLocalConnection.java:94)
at com.teradata.jdbc.jdbc.ConnectionFactory.createConnection(ConnectionFactory.java:55)
at com.teradata.jdbc.TeraDriver.doConnect(TeraDriver.java:216)
at com.teradata.jdbc.TeraDriver.connect(TeraDriver.java:149)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at dbValidation.main(dbValidation.java:25)
Error java.lang.NullPointerException
could anybody have an idea on this , its urgent for me to solve this.
I am able to execute the code in windows OS . this error is occourring in UNIX system

You'd have to pursue Teradata for support/help with their JDBC driver. This has nothing
to do with Oracle though...

Similar Messages

  • Unable to connect to Coudscape using DriverManager.getConnection(...)

    Hi All,
    I am trying to connect to a Cloudscape database.
    While the driver class - "com.ibm.db2j.jdbc.DB2jXADataSource" is getting loaded, DriverManager.getConnection(url) gives the follwoing exception:
    java.sql.SQLException: No suitable driver
    java.sql.DriverManager.getConnection(DriverManager.java:559)
    java.sql.DriverManager.getConnection(DriverManager.java:211)
    Can someone please tell me what could be the reason of my getting this error inspite of the driver class being loaded?
    Thank you.
    Regards,
    Sunil.

    Either the driver has not been loaded, or the connect string is wrong. Put debugging output immediately before and after the Class.forName() call to make sure it is executed succesfully. Then check the connect string.

  • Connection error in JDBC Adapter

    Hi All,
    I am using PI 7.1 and created a JDBC Receiver Comm. Channel.
    When I try to create an External Definition in ESR using the mentioned JDBC Channel, I get the following error:
    Serialized cause: com.sap.aii.mapping.lookup.LookupException: Connection to system RUNTIME using application RUNTIME lost. Detailed information: Error accessing "http://pidev.ndpl.com:50000/run/system/int?container=web" with user "PIREPUSER". Response code is 500, response message is "Internal Server Error"
    +     at com.sap.aii.ibrep.server.lookup.LookupServiceProvider$RemoteClientDelegator.call(LookupServiceProvider.java:122)+
    Please help!!!!
    regards,
    Piyush

    Hi Raj,
    I am not using any look up function.
    My only intention is to test the jdbc connection.
    I am usinng "SQL Server JDBC Driver 2.0" with PI 7.1 and MS SQL Server 2000.
    I also deployed the test appliction for jdbc test as per the note 1085539. It also gives the following error:
    Exception Occurred : The TCP/IP connection to the host 192.168.164.129, port 445 has failed. Error: "connect timed out. Verify the connection properties, check that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port, and that no firewall is blocking TCP connections to the port.".
    Exception Stack Trace : com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host 192.168.164.129, port 445 has failed. Error: "connect timed out. Verify the connection properties, check that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port, and that no firewall is blocking TCP connections to the port.".
         at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(SQLServerException.java:170)
    regards,
    Piyush
    Edited by: Piyush Mathur SAP on Nov 7, 2009 6:21 AM

  • 17008 Closed Connection on DriverManager.getConnection

    I am trying to connect with oci jdbc using the 9.2.0.1.0 client. Using -classpath %ORACLE_HOME%\jdbc\lib\ojdbc14.jar, and -Djava.library.path=%ORACLE_HOME%\bin. I am getting the error 17008 "Closed Connection" when I call DriverManager.getConnection. This code works perfectly well when using the thin driver. It's just the oci driver. I turned on DriverManager tracing, and got the stack trace below, anyone have any ideas what's wrong?
    DriverManager.getConnection("jdbc:oracle:oci:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.10.10.10)(PORT=1521)))(CONNECT_DATA
    =(SID=bogus)))")
    trying driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@174d93a]
    SQLException: SQLState(null) vendor code(17008)
    java.sql.SQLException: Closed Connection
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
    at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java:2348)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:477)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:346)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at com.primavera.infr.admin.CfgAccessMgr.createDBConnection(CfgAccessMgr.java:119)
    at com.primavera.infr.admin.CfgAccessMgr.<init>(CfgAccessMgr.java:104)
    at com.primavera.console.cfg.admintool.SetupInfoFrame.actionPerformed(SetupInfoFrame.java:913)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
    at java.awt.Component.processMouseEvent(Component.java:5100)
    at java.awt.Component.processEvent(Component.java:4897)
    at java.awt.Container.processEvent(Container.java:1569)
    at java.awt.Component.dispatchEventImpl(Component.java:3615)
    at java.awt.Container.dispatchEventImpl(Container.java:1627)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
    at java.awt.Container.dispatchEventImpl(Container.java:1613)
    at java.awt.Window.dispatchEventImpl(Window.java:1606)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    getConnection failed: java.sql.SQLException: Closed Connection

    DriverManager.getConnection("jdbc:oracle:oci:@(DESCRIP
    TION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.10.
    10.10)(PORT=1521)))(CONNECT_DATA
    =(SID=bogus)))")
    trying
    driver[className=oracle.jdbc.driver.OracleDriver,oracl
    e.jdbc.driver.OracleDriver@174d93a]
    SQLException: SQLState(null) vendor code(17008)
    java.sql.SQLException: Closed ConnectionI checked on the OTN website... to use OCI you need to have an Oracle client installation. Better stick to thin.
    Richard.

  • Problems with setting DriverManager.getConnection as a variable

    HI,
    I was wondering if someone could help me out with a problem i have. I am trying to read in the url, user name and password from an external file, and then add it to con = DriverManager.getConnection(IN HERE);
    I know that i can connect to the database and retrieve information by entering the connection in the following format: ("jdbc:mysql://url:3306/database","userName","password"). But i want to be able to read this line from an external file. When trying to do so i keep getting back the following error in the console window:
    Exception in thread "main" java.sql.SQLException: No suitable driver found for "jdbc:mysql://url:3306/database","userName","password"
    at java.sql.DriverManager.getConnection(DriverManager.java:602)
    at java.sql.DriverManager.getConnection(DriverManager.java:207)
    at fast.JDBC.openDB(JDBC.java:68)
    at fast.JDBC.main(JDBC.java:40)
    Any help with this would be appreciated!
    I am using the following code:
    public class JDBC { private Connection con; public static String filePath = "C:\\Users\\Documents\\Connector.txt"; public static String sql = ("SELECT * FROM users"); public String readFileAsString(String filePath) throws IOException { //Read connector from a file byte[] connectionDB = new byte[(int) new File(filePath).length()]; BufferedInputStream f = new BufferedInputStream(new FileInputStream(filePath)); f.read(connectionDB); return new String (connectionDB); }//Close readFileAsString public static void main (String[] Args) throws Exception { JDBC j = new JDBC(); j.openDB(); j.readDB(sql); //System.out.println(j.readFileAsString(filePath)); } /** * Process for creating a connection to a database * @return * @throws Exception */ public boolean openDB() throws Exception { boolean connected = false; JDBC j = new JDBC(); String connectionDB = j.readFileAsString(filePath); System.out.println(connectionDB); //Load Drive Class.forName("com.mysql.jdbc.Driver"); //Establish connection to database try { con = DriverManager.getConnection(connectionDB); } finally { connected = true; } return connected; }//close openDB

    This is what I did for my OracleDb which required that I download a driver from the Oracle Site. You install the driver and then link the driver through the DriverManager object. It looks like your using a local JDB database - which I have never had to make use of. Here is my code for the OraceXE database. Hope this helps.
    Public Class GenericCnn Object
    private String _urlDbCnn       = "";   // the JDBC url to the database
    private String _username       = "";   // a valid username to access the database
    private String _password       = "";   // a valid password to access the database
    private String _dbDriver       = "";   // a valid JDBC driver
    private Connection _cnn            = null; // this will be the active connection
    private String _sqlStatement   = null; // this will be the statement to execute against the database
    public DbConnection(){
    this("oracle.jdbc.OracleDriver",
    "jdbc:oracle:thin:@//192.168.15.200:1521/xe",
    "usernamehere,
    "passwordhere");
    } // constructor - nothing
    public DbConnection(String nwDbDriver, String nwDbURL,
    String nwDbUsername, String nwDbPassword){
    this.setDbDriver(nwDbDriver);
    this.setUrlDbCnn(nwDbURL);
    this.setUsername(nwDbUsername);
    this.setPassword(nwDbPassword);
    } // constructor - DbDriver, DbUrl, DbUser, DbPassword
    private void initializeConnection(){
    // try - get database driver
    try{
    DriverManager.registerDriver (new oracle.jdbc.OracleDriver());
    // try - initialize the database connection
    try{
    this._cnn = DriverManager.getConnection(this._urlDbCnn,
    this._username,
    this._password);
    }catch(SQLException e){
    ErrorTrap trap = new ErrorTrap(ErrorTrapMessage.DataConnectionNotIntitialized, e);
    } // catch - try and initialize the database connection
    }catch(SQLException e){
    ErrorTrap trap = new ErrorTrap(ErrorTrapMessage.DataConnectionDriverFailedToLoad, e);
    } // catch - try and get database driver
    } // method - OpenConnection
    .. executeTransaction -> calls initializeConnection
    .. executeQuery - > calls initialzieConnection
    .. properties
    Edited by: Monkey247 on Jan 26, 2010 10:27 AM

  • JDBC Connect error on Linux: UnsatisfiedLinkError

    Hi,
    I'm running one of the sample JDBC programs
    provided by Oracle (This installation is on
    Linux system). This simple program tries to
    connect to Database after accepting all the
    parameters. When I run this program, I get
    the following error.(I'm using Java2).
    Any ideas/solution(s) would be appreciated.
    Rgds,
    $ java JdbcCheckup
    Please enter information to test connection to the database
    user: scott
    password: tiger
    database (a TNSNAME entry): ORCL.localhost
    Connecting to the database...Connecting...
    Exception in thread "main" java.lang.UnsatisfiedLinkError: make_c_state
    at oracle.jdbc.oci7.OCIDBAccess.logon(OCIDBAccess.java:148)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:103)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:148)
    at java.sql.DriverManager.getConnection(DriverManager.java:453)
    at java.sql.DriverManager.getConnection(DriverManager.java:133)
    at JdbcCheckup.main(JdbcCheckup.java:43)
    null

    Hi again,
    now, as I found out how to get around the broken forum login, thank you, Dave, for your reply. You were right, the configuration was the problem.
    I did Naming.rebind("//localhost/MyServiceName", serviceObject); which worked well on Windows even when connecting remotely. On Linux I had to put the actual IP address of the machine to make it work, i.e. something such as Naming.rebind("//192.162.2.99/MyServiceName", serviceObject); ...simpler than I feared... ...just in case someone encounters similar trouble.
    Ulrich

  • TNS error in JDBC connectivity in win 7 64 bit

    Hi,
    i am a newbie,working in eclipse(j2ee/oracle db), everything is working fine in win XP,but with the same code wen i switched to win 7(64bit) in case of jdbc connectivity after loading the driver( Class.forName("sun.jdbc.odbc.JdbcOdbcDriver") statement ) its showing (TNS:could not resolve the connect identifier specified) error in the line( DriverManager.getConnection(url, username, password) statement)
    plz help.

    You got mixed up somewhere. Don't use the ODBC driver, use a proper Oracle driver (ojdbc, note the added 'j'). On the Oracle website you can find the driver and guides how to properly use it.

  • MySQL JDBC connection error

    Hi!
    I am trying to conect to MySql database form a jsp page, but I get error. I am using the following:
    1. MySql dababase installed in C:/mysql
    2. Tomcat installed in c:/tomcat
    3. JDBC driver "mm.mysql-2.0.14-bin.jar" installed in c:\tomcat\lib
    Here is my code:
    <%@ page import="java.sql.*" %>
    <%
    String connectionURL = "jdbc:mysql://localhost:3306/gixpro1?user=username&password=pwd";
    Connection connection = null;
    Statement statement = null;
    ResultSet rs = null;
    %>
    <html><body>
    <%
    Class.forName("org.gjt.mm.mysql.Driver").newInstance();
    connection = DriverManager.getConnection(connectionURL, "", "");
    statement = connection.createStatement();
    rs = statement.executeQuery("SELECT * FROM gixpro1");
    while (rs.next()) {
    out.println(rs.getString("name")+"<br>");
    rs.close();
    %>
    </body></html>
    Here is my error:
    Internal Servlet Error:
    javax.servlet.ServletException: org.gjt.mm.mysql.Driver
    at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:462)
    at jsp.test_4._jspService(test_4.java:89)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java)
    at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:570)
    at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
    at org.apache.tomcat.core.Handler.service(Handler.java:235)
    at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:481)
    at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
    at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
    at java.lang.Thread.run(Thread.java:484)
    Root cause:
    java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
    at org.apache.tomcat.util.depend.DependClassLoader12Impl.loadClassInternal1(DependClassLoader12.java:240)
    at org.apache.tomcat.util.depend.DependClassLoader12Impl$1.run(DependClassLoader12.java:109)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.tomcat.util.depend.DependClassLoader12Impl.loadClass(DependClassLoader12.java:107)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:120)
    at jsp.test_4._jspService(test_4.java:68)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java)
    at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:570)
    at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
    at org.apache.tomcat.core.Handler.service(Handler.java:235)
    at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:481)
    at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
    at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
    at java.lang.Thread.run(Thread.java:484) at org.apache.tomcat.util.depend.DependClassLoader12Impl$1.run(DependClassLoader12.java:109)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.tomcat.util.depend.DependClassLoader12Impl.loadClass(DependClassLoader12.java:107)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:120)
    at jsp.test_3._jspService(test_3.java:69)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java)
    at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:570)
    at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
    at org.apache.tomcat.core.Handler.service(Handler.java:235)
    at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:481)
    at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
    at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
    at java.lang.Thread.run(Thread.java:484)

    Hi!
    I also have the same problem (I also test the sample in this case but still got the same error. When I use a standard java client then I can acess mySQL database without any problem, this just occurs when trying to access the database from a JSP page.
    CLASSPATH=
    C:\Program\RDBMS\mySQL\mysql-connector-java-2.0.14\mysql-connector-java-2.0.14-bin.jar
    Please need som advice on this.
    Regards
    Tobbe
    See errormessage below
    javax.servlet.ServletException: org.gjt.mm.mysql.Driver
    at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:463)
    at org.apache.jsp.TestMySQL$jsp._jspService(TestMySQL$jsp.java:91)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    root cause
    java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1320)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1169)

  • JDBC Connection Error with Sql Server 2005

    Hi
    I am trying to connect the Sql Server 2005 thru jdbc but I am getting the following error.
    SQLException: The TCP/IP connection to the host usselect.com/x-logs, port 1433 has failed. Error: usselect.com/x-logs. Please verify the connection properties and check that a SQL Server instance is running on the host and accepting TCP/IP connections at the port, and that no firewall is blocking TCP connections to the port.
    I am using sqljdbc4.jar (driver)
    import java.sql.Connection; import java.sql.DatabaseMetaData; import java.sql.DriverManager; import java.sql.SQLException; public class testdb {     public static void main(String s[]){         String userid="xxxx", password = "xxxxx";         String url = "jdbc:sqlserver://usselect.com/x-logs:1433";         Connection con = null;         try {             Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");         }catch(java.lang.ClassNotFoundException e) {             System.err.print("ClassNotFoundException: ");             System.err.println(e.getMessage());         }         try {             con = DriverManager.getConnection(url,userid,password);         } catch(SQLException ex) {             System.err.println("SQLException: " + ex.getMessage());         }         if(con!= null){             System.out.println("Got Connection."+con);         }else{             System.out.println("Could not Get Connection");         }     } }
    Please advise.

    srinu1198 wrote:
    By using Jdbc thin driver are we able to connect to mssql 2005 through windows authentication or not? "thin driver" refers to a specific Oracle driver.
    Far as I know both the current (not older) MS driver supports windows auth. Certianly the jTDS driver does.
    If yes what is the procedure. One starts by reading the docs. If necessary then one googles.

  • JDBC connection errors

    I got the following errores. Does anyone know what it is about?
    DriverManager.initialize: jdbc.drivers = null
    JDBC DriverManager initialized
    registerDriver: driver[className=com.ibm.as400.access.AS400JDBCDriver,AS/400 Toolbox for Java JDBC Driver]
    DriverManager.getConnection("jdbc:as400:222.92.7:3180;libraries=xxxxxx,*LIBL")
    trying driver[className=com.ibm.as400.access.AS400JDBCDriver,AS/400 Toolbox for Java JDBC Driver]
    SQLWarning: reason(Extra URL elements are ignored.) SQLstate(01H10) vendor code(-99999)
    SQLException: SQLState(HY001) vendor code(1301)
    java.sql.SQLException: [PWS0082] 1 library(s) not added to the library list.
    at com.ibm.as400.access.JDError.throwSQLException(JDError.java:351)
    at com.ibm.as400.access.JDLibraryList.addOnServer(JDLibraryList.java:179)
    at com.ibm.as400.access.AS400JDBCConnection.setProperties(AS400JDBCConnection.java:1576)
    at com.ibm.as400.access.AS400JDBCConnection.setProperties(AS400JDBCConnection.java:1499)
    at com.ibm.as400.access.AS400JDBCDriver.initializeConnection(AS400JDBCDriver.java:477)
    at com.ibm.as400.access.AS400JDBCDriver.connect(AS400JDBCDriver.java:253)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at com.sybase.powerbuilder.jdbc.PbjdbcSessionBase.CreateSession(PbjdbcSessionBase.java:203)
    getConnection failed: java.sql.SQLException: [PWS0082] 1 library(s) not added to the library list.
    Java PbjdbcSession::CreateSession SQLException thrown
    ------->SQLState = HY001
    ------->ErrorCode = 1301
    ------->Message = [PWS0082] 1 library(s) not added to the library list.
    Thank You.
    Jen

    adamsdavis wrote:
    Hi Jen
    Did you ever resolve this issue? Im experiencing the same thing.
    - 2009-02-09 16:26:49,321 WARN [org.hibernate.util.JDBCExceptionReporter] SQL Warning: 1301, SQLState: HY001
    - 2009-02-09 16:26:49,321 WARN [org.hibernate.util.JDBCExceptionReporter] [PWS0082] 3 library(s) not added to the library list.
    ThanksI think you need to sit down and carefully read the documentation for your driver. If your problem is actually the same as the person's from a year ago it seems pretty clear that the URL is actually not correct.
    So look into that.

  • JDBC: java.lang.ExceptionInInitializerError on DriverManager.getConnection

    I've been developing an app on Linux and had the JDBC connector working fine, connecting to mySQL.
    Now when I try to run it on Solaris 2.8 with Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05), I get the following error trying a connect...
    Exception in thread "main" java.lang.ExceptionInInitializerError
    at com.mysql.jdbc.Connection.<init>(Connection.java:1175)
    at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
    at java.sql.DriverManager.getConnection(DriverManager.java:525)
    at java.sql.DriverManager.getConnection(DriverManager.java:193)
    at ps.DataCollector.getData(DataCollector.java:46)
    at ps.PacketSchedular.main(PacketSchedular.java:30)
    Caused by: java.lang.RuntimeException: Unable to initialize character set mapping tables
    at com.mysql.jdbc.CharsetMapping.<clinit>(CharsetMapping.java:73)
    ... 6 more
    my java file is ....
    public class DataCollector {
    private String database = "oui";
    private String user = "user";
    private String passwd = "password";
    private int portNum = 3306;
    public DataCollector () {
    public void getData() {
    Statement stmt = null;
    Connection conn = null;
    ResultSet rs = null;
    try {
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    conn = DriverManager.getConnection("jdbc:mysql://127.0.0.1:3306/" + database + "?port=" + portNum + "&user=" + user + "&password=" + passwd + "&autoReconnect=false");
    etc
    etc
    I'm using the mysql connector 'mysql-connector-java-3.1.8-bin.jar' and i've also downgraded to an earlier release which had no positive effect.
    Google (unusually) has given me no hints!
    Any suggestions as to what may be causing this?
    Thanks

    I can connect to the server locally and also telnet to port 3306 and get a response!
    telnet localhost 3306Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    4
    5.0.18LIVU'`/hA,I*7tf~jx>iu2
    I use this same server with Perl every day (although Perl is using a socket to connect).
    I've searched pretty much everywhere for a fix - but to no avail.
    Thanks

  • Oracle JDBC Connection Error ?

    Hi all .. i have JDeveloper9.0 and oracle database i have created the following page (which is the first !) to test the connection to oracle database,
    <%@ page contentType="text/html;charset=WINDOWS-1252"%>
    <%@ page import="java.sql.*"%>
    <%@ page import="oracle.jdbc.driver.*"%>
    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=WINDOWS-1252">
    <META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
    <TITLE>
    Hello World
    </TITLE>
    </HEAD>
    <BODY>
    <%
    out.println("good things comes for the ones whos wait");
    // testing Database Connection
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@10.0.24.23:1513:test","ap1s","ap1s");
    Statement st = conn.createStatement();
         ResultSet rs= st.executeQuery("select * from XX_CNSLTNT");
         while(rs.next())
    System.out.println(rs.getString(1));
    %>
    <form method="POST" action="untitled1.jsp">
    <p>
    <input type="text" name="T1" size="20">
    <input type="submit" value="Submit" name="B1">
    <input type="reset" value="Reset" name="B2">
    </p>
    </form>
    </BODY>
    </HTML>
    and its generating me this error, when i compile :
    Error: cannot access directory oracle\jdbc\driver; verify that directory is reachable from classpath and/or sourcepath
    so, does any one have a clue of the problem is ??
    thanx in advance

    Is ojdbc14.jar or classes12.jar in the Classpath?

  • (ORA-12505) JDBC - Oracle connectivity Error

    Hi
    Experts
    I am SAP developer.
    I am trying to connecting remote server through webDynpro ( SAP programming Tool.) through JDBC. I can directly get connected to Oracle server through SQL plus.
    My code to establish connection is
    conn =DriverManager.getConnection ("jdbc:oracle:thin:@132.132.48.4:1521:orclahd.adaniahd.com","scott", "tiger");
    and i am getting exception.
         java.sql.SQLException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor The Connection descriptor used by the client was: 132.132.48.4:1521:orclahd.adaniahd.com

    your database is not registered with the listener.
    you need to go to the server and check the status of the listener to see if the database service is registered. If not you need to do it manually.
    LSNRCTL status

  • Getting an error in JDBC mySQL Connection

    Hi,
    I am creating JDBC mySQL Connection error.
    The eror messsage is
    Incorrect name parameter jdbc:mysql://10.114.16.70:3306/kaushikb root,pass in naming operation.where root is the username and pass is the password and kaushikb is the database name.
    I am entering the tablename as: emptable.
    Regards
    Taton
    Edited by: Taton on Dec 11, 2008 3:15 PM

    Let me guess: you did
    getConnection("jdbc:mysql://10.114.16.70:3306/kaushikb root,pass");rather than
    getConnection("jdbc:mysql://10.114.16.70:3306/kaushikb", "root", "pass");

  • JDBC Connect Error,Why?

    An unexpected exception has occurred processing your request
    Message: no ocijdbc10 in java.library.path
    Stack Trace: javax.servlet.ServletException: no ocijdbc10 in java.library.path at org.apache.beehive.netui.pageflow.internal.DefaultExceptionsHandler.handleException(DefaultExceptionsHandler.java:169) at org.apache.beehive.netui.pageflow.FlowController.handleException(FlowController.java:268) at org.apache.beehive.netui.pageflow.FlowController.internalExecute(FlowController.java:450) at org.apache.beehive.netui.pageflow.PageFlowController.internalExecute(PageFlowController.java:245) at org.apache.beehive.netui.pageflow.FlowController.execute(FlowController.java:316) at org.apache.beehive.netui.pageflow.internal.FlowControllerAction.execute(FlowControllerAction.java:48) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processActionPerform(PageFlowRequestProcessor.java:1948) at com.bea.console.internal.ConsolePageFlowRequestProcessor.processActionPerform(ConsolePageFlowRequestProcessor.java:188) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processInternal(PageFlowRequestProcessor.java:590) at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:840) at org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:607) at org.apache.beehive.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:135) at com.bea.console.internal.ConsoleActionServlet.process(ConsoleActionServlet.java:241) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) at com.bea.console.internal.ConsoleActionServlet.doGet(ConsoleActionServlet.java:130) at org.apache.beehive.netui.pageflow.PageFlowUtils.strutsLookup(PageFlowUtils.java:927) at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.executeAction(ScopedContentCommonSupport.java:571) at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.processActionInternal(ScopedContentCommonSupport.java:122) at com.bea.portlet.adapter.scopedcontent.PageFlowStubImpl.processAction(PageFlowStubImpl.java:98) at com.bea.netuix.servlets.controls.content.NetuiContent.raiseScopedAction(NetuiContent.java:149) at com.bea.netuix.servlets.controls.content.NetuiContent.raiseScopedAction(NetuiContent.java:108) at com.bea.netuix.servlets.controls.content.NetuiContent.handlePostbackData(NetuiContent.java:223) at com.bea.netuix.nf.ControlLifecycle$2.visit(ControlLifecycle.java:169) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:290) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:300) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:300) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:300) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:300) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:300) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:300) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:300) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:300) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:300) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:300) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:300) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:300) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:300) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:300) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:300) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:300) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:300) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:300) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:300) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:300) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:300) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:300) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:300) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:300) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:300) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:300) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:300) at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:126) at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:105) at com.bea.netuix.nf.Lifecycle.runInbound(Lifecycle.java:173) at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:137) at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:327) at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:190) at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:144) at com.bea.netuix.servlets.manager.SingleFileServlet.service(SingleFileServlet.java:206) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at weblogic.servlet.AsyncInitServlet.service(AsyncInitServlet.java:124) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3151) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207) at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)

    Hi,
    try this connection
    con=DriverManager.getConnection("jdbc:oracle:thin:@IP:1521:SID","system","manager");
    V.

Maybe you are looking for

  • Problem with page title language

    Hi all, I have several iViews of level 2 and I need to navigate from one iView to another. When I do it just by mouse clicking in navigation area - everything is allright. But when I navigate by means of WDPortalNavigation.navigateRelative method - I

  • Install proprietary drivers for ATI HD4850, and I cant change my resol

    I installed the ATI drivers from AUR, and now I cannot change my screen resolution, i get this error: I have 2x ATI HD4850 Section "ServerLayout" Identifier "aticonfig Layout" Screen 0 "aticonfig-Screen[0]-0" 0 0 Screen 1 "aticonfig-Screen[0]-1" Righ

  • Table VBKD Urgent Query

    Hi All There is a field in VBKD table AKKUR - LettOfCredRate. This is not visible in the sales order. How this field is populated and whats the significance of this field? i could not get much information in F1 help as well. This is affecting to crea

  • Processing class 10 documentation

    Hi Experts,   Can any one give the over all idea about processing class10. How it will effect the payroll? What are the effects in /801 and so on? If i give 1 in P class 10, what will be the effect and if 2 and so on. I could not found any documentat

  • How to use the system recovery after add another SSD?

    Dear all, I got a Zbook14 with 1TB HDD with Windows 7 in default. Soon after I received it, I added an M.2 256Gb SSD and migrated my system drive to the SSD.  After an malfunction of the HP Client Security that encrypted my system drive (in SSD). I u