Informix JDBC driver

Hi,
I am connecting to Informix server using JDBC in a stand alone application. After every 20 or 25 connections being made to database, before issuing a new connection, JVM takes about 3 to 4 minutes between issuing or getting the connections. if I use the verbose option, this is what it seems to loop at before proceding, any clue on what might be happening.
[Signaling in VM: java/lang/reflect/InvocationTargetException, message: ]
     at java.lang.reflect.Constructor.newInstance(Native Method)
     at com.informix.jdbc.IfxDriver.connect(IfxDriver.java:249)
     at java.sql.DriverManager.getConnection(DriverManager.java:543)
     at java.sql.DriverManager.getConnection(DriverManager.java:163)
     at com.walmart.javaapps.DBInformix.doIt(DBInformix.java:3829)
     at com.walmart.javaapps.DBInformix.main(DBInformix.java:3803)

I tried, you have better chance of finding something
on google than IBM site.
We have escalated the issue to IBM, we are waiting for
response from them, and waiting to find out what they
have to say about it.
If i hear somethign ,I will post it here.sorry to hear that.
do you have source for the driver? because i'd take a look at line 249 of com.informix.jdbc.IfxDriver and see what the heck's it's doing.

Similar Messages

  • WebLogic Informix JDBC driver query

    We are developing an application with WL6.1 Express. One of the databases
    we need to connect to is Informix 7.2. Since WL's jDriver can work with
    Informix, I'd assume we do not need to buy any additional drivers from IBM.
    1) Is my assumption correct?
    2) Not having worked with Informix before, what needs to be done on the
    Informix server to enable this connection?
    3) Is the WL jDriver for Informix reliable or are we better off buying the
    Informix JDBC driver?
    Appreciate any advice on the matter, thanks.

    Kai wrote:
    >
    We are developing an application with WL6.1 Express. One of the databases
    we need to connect to is Informix 7.2. Since WL's jDriver can work with
    Informix, I'd assume we do not need to buy any additional drivers from IBM.
    1) Is my assumption correct?yes.
    2) Not having worked with Informix before, what needs to be done on the
    Informix server to enable this connection?that should be documented in our stuff.
    3) Is the WL jDriver for Informix reliable or are we better off buying the
    Informix JDBC driver?The one from Informix is better. Last time I checked, Informix's driver was free.
    Unless it is expensive, I recommend it.
    Joe Weinstein
    >
    Appreciate any advice on the matter, thanks.--
    B.E.A. is now hiring! (12/14/01) If interested send a resume to [email protected]
    DIRECTOR OF PRODUCT PLANS AND STRATEGY San Francisco, CA
    E-SALES BUSINESS DEVELOPMENT REPRESENTATIVE Dallas, TX
    SOFTWARE ENGINEER (DBA) Liberty Corner, NJ
    SENIOR WEB DEVELOPER San Jose, CA
    SOFTWARE ENGINEER (ALL LEVELS), CARY, NORTH CAROLINA San Jose, CA
    SR. PRODUCT MANAGER Bellevue, WA
    SR. WEB DESIGNER San Jose, CA
    Channel Marketing Manager - EMEA Region London, GBR
    DIRECTOR OF MARKETING STRATEGY, APPLICATION SERVERS San Jose, CA
    SENIOR SOFTWARE ENGINEER (PLATFORM) San Jose, CA
    E-COMMERCE INTEGRATION ARCHITECT San Jose, CA
    QUALITY ASSURANCE ENGINEER Redmond, WA
    Services Development Manager (Business Development Manager - Services) Paris, FRA; Munich, DEU
    SENIOR SOFTWARE ENGINEER (PLATFORM) Redmond, WA
    E-Marketing Programs Specialist EMEA London, GBR
    BUSINESS DEVELOPMENT DIRECTOR - E COMMERCE INTEGRATION San Jose, CA
    MANAGER, E-SALES Plano, TX

  • UCCX 8 access db_cra from script add informix jdbc driver

    Hi,
    I want to use the db_cra database for the last agent routing from the call flow script.
    I will run a query which serach wihtin the last 24 hours which agent talked to the customer the last time.
    The problem is, that I'm not able to add the informix db into the uccx database subsystems.
    I can only select these driver classes:
    net.sourceforge.jtds.idbc.driver
    com.ibm.db2.jcc.DB2Driver
    oracle.jdbc.driver.OrcaleDriver
    com.sybase.jdbc2.jdbc.SybDriver
    But for the Informix Db I think I would need  the driver class:
    com.informix.jdbc.IfxDriver.
    Has anyone a idea how to add a driver class or how to access the db_cra from the script?
    I know that it is possible to use a differnt database (like MSSQL) and write each time a agent gets a call the data to this db and access this one for last agent routing functions. But I want to use the db_cra for this.
    thanks
    Markus

    Hi,
    there is no way to do it that way.
    You can't access the Informix DB directly from UCCX script.
    But you can use a SQL server as a middleware. So you have to setup a SQL server and add the Informix db as a linked server.
    Now you should be able to access the SQL server from the UCCX script.
    Kind regards
    Markus
    CONET Solutions GmbH
    Markus Schweitzer,
    Theodor-Heuss-Allee 19, 53773 Hennef
    Tel.: +49 2242 939-676, Fax: +49 2242 939-393
    Mobil: +49 173 5486337
    Internet: http://www.conet.de, mailto: [email protected]

  • 9iAS and Informix jdbc driver

    Hi,
    How do I configure 9iAS release 2 data source to access Informix database using Invformix JDBC driver? Has any one done it and can share the procedure?
    Sam

    Samir -
    I've not done this, but this is the general idea.
    btw - we ship the DataDirect JDBC drivers with 9iAS to facilitate connections to other databases such as DB2, SS, Informix, etc.
    What you want to do is:
    a) Take the JDBC library you wish to use and put it into the j2ee/home/lib directory (bounce the server since this directory is read at startup time and the classpath constructed. Dynamic additions are not picked up)
    b) Define an emulated datasource in the j2ee/home/config/data-sources.xml file using the driver class and specific URL connection string for the JDBC driver you want to use:
    <data-source
    class="com.evermind.sql.DriverManagerDataSource"
    name="InformixDS"
    location="jdbc/if/CoreDS"
    xa-location="jdbc/if/xa/XADS"
    ejb-location="jdbc/if/DS"
    connection-driver="informix.some.packaged.JDBCDriver"
    username="scott"
    password="tiger"
    url="jdbc:informix:....."
    />
    ** the connection-driver and URL attributes will be determined by the specific JDBC driver you are using
    c) Use the datasource like any other data source at this point - you should be able to lookup the datasource using the location entries and get a connection.
    If you are using the Oracle9iAS environment as opposed to the standalone environment, then the same set of tasks should be applied using the facilities provided (ie the EM console) by that distribution.
    -steve-

  • Informix JDBC Driver 4

    Hi! I want to know if you know a good JDBC Driver 4 for use with Informix.
    Thanks a lot!
    Raul

    get the latest from:
    http://www14.software.ibm.com/webapp/download/product.jsp?cat=data&S_TACT=&S_CMP=&id=MBEN-4ZKP2T&s=c&type=
    hassan

  • Informix JDBC: Failed to load Informix JDBC Driver

    hi:
    I use workbench to migration informix 7.3 to Oracle 8.1

    The informix file ifxjdbc.jar needs to be put in the Omeb\drivers
    directory.
    Turloch
    Oracle Migration Workbench Team

  • Union clause in Informix JDBC

    Hello for all
    I'm using informix JDBC driver and when I make a select with union it returns the error messages:
    java.sql.SQLException: Corresponding column types must be compatible for each UNION statement.
    java.sql.SQLException: Must have the same number of selected columns in each UNION element.
    Please, help me
    Thanks

    this is a problem in your SQL-statement:
    there should be equal number of columns and they should be all of the same type:
    select id, description, url from table1
    union
    select description from table2is wrong....
    select id, description, url from table1
    union
    select number,name, address from table2is right, because the number of columns is equal and the type is equal...
    Consider this: you are appending the output of one query with another.... it all should match in order for it to be 1 table....
    hth,
    SurfMan

  • Informix JDBC Problem

    Hi!
    We're using Informix 7 + WL6sp1 + Informix JDBC Driver v2.2. We have a connection
    pool and connect to the pool using:
    Driver myDriver = (Driver) Class.forName("weblogic.jdbc.pool.Driver").newInstance();
    con = DriverManager.getConnection("jdbc:weblogic:pool:poolname");
    The problem is as follows:
    Every time we modify a stored procedure (DROP ... CREATE ...) our app fails when
    trying to use that stored procedure. We have to shut down the server and restart
    it in order to keep going.
    The stack trace:
    java.sql.SQLException: SPL routine(disponibilidad_hot) is no longer valid.
    at com.informix.jdbc.IfxSqli.addException(IfxSqli.java, Compiled Code)
    at com.informix.jdbc.IfxSqli.receiveError(IfxSqli.java, Compiled Code)
    at com.informix.jdbc.IfxSqli.dispatchMsg(IfxSqli.java, Compiled Code)
    at com.informix.jdbc.IfxSqli.receiveMessage(IfxSqli.java, Compiled Code)
    at com.informix.jdbc.IfxSqli.sendStatementQuery(IfxSqli.java, Compiled
    Code)
    at com.informix.jdbc.IfxSqli.executeStatementQuery(IfxSqli.java, Compiled
    Code)
    at com.informix.jdbc.IfxSqli.executeStatementQuery(IfxSqli.java, Compiled
    Code)
    at com.informix.jdbc.IfxResultSet.executeQuery(IfxResultSet.java, Compiled
    Code)
    at com.informix.jdbc.IfxStatement.executeQueryImpl(IfxStatement.java,
    Compiled Code)
    at com.informix.jdbc.IfxPreparedStatement.executeQuery(IfxPreparedStatement.java,
    Compiled Code)
    at weblogic.jdbc.pool.PreparedStatement.executeQuery(PreparedStatement.java,
    Compiled Code)
    at es.gesfor.bd.ObtenerDatos.ejecutar(ObtenerDatos.java, Compiled Code)
    at es.gesfor.servlets.FiltrosServlet.obtenerHoteles(FiltrosServlet.java,
    Compiled Code)
    at es.gesfor.servlets.FiltrosServlet.doPost(FiltrosServlet.java, Compiled
    Code)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java,
    Compiled Code)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java,
    Compiled Code)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java,
    Compiled Code)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java, Compiled
    Code)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)

    Hi Federico,
    It happens because weblogic caches prepred statements.
    Though the name of the stored procedure remains the same,
    it's a different object from the database point of view, which is
    why a mismatch between cache and database occurs.
    You may consider setting size of the prepared statement
    cache to zero. That should solve the problem. Later, when
    the SP code is stabilized, you will be able to turn in on back.
    Regards,
    Slava Imeshev
    "Federico Dios" <[email protected]> wrote in message
    news:[email protected]...
    >
    Hi!
    We're using Informix 7 + WL6sp1 + Informix JDBC Driver v2.2. We have aconnection
    pool and connect to the pool using:
    Driver myDriver = (Driver)Class.forName("weblogic.jdbc.pool.Driver").newInstance();
    con = DriverManager.getConnection("jdbc:weblogic:pool:poolname");
    The problem is as follows:
    Every time we modify a stored procedure (DROP ... CREATE ...) our appfails when
    trying to use that stored procedure. We have to shut down the server andrestart
    it in order to keep going.
    The stack trace:
    java.sql.SQLException: SPL routine(disponibilidad_hot) is no longer valid.
    at com.informix.jdbc.IfxSqli.addException(IfxSqli.java, CompiledCode)
    at com.informix.jdbc.IfxSqli.receiveError(IfxSqli.java, CompiledCode)
    at com.informix.jdbc.IfxSqli.dispatchMsg(IfxSqli.java, CompiledCode)
    at com.informix.jdbc.IfxSqli.receiveMessage(IfxSqli.java, CompiledCode)
    at com.informix.jdbc.IfxSqli.sendStatementQuery(IfxSqli.java,Compiled
    Code)
    at com.informix.jdbc.IfxSqli.executeStatementQuery(IfxSqli.java,Compiled
    Code)
    at com.informix.jdbc.IfxSqli.executeStatementQuery(IfxSqli.java,Compiled
    Code)
    at com.informix.jdbc.IfxResultSet.executeQuery(IfxResultSet.java,Compiled
    Code)
    atcom.informix.jdbc.IfxStatement.executeQueryImpl(IfxStatement.java,
    Compiled Code)
    atcom.informix.jdbc.IfxPreparedStatement.executeQuery(IfxPreparedStatement.jav
    a,
    Compiled Code)
    atweblogic.jdbc.pool.PreparedStatement.executeQuery(PreparedStatement.java,
    Compiled Code)
    at es.gesfor.bd.ObtenerDatos.ejecutar(ObtenerDatos.java, CompiledCode)
    ates.gesfor.servlets.FiltrosServlet.obtenerHoteles(FiltrosServlet.java,
    Compiled Code)
    at es.gesfor.servlets.FiltrosServlet.doPost(FiltrosServlet.java,Compiled
    Code)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java,Compiled Code)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java,Compiled Code)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    Compiled Code)
    atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java,
    Compiled Code)
    atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    Compiled Code)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java,Compiled
    Code)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, CompiledCode)

  • Concurrent Query through Informix JDBC

    Hi,
    I am using Informix Jdbc in my JSP ( Driver Downloaded from IBM Site). In case of concurrent calls to that Jsp , I am getting mixed result in the client site. It's written in the Informix JDBC Spec that "The Same statement or resultset instance cannot be accessed concurrently accross the threads". But what is the alternative way? Anybody found any solution....Any help appriciated.

    Hi k_dey,
    I don't use Informix JDBC driver, but looking through the Informix JDBC Driver Programmer's Guide UNIX and Windows Environments, V2.21, it appears that statement caching is enabled by setting the STMT_CACHE environment variable to 1 (one). Unfortunately, I couldn't find anything in the guide on how to disable statement caching, so I searched the archives of the "comp.databases.informix" newsgroup (for the word 'STMT_CACHE') and it seems that if you set it to 0 (zero), it disables statement caching.
    The guide says that you can set these environment variables through JDBC by either including NAME=VALUE pairs in the database connection URL, or supplying a "java.util.Properties" object as a parameter to the "getConnection()" method (in class "java.sql.DriverManager").
    According to the guide, this is the format for the URL:
    jdbc:informix-sqli://[{ip-address|host-name}:port-number][dbname]:
    INFORMIXSERVER=server-name;[user=user;password=password]
    [;name=value[;name=value]...]
    So I guess you just need to write:
    ;STMT_CACHE=0instead of
    ;name=valueAnd here is some slightly modified code, also taken from the guide:
    Properties pr = new Properties();
    pr.put("STMT_CACHE","0");
    conn = DriverManager.getConnection(newUrl, pr);The guide says that you must use only one of the above two methods, i.e. either set the environment variable in the URL, or use the "Properties" parameter.
    Hope this helps.
    Good Luck,
    Avi.

  • IBM Informix XA JDBC Driver Exception

    Hi All:
    I download jdbc dirvers from ibm's web site,
    and try to add a new connection pool for informix in WS 8.1.2.
    Here is the problem:
    When using non-xa driver, there is no problem with adding a new connection
    pool,
    but when using xa driver, I get the following exception:
    java.sql.SQLException: com.informix.asf.IfxASFException: Attempt to connect
    to d
    atabase server (10.3.1.5) failed.
    at com.informix.jdbc.IfxSqliConnect.<init>(IfxSqliConnect.java:950)
    at
    com.informix.jdbcx.IfxXAReusableConnection.<init>(IfxXAReusableConnec
    tion.java:54)
    at
    com.informix.jdbcx.IfxXAPooledConnection.<init>(IfxXAPooledConnection
    .java:102)
    at
    com.informix.jdbcx.IfxXADataSource.getXAConnection(IfxXADataSource.ja
    va:79)
    at
    weblogic.management.console.utils.JDBC.testConnection(JDBC.java:185)
    at
    weblogic.management.console.actions.mbean.JDBCConnectionPoolTestActio
    n.prePerform(JDBCConnectionPoolTestAction.java:106)
    at
    weblogic.management.console.actions.mbean.DoMBeanWizardAction.perform
    (DoMBeanWizardAction.java:215)
    at
    weblogic.management.console.actions.internal.ActionServlet.doAction(A
    ctionServlet.java:173)
    at
    weblogic.management.console.actions.internal.ActionServlet.doPost(Act
    ionServlet.java:85)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
    (ServletStubImpl.java:971)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:402)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:305)
    at
    weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:6350)
    at
    weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.j
    ava:
    118)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:3635)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2585)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    Any idea??

    Kevin Chen wrote:
    The following entry is copied from config.xml:
    <JDBCConnectionPool DriverName="com.informix.jdbcx.IfxXADataSource"
    Name="MyJDBC Connection Pool"
    Password="{3DES}B+V0vnwIOznCvl7VO5C5OA=="
    Properties="user=dbadmin;
    url=jdbc:informix-sqli://10.1.1.11:1543/ifxDB:informixServer=erpdb;
    portNumber=1543;
    databaseName=ifxDB;
    ifxIFXHOST=erpdb;
    serverName=10.1.1.11"
    URL="jdbc:informix-sqli://10.1.1.11:1543/ifxDB:informixServer=erpdb"
    />
    Btw, I wanna use wls 8.1.2 db controller to access informix, so I dont have
    any sample code from IBM.I don't understand that. Surely their driver has some documentation on how to
    obtain a connection from their com.informix.jdbcx.IfxXADataSource.
    What does the config look like for the non-xa connnection pool? (the one that works?)
    At this point, we need IBM Informix help to diagnose whay the xa connection attempt
    fails.
    Joe
    >
    Thanks for any reply ^^
    Kevin
    "Joe Weinstein" wrote
    Hi Kevin. How does IBM say you should connect to it's XADriver/DataSource?
    If you will post one of their code examples, I will show you how to definethe
    pool. Can you show me the JDBCConnectionPool entry in the config.xml file?
    thanks
    Joe
    Kevin Chen wrote:
    Hi All:
    I download jdbc dirvers from ibm's web site,
    and try to add a new connection pool for informix in WS 8.1.2.
    Here is the problem:
    When using non-xa driver, there is no problem with adding a new
    connection
    pool,
    but when using xa driver, I get the following exception:
    java.sql.SQLException: com.informix.asf.IfxASFException: Attempt toconnect
    to d
    atabase server (10.3.1.5) failed.
    atcom.informix.jdbc.IfxSqliConnect.<init>(IfxSqliConnect.java:950)
    at
    com.informix.jdbcx.IfxXAReusableConnection.<init>(IfxXAReusableConnec
    tion.java:54)
    at
    com.informix.jdbcx.IfxXAPooledConnection.<init>(IfxXAPooledConnection
    .java:102)
    at
    com.informix.jdbcx.IfxXADataSource.getXAConnection(IfxXADataSource.ja
    va:79)
    at
    weblogic.management.console.utils.JDBC.testConnection(JDBC.java:185)
    at
    weblogic.management.console.actions.mbean.JDBCConnectionPoolTestActio
    n.prePerform(JDBCConnectionPoolTestAction.java:106)
    at
    weblogic.management.console.actions.mbean.DoMBeanWizardAction.perform
    (DoMBeanWizardAction.java:215)
    at
    weblogic.management.console.actions.internal.ActionServlet.doAction(A
    ctionServlet.java:173)
    at
    weblogic.management.console.actions.internal.ActionServlet.doPost(Act
    ionServlet.java:85)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
    (ServletStubImpl.java:971)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:402)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:305)
    at
    weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:6350)
    at
    weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:317)
    atweblogic.security.service.SecurityManager.runAs(SecurityManager.j
    ava:
    118)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:3635)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2585)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    Any idea??

  • How to efficiently use an jdbc driver

    hi,
    I have used ifxjdbc.jar for connecting to informix server.
    But i have used that only for query execution.
    I want to know how one can efficiently use a jdbc driver.
    What all the classes that are coming with a .jar file.
    Please help me
    thankz to all

    Add ifxjdbc.jar to classpath.
    Driver Class name is com.informix.jdbc.IfxDriverConnection url is jdbc:informix-sqli://<host>:<port>/<database>:INFORMIXSERVER=<server>Datasource class is com.informix.jdbcx.IfxDataSource

  • How JBO Tester can find non-Oracle JDBC driver?

    1.JD 3.2(BC4J 3.2) can build bc4j application
    on foreign database.
    2.download Informix JDBC 2.11 Driver and modify jdeveloper.ini to add the dirver classpath
    3.successfully create a bc4j projects
    (informix jdbc url:
    jdbc:informix-sqli://myhost:1533:informixserver=myserver;user=rdtest;password=test
    database browser ok.
    4.Informix jdbc sample run ok in JD.
    5.Run JBO Tester fail:
    JBO-26061: Error while opening JDBC connection.(no suitable driver)
    6.I am puzzled...
    Any one can give me a solution?
    Thanks a lot.

    Double click on your project and make sure you included the Oracle JDBC library in the project's library settings.

  • Data Access Objects : JDBC Driver Not Found

    Hi,
    I am having a strange problem accessing JDBC Driver ( for Informix Database, if this
    information helps )
    I am using Data Access Objects ( DAOs ) to fetch multiple records.
    The DAO is accessed from Session Bean for this case.
    The constructor of the DAO does the JNDI lookup for the TxDataSource
    and set it to a class attribute of the DAO. This DataSource is pointing
    to a connection pool
    In the getConnection() private method if DAO we use this DataSource
    to pickup a onnection from the pool and fire a sql query.
    This public method say getMultipleRecords( query conditions ) of DAO
    returns a number of macthing records to the Session Bean.
    This approach works fine in general. But sometimes I get an
    java.sql.SQLException
    SQLException ERROR MESSAGE is:
    "Error accessing jdbc driver: driverURL = jdbc:weblogic:pool:myConnPool, props= {enableTwoPhaseCommit=true,
    connectionPoolID=myConnPool}"
    Once this exception occurs every time the method is called the same exception keep
    coming.
    Once I restart the server this API starts working again.
    Could anyone give any reason why this exception might occur.
    Please send an e-mail to [email protected] while replying to this message.
    Thanks in advance
    Gunajit

    Hi Gunajit
    you need to ensure that the connections are properly closed. If you are
    closing the connections properly, increase the number of connections in the
    connection pool.
    hth
    sree
    "Gunajit" <[email protected]> wrote in message
    news:3ce082ca$[email protected]..
    >
    Hi,
    I am having a strange problem accessing JDBC Driver ( for InformixDatabase, if this
    information helps )
    I am using Data Access Objects ( DAOs ) to fetch multiple records.
    The DAO is accessed from Session Bean for this case.
    The constructor of the DAO does the JNDI lookup for the TxDataSource
    and set it to a class attribute of the DAO. This DataSource is pointing
    to a connection pool
    In the getConnection() private method if DAO we use this DataSource
    to pickup a onnection from the pool and fire a sql query.
    This public method say getMultipleRecords( query conditions ) of DAO
    returns a number of macthing records to the Session Bean.
    This approach works fine in general. But sometimes I get an
    java.sql.SQLException
    SQLException ERROR MESSAGE is:
    "Error accessing jdbc driver: driverURL = jdbc:weblogic:pool:myConnPool,props= {enableTwoPhaseCommit=true,
    connectionPoolID=myConnPool}"
    Once this exception occurs every time the method is called the sameexception keep
    coming.
    Once I restart the server this API starts working again.
    Could anyone give any reason why this exception might occur.
    Please send an e-mail to [email protected] while replying to this
    message.
    >
    Thanks in advance
    Gunajit

  • Problem with clloudscape rmi jdbc driver

    I am using Cloudscape rmi jdbc driver, where Cloudscape runs as
    a separate server. I am using WL6.1 running on Red Hat Linux
    7.1. I defined a Cloudscape connection pool and data source. I
    have to start Cloudscape before WebLogic or I get the following
    exception:
    <Feb 18, 2002 11:39:42 PM EST> <Error> <JDBC> <Cannot startup
    connection pool "EStoreConnectionPool"
    weblogic.common.ResourceException:
    Could not create pool connection. The DBMS driver exception was:
    java.sql.SQLException: Connection refused to host: localhost;
    nested exception is:
    java.net.ConnectException: Connection refused
    at RmiJdbc.RJDriver.connect(RJDriver.java:149)
    at java.sql.DriverManager.getConnection
    (DriverManager.java:512)
    etc.
    No surprises here: However if I start Cloudscape first and
    WebLogic second, I get the following message in Weblogic:
    Starting WebLogic Server ....
    <Feb 19, 2002 12:58:21 AM EST> <Notice> <Management>
    <Loading configuration file ./config/mydomain/config.xml ...>
    <Feb 19, 2002 12:58:43 AM EST> <Notice> <WebLogicServer>
    <Starting WebLogic Admin Server "myserver" for domain "mydomain">
    <Feb 19, 2002 12:59:00 AM EST> <Notice> <Management>
    <Starting discovery of Managed Server... This feature is on by
    default, you may turn this off by passing
    -Dweblogic.management.discover=false>
    This copy of Cloudscape is licensed for DEVELOPMENT ONLY.
    It is a violation of the license agreement to deploy this version
    in a production application.
    For information about licensing Cloudscape for application
    deployment, contact [email protected] or call
    888/595-2821 ext. 7664.
    Additional licensing information can be found at
    http://www.cloudscape.com/licensing.
    <Feb 19, 2002 12:59:31 AM EST> <Notice> <Management>
    <Application Poller started for development server.>
    <Feb 19, 2002 12:59:31 AM EST> <Notice> <WebLogicServer>
    <ListenThread listening on port 7001>
    <Feb 19, 2002 12:59:31 AM EST> <Notice> <WebLogicServer>
    <SSLListenThread listening on port 7002>
    <Feb 19, 2002 12:59:32 AM EST> <Notice> <WebLogicServer>
    <Started WebLogic Admin Server "myserver" for domain "mydomain"
    running in Development Mode>
    The console running cloudscape then contains this message:
    This copy of Cloudscape is licensed for DEVELOPMENT ONLY.
    It is a violation of the license agreement to deploy this version
    in a production application.
    For information about licensing Cloudscape for application
    deployment, contact [email protected] or call
    888/595-2821 ext. 7664.
    Additional licensing information can be found at
    http://www.cloudscape.com/licensing.
    Tue Feb 19 00:56:43 EST 2002: [RmiJdbc]
    COM.cloudscape.core.JDBCDriver registered in DriverManager
    Tue Feb 19 00:56:44 EST 2002: [RmiJdbc] Binding RmiJdbcServer...
    Tue Feb 19 00:56:44 EST 2002: [RmiJdbc] No installation of RMI
    Security Manager...
    Tue Feb 19 00:56:46 EST 2002: [RmiJdbc] RmiJdbcServer bound in
    rmi registry
    WARNING: Cloudscape (instance
    c013800d-00ec-1cf6-94ca-007f00000100) is
    attempting to boot the database
    /app/cloudscape_3.6/database/acme/estore even
    though cloudscape (instance c013800d-00ec-1cca-ed1d-007f00000100)
    may still be active. Only one instance of cloudscape should boot
    a database at a time. Severe and non-recoverable corruption can
    result and may have already occurred.
    Well, it looks like I'm damned if I do and damned if I don't.
    Any suggestions?

    Actually, it happened because Cloudscape was not properly shut down. Thanks for
    responding. I was having some troble with the stopCS script, but its OK now.
    "Laurent Goldsztejn" <[email protected]> wrote:
    >
    Hi Douglass,
    The evaluation version of Cloudscape is limited to one concurrent user
    per session,
    so only one instance of cloudscape can be running at a time. The problem
    reported
    here can occur if you try to run more than once instance of any product
    that
    uses Cloudscape -- including WLS or Cloudview. This evaluation version
    of Cloudscape
    is intended for test purposes only.
    This error can also occur on Solaris if you stop the server using ctrl-C
    or ctrl-D,
    which causes a database lock to remain in place after the server has
    stopped.
    You can get rid of it by deleting $BEA_HOME/wlserver6.1/samples/eval/cloudscape/data/demo/db.lck
    The safest way to stop the server is to use the Admin console or the
    SHUTDOWN
    command from the command line.
    Laurent Goldsztejn
    Developer Relations Engineer
    BEA Support

  • 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

Maybe you are looking for