JDBC Informix Driver Error -908

I have this problem of connecting to a informix database server. I have successfully loaded the database driver with the following code:
Class.forName("com.informix.jdbc.IfxDriver");
and does not return any error, but when connecting to the database with the following code:
private Connection con;
con = DriverManager.getConnection(url);
where the url is a correct connection string. It returns an exception error -908 saying that I cannot connect to the specified server.
Please anyone I need help on this.
Thanks
Ice

Don't know if you have already resolved the problem, but connections from applets (in a browser) can only be made to the hosting server.
If the database is on another server, the security context will reject the connetion.
If this is your problem, the informix jdbc dist has a proxy app (located in the proxy dir of the jdbc intall) that can be installed in the web server to redirect connections - at least that is my understanding, as I only glanced at the docs about it.

Similar Messages

  • ClassNotFoundException: weblogic/jdbc/pool/Driver

              Hi,
              I was able to run the sql example in the jsp\tagext directory.
              The ConnectionTag tag contains basically code like:
              Class.forName("weblogic.jdbc.pool.Driver").newInstance();
              which works fine.
              Next, I moved the code into a utility package, which I
              compiled into the public_html\WEB-INF\classes directory. This
              code is called from within a servlet.
              Strangely enough, when I run the servlet, I get the
              ClassNotFoundException: weblogic/jdbc/pool/Driver error.
              It is as if the servlet does not have access to the
              weblogic.jdbc.pool.Driver class while the tag library does.
              What am I doing wrong?
              Thanks,
              Vladimir
              

    You must include the path to jdbc driver in the script wich you start the
              server.
              WEBLOGIC_CLASSPATH
              vladimir <[email protected]> escribió en el mensaje de noticias
              39bcdf0c$[email protected]..
              >
              > Hi,
              >
              > I was able to run the sql example in the jsp\tagext directory.
              > The ConnectionTag tag contains basically code like:
              >
              > Class.forName("weblogic.jdbc.pool.Driver").newInstance();
              >
              > which works fine.
              >
              > Next, I moved the code into a utility package, which I
              > compiled into the public_html\WEB-INF\classes directory. This
              > code is called from within a servlet.
              >
              > Strangely enough, when I run the servlet, I get the
              > ClassNotFoundException: weblogic/jdbc/pool/Driver error.
              > It is as if the servlet does not have access to the
              > weblogic.jdbc.pool.Driver class while the tag library does.
              >
              > What am I doing wrong?
              >
              > Thanks,
              > Vladimir
              >
              

  • Repost: ClassNotFoundException: weblogic/jdbc/pool/Driver

              Hi,
              I was able to run the sql example in the jsp\tagext directory. The ConnectionTag tag contains basically code like:
              Class.forName("weblogic.jdbc.pool.Driver").newInstance();
              which works fine.
              Next, I moved the code into a utility package, which I compiled into the public_html\WEB-INF\classes directory. This code is called from within a servlet.
              Strangely enough, when I run the servlet, I get the ClassNotFoundException: weblogic/jdbc/pool/Driver error. It is as if the servlet does not have access to the weblogic.jdbc.pool.Driver class while the tag library does.
              What am I doing wrong?
              Thanks, Vladimir
              

              Hi,
              I was able to run the sql example in the jsp\tagext directory. The ConnectionTag tag contains basically code like:
              Class.forName("weblogic.jdbc.pool.Driver").newInstance();
              which works fine.
              Next, I moved the code into a utility package, which I compiled into the public_html\WEB-INF\classes directory. This code is called from within a servlet.
              Strangely enough, when I run the servlet, I get the ClassNotFoundException: weblogic/jdbc/pool/Driver error. It is as if the servlet does not have access to the weblogic.jdbc.pool.Driver class while the tag library does.
              What am I doing wrong?
              Thanks, Vladimir
              

  • WebLogic 8.1 SP2 bug in JDBC Pool creation for IBM Informix Driver - Type 4 XA

    Funny business happens when you create a JDBC Connection Pool with IBM's Informix Driver - Type 4 XA under WebLogic 8.1 SP2
    I have included the ifxjdbc.jar and ifxjdbcx.jar in the classpath in the the extENV.cmd, but I kept getting errors on connection:
    weblogic.common.ResourceException: 0:com.informix.asf.IfxASFException: Attempt to connect to database server (myhost) failed. - with nested exception:
    [weblogic.common.ResourceException: com.informix.asf.IfxASFException: Attempt to connect to database server (myhost) failed.]
    at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1180)
    at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1040)
    Then I realised the WebLogic console was swapping these properties:
    serverName=ol_myserver
    ifxIFXHOST=myhost
    Terrible forehead-slap!
    I rechecked and this what happens:
    Informix Server: -> ifxIFXHOST
    Host Name: -> serverName
    But the URL is correct.
    jdbc:informix-sqli://myhost:1543/mydb:informixServer=ol_myserver
    Notice that the exception message says:
    Attempt to connect to database server (myhost) failed.
    Alpha

    Alpha Lau wrote:
    Funny business happens when you create a JDBC Connection Pool with IBM's
    Informix Driver - Type 4 XA under WebLogic 8.1 SP2
    I have included the ifxjdbc.jar and ifxjdbcx.jar in the classpath in the
    the extENV.cmd, but I kept getting errors on connection:
    weblogic.common.ResourceException: 0:com.informix.asf.IfxASFException:
    Attempt to connect to database server (myhost) failed. - with nested
    exception:
    [weblogic.common.ResourceException: com.informix.asf.IfxASFException:
    Attempt to connect to database server (myhost) failed.]
    at
    weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1180)
    at
    weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1040)
    Then I realised the WebLogic console was swapping these properties:
    serverName=ol_myserver
    ifxIFXHOST=myhost
    Terrible forehead-slap!
    I rechecked and this what happens:
    Informix Server: -> ifxIFXHOST
    Host Name: -> serverName
    But the URL is correct.
    jdbc:informix-sqli://myhost:1543/mydb:informixServer=ol_myserver
    Notice that the exception message says:
    Attempt to connect to database server (myhost) failed.
    AlphaHi. If the URL has a particular property value, then don't add the property
    redundantly in the pool's properties.
    Joe

  • Informix ODBC driver error while creating a view in Designer

    I nedd to ceate a view in a universe (Business Objects XI R2) that is connected to an Informix database. I use the 3.34 ODBC Informix driver.
    When I write the select statement (select column from table) and check the syntax I have the following error:
    "Exception: DBD, [Informix][Informix ODBC Driver][Informix]A syntax error has occurred.State: 42000"
    Is there anybody who has solved this problem??
    Thanks in advance to anyone who can give me hints on how to solve problem.
    Fabrizio

    Hi Fabrizio,
    The error state 42000 indicates that there is a syntax error or access violation. If you are using an Informix native client connection then add the following parameter <Parameter Name>"Force SQLExecute">Always</Parameter> in the informix.sbo file. Restart Designer and then try to create a derived table with a simple select statement.
    If you are using an ODBC connection, then add the above mentioned parameter in the Generic section of odbc.sbo file.
    Regards
    Arun Sasi

  • Error Code Definition for JDBC Thin driver

    Would like to know where I can find the definition of error codes
    for JDBC thin driver to Oracle 7 database. Right now, when I have
    database errors, I get SQL execption with CODE=XXXXXX. Need to
    know the definition of the error codes in order to decide whether
    the application shall retry or quit or do something else. Thank
    you in advance.
    null

    Hi,
    thin client session Language is controlled by java Locale.
    Based on testing code, ORA- messages are localized after the connection is successfully established. ORA- messages returned in the middle of connecting are in instance language.
    So, as far as I can say, you need to catch exceptions from DriverManager.getConnection(url, info); and translate them on your own.
    Once the connection is successfully returned, ORA- message language is defined by java Locale.
    Tests were performed on Oracle 10gR2 (both thin driver and DB).

  • Connection error to 9i database using JDBC thin driver

    When trying to connect to a new 9i database using the JDBC thin driver, I received the following error:
    java.sql.SQLException: ORA-00600: internal error code, arguments: [ttcgcshnd-1], [0], [], [], [], [], [], []
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java)
    at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java)
    at oracle.jdbc.ttc7.Oall7.receive(Oall7.java)
    at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java)
    at oracle.jdbc.ttc7.TTC7Protocol.fetch(TTC7Protocol.java)
    at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java)
    at oracle.jdbc.driver.OracleStatement.doExecute(OracleStatement.java)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java)
    at oracle.jdbc.driver.OracleDatabaseMetaData.getTables(OracleDatabaseMetaData.java)
    I have no problem with my code connecting to an Oracle 8 database, just 9i.
    I'm trying to debug in Visual Cafe (JDK 1.1.7) and have both the classes111.zip and the nls_charset11.zip in my CLASSPATH.
    Any suggestions would be appreciated. Thanks

    If you're using 8i 8.1.7.1 or 8i 8.1.7.0 thin JDBC drivers on NT, then you can get them to connect to 9i by applying the 8i 8.1.7.1 Patch available at:
    http://technet.oracle.com/software/tech/java/sqlj_jdbc/htdocs/solsoft.html
    You might have to register/login first.
    Basically, it's just a case of replacing a class already in your classes111.zip or classes12.zip with the class in the patch.
    Took me a while to find this, but it worked first time after patching. Hope this helps.

  • JDBC Driver error

    Hello,
    I've downloaded MySQL Connector/J 3.0 zip file for the windows box.when I unzipped, had a directory, mysql-connector-java-3.0.10-stable and inside it I had this mysql-connector-java-3.0.10-stable-bin.jar file.I copied this file to j2sdk1.4.1_02/jre/lib/ext and when i try to run the following program, it throws me with error.Any ideas???
    Thanks in advance.
    public class test {
    public static void main(String[] args) {
    try {
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    System.out.println("Good to go");
    } catch (Exception E) {
    System.out.println("JDBC Driver error");

    I'm guessing it can't find the class, although your code doesn't print any details of the exception. Run a program containing this line of code:System.out.println(System.getProperties().getProperty("java.ext.dirs"));That will tell you where you need to put the jar file.

  • JDBC driver error to connect to an MS Access DB

    Hi All,
    We have created a file to JDBC scenario on XI 3.0. My XI server is on a Linux server and the db the receiver CC is trying to connect to is an MS Access 2007.
    The CC parameters are configured as follow:
    JDBC Driver: jdbc.odbc.JdbcOdbcDriver
    Connection: jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=
    xxxxxx\xxxxx\Test.mdb
    On the communication monitoring we are getting the following error message:
    Error when attempting to get processing resources: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: DriverManagerException: Cannot establish connection to URL 'jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=
    xxxxxx\xxxxx\Test.mdb': java.lang.NullPointerException
    In regards with the above message and after reviewing several posts, I have two questions I would like to confirm with you:
    a- Do I have to perform a JDBC driver deployment to connect to a MS Access DB? If so, which one.
    b- Is there a suitable JDBC driver on Linux to connect to a MS Access DB? If there is not such a driver, Is there any available workaround for this?
    Please, let us know your recommendations about this or what I should check to identify the cause of the above error.
    Thanks and best regards

    Hi All, in order to discard any possible issue between Linux and MS access connection, we are currently in the process on configuring a J2SE Plain Adapter Engine on a Windows environment. However, after configuring a JDBC receiver scenario we are getting the following error message in the adapter logs:
    Classname=com.sap.aii.messaging.adapter.ModuleXMB2DB
    Version=30
    Mode=XMB2DB_XML
    XI.httport=xxxx
    XI.httpService=/db/receiver
    db.jdbcDriver=sun.jdbc.odbc.JdbcOdbcDriver
    db.connectionURL=jdbc:odbc:Driver={Microsoft Acces Driver (*.mdb)};=<Path to the mdb file>
    Error log
    15:50:23 (4311): ERROR: Attempt to access JDBC connection failed with "[Microsoft][ODBC Microsoft Access Driver]Optional feature not implemented"
    Attempt to initialize JDBC adapter failed
    15:50:23 (4340): JDBC adapter initialized with database error. Proceed
    15:50:23 (4303): JDBC adapter listener started
    Then, the Mode parameter was changed to XMB2DB and the error log is as follow:
    15:36:14 (4315): ERROR: Attempt to initialize transform class com.sap.aii.messaging.adapter.Payload2DBBinding  failed with exception com.sap.aii.messaging.adapter.trans.TransformException: Error 'com.sap.aii.messaging.adapter.trans.TransformException: Error: Parameter 'db.table' missing' initializing class payload2DBBinding
    15:36:14 (4304): Unable to start JDBC adapter (not initialized)
    According to our scenario the required mode would be XMB2DB_XML. Could you please let us know the cause of the u201COptional feature not implementedu201D error message is?
    The following data may be helpful:
    OS version: Windows 2003 Server SP2
    JRE (1.6.0_16-b01)
    Weu2019ll wait for your recommendations.
    Thanks and best regards

  • Websphere Application Server an JDBC Driver errors

    We're currently testing the BEA JDBC/SQLServer driver on IBMs websphere Application server and have encountered a couple of problems, which are described below. Has anyone encountered these before, and are there solutions to fixing them.
    Problem 1. All JDBC queries through the drivers cause the following error message to be displayed on the application server console:-
    #Weblogic -- Applet Access
    ......Illegal System.exit() attempted
    2. We get an intermittent problem where a JDBC query causes the following exception:-
    12-Aug-2002 14:08 | [Servlet.Engine.Transports:8] | ERROR | |
    User Action: displayParams
    Error Message: JVMLK003: current thread not owner
    Exception Message: JVMLK003: current thread not owner
    java.lang.IllegalMonitorStateException: JVMLK003: current thread not owner
    at java.lang.Object.notify(Native Method)
    at
    weblogic.jdbcbase.mssqlserver4.TdsConnection.registerPipeline(TdsConnection.
    java(Compiled Code))The only solution to the 2nd problem, that I've found, is to restart the application server.
    Are these drivers compatible with IBMs Websphere Application Server v4.0 Advanced?
    Any help would be appreciated.
    Regards
    Andrew

    please see my answers inline... I recommend you try the JDBC driver from
    Microsoft.
    sree
    "Andrew Danieli" <[email protected]> wrote in message
    news:[email protected]..
    We're currently testing the BEA JDBC/SQLServer driver on IBMs websphereApplication server and have encountered a couple of problems, which are
    described below. Has anyone encountered these before, and are there
    solutions to fixing them.
    >
    Problem 1. All JDBC queries through the drivers cause the following errormessage to be displayed on the application server console:-
    >
    #Weblogic -- Applet Access
    ......Illegal System.exit() attemptedThis is happening in your application code not in the driver.
    >
    2. We get an intermittent problem where a JDBC query causes the followingexception:-
    >
    12-Aug-2002 14:08 | [Servlet.Engine.Transports:8] | ERROR | |
    User Action: displayParams
    Error Message: JVMLK003: current thread not owner
    Exception Message: JVMLK003: current thread not owner
    java.lang.IllegalMonitorStateException: JVMLK003: current thread not
    owner
    at java.lang.Object.notify(Native Method)
    atweblogic.jdbcbase.mssqlserver4.TdsConnection.registerPipeline(TdsConnection.
    java(Compiled Code))This sounds more like an IBM JVM issue.
    >
    The only solution to the 2nd problem, that I've found, is to restart theapplication server.
    >
    Are these drivers compatible with IBMs Websphere Application Server v4.0Advanced?
    They are JDBC1.0 compliant drivers and should work with any jdbc app.
    >
    Any help would be appreciated.
    Regards
    Andrew

  • [BEA][SQLServer JDBC Driver]Error

    hi
    i am veeresh.s, in 1 of our user this below error has came,i am a fresher, i don't know how to resolve it, please any body help me in resolving this error
    user gets the following error message when the user try to create a connection pool to connect user weblogic server to oracle server.
    Error:
    [BEA][SQLServer JDBC Driver]Error establishing socket to host and port: dt2888-swaminat:1433. Reason: Connection refused: connect
    The Network Adapter could not establish the connection
    user is unable to telnet to that machine. user suspect that it to be some driver issue.
    So what may be the problem,
    please look into the problem and Kindly help me in resolving this issue.

    This appears to be a duplicate thread. I posted a reply in the other forum
    Re: [BEA][SQLServer JDBC Driver]Error
    Justin

  • Load oracle jdbc driver error when run applet via the web

    Hi All,
    I have built an applet which connect to database via jdbc thin driver. It works fine when I run it through the applet viewer, but got a problem when run it through the web.
    java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
    I am using jdev9i 9.0.4 and jdk 1.4.2. The jdbc version is 9.0.1
    I have added both the classes12.zip and ojdbc14.zip in the class path and also pack them together with my applet class. Here is the code
    public class MyApplet extends Applet
    implements Runnable
    public void start()
    if(theThread == null)
    theThread = new Thread(this);
    theThread.start();
    Retrieve R = new Retrieve();
    this.MyMap = R.retrieveDesc();
    public class Retrieve
    public Retrieve()
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    conn=DriverManager.getConnection("jdbc:oracle:thin:@babyruth.wvu.edu:1703:devdw", User, Password);
    conn.setAutoCommit(true);
    connectStatus = true;
    public HashMap retrieveDesc()
    return map;
    I have also built one HTML page NewApplet like this
    <HTML>
    <HEAD>
    <TITLE> My New Applet</TITLE>
    </HEAD>
    <APPLET CODE="MyApplet.class" CODEBASE="menu" ARCHIVE="MyApplet.zip" WIDTH=300 HEIGHT=485>
    <!--General Settings-->
    <param name="bgcolor" value="255,255,255">
    </HTML>
    Any advice is highly appreciated
    Mei

    Sir,
    Well you haven't "packed" them correctly. Why don't you just add the driver bits to the soucebase tag? or something like that anyway...
    Sincerely,
    Slappy

  • Informix Driver :  Message -23197 not found.

    hello, do you know this error?
    weblogic.common.ResourceException: Could not create pool connection. The DBMS driver exception was: [BEA][Informix JDBC Driver][Informix](Internal Error) Message -23197 not found.
    It appears when I configure a driver for an informix database. The driver is weblogic.jdbc.informix.InformixDriver. I think the driver is ok but I don´t find any information about this error.
    Thank you.

    Yes, it has a DSN. It is:
    DSN Test Homer
    User Name ******
    Server homer.cs.odu.edu
    The connection string is:
    Provider=MSDASQL.1;Password=*******;Persist Security Info=True;User ID=******;Extended Properties="DSN=Test Homer;UID=******;PWD=******;SERVER=homer.cs.odu.edu;"
    with the appropriate user name and password filled in.

  • AIX JDBC OCI Driver

    I'm using IBM's WebSphere JDBC connection pool to manage oracle
    connections. While the code worked normally on Sun Solaris, I
    get ORA-03123, ORA-03127 etc errors on AIX. I'm closing the
    resultsets, the statement handles and releasing the connection
    after each SQL execution. Is this an AIX JDBC OCI driver problem
    or am I missing something.
    Thanks,
    Ravi
    null

    I found problem like you but on DIGITAL UNIX 4.0D It's an
    AIO Consistency Error.. did you know some thing about this??
    and For your question OCI7 driver to connect to ORACLE7.3.4 are
    in liboci73.so or another extension depend on your OS (I don't
    know what's one on AIX) but it must come with Oracle
    Installation Package you can install on AIX :>
    Prashant (guest) wrote:
    : Hi:
    : Does any one know where I could find JDBC/OCI level 2 driver
    : for AIX (4.2) running Oracle (7.3.4). All I have been able to
    : locate is the NT and Solaris. Both contains classes and shared
    : libraries for that machine. I saw someone posted this question
    : before, however, suggestions was to use dynamic library
    generated
    : for Solaris, this will not work. Does anyone have other
    : suggestions.
    : Any and all help is appreciated.
    : Many Thanks
    : Prashant.
    null

  • Does oracle 8.1.6.0 jdbc thin driver support jdk1.3 and oracle 8.0.5 database ?

    I have downloaded oracle 8.1.6.0 jdbc thin driver(named classes12.zip) to run with jdk1.3 to access oracle 8.0.5, but when I compile and run the jdbccheckup.java downloaded from oracle website like this:
    javac -classpath d:\jdbc\classes12.zip jdbccheckup.java
    (compile succeed)
    java -classpath d:\jdbc\classes12.zip jdbccheckup
    an error occured:
    Exception in thread "main" java.lang.NoClassDefFoundError:jdbccheckup
    Why??????

    Try this isntead.
    java -classpath d:\jdbc\classes12.zip;. jdbccheckup
    an error occured:
    Exception in thread "main" java.lang.NoClassDefFoundError:jdbccheckup
    Why??????

Maybe you are looking for