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)

Similar Messages

  • 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

  • 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]

  • Remote JDBC Problem with Oracle BPM Studio

    Hi all, i am facing the Remote JDBC Problem with Oracle BPM Studio.
    When i configure a Remote JDBC Connection for SQL in BPM Studio, it prompt me an error.
    The SQL Connection is configured as following :
    External Resource:
    Name : MyDS
    Type : SQL Database
    Supported Types : Remote JDBC
    Details:
    Database Type : BPM's Oracle Driver Version:10, 11
    J2EE : WLS
    Lookup Name : MyAppDS
    Configuration for "WLS"
    Name : WLS
    Type : J2EE Application Server
    Supported Types : GENERIC_J2EE
    Details:
    Initial Context Factory : weblogic.jndi.WLInitialContextFactory
    URL : t3://localhost:7001
    But, when i try to connect to the Database by using this configuration, I will get an Exception.
    An exception occurred while getting a resource from a connector.
    Detail:The connector [[ MyDS : SQL : REMOTE_JDBC ]] caused an exception when getting a resource.
    Caused by: An exception occurred while getting a resource from a connector.
    Detail:The connector [[ WLS : J2EE : J2EE ]] caused an exception when getting a resource.
    Caused by: javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory [[ Root exception is java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory ]]
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
         at javax.naming.InitialContext.init(InitialContext.java:223)
         at javax.naming.InitialContext.<init>(InitialContext.java:197)
         at fuego.jndi.FaultTolerantContext.createContext(FaultTolerantContext.java:726)
         at fuego.jndi.FaultTolerantContext.<init>(FaultTolerantContext.java:79)
         at fuego.connector.impl.GenericJ2EEConnector.createInitialContext(GenericJ2EEConnector.java:177)
         at fuego.connector.impl.GenericJ2EEConnector.createStandaloneContext(GenericJ2EEConnector.java:98)
         at fuego.connector.impl.BaseJ2EEConnector.getResource(BaseJ2EEConnector.java:92)
         at fuego.connector.impl.BaseJ2EEConnector.getResource(BaseJ2EEConnector.java:76)
         at fuego.connector.J2EEHelper.getReadOnlyContext(J2EEHelper.java:86)
         ... 12 more
    Edited by: user2262377 on Jun 22, 2009 4:01 PM

    I guess the weblogic.jar is not included in the studio.
    So, i added weblogic.jar (Weblogic 10.3) and wlclient.jar (Weblogic 10.3)
    It is working in my simple java code. But, still not working in BPM Studio.
    The error logs:
    An exception occurred while getting a resource from a connector.
    Detail:The connector [OFT_APP_DS:SQL:REMOTE_JDBC] caused an exception when getting a resource.
    Caused by: java.lang.Object cannot be cast to java.io.Serializable
    fuego.connector.ConnectorException: An exception occurred while getting a resource from a connector.
    Detail:The connector [OFT_APP_DS:SQL:REMOTE_JDBC] caused an exception when getting a resource.
         at fuego.connector.ConnectorException.exceptionOnGetResource(ConnectorException.java:88)
         at fuego.connector.JDBCHelper.getReadOnlyConnection(JDBCHelper.java:93)
         at fuego.sqlintrospector.BrowserPanel.connect(BrowserPanel.java:395)
         at fuego.sqlintrospector.BrowserPanel.populateTree(BrowserPanel.java:200)
         at fuego.ui.wizards.ui.CheckTreeBrowser$1.construct(CheckTreeBrowser.java:63)
         at fuego.ui.SwingWorker$2.run(SwingWorker.java:39)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.ClassCastException: java.lang.Object cannot be cast to java.io.Serializable
         at weblogic.iiop.IIOPOutputStream.writeAny(IIOPOutputStream.java:1588)
         at weblogic.iiop.IIOPOutputStream.writeObject(IIOPOutputStream.java:2231)
         at weblogic.utils.io.ObjectStreamClass.writeFields(ObjectStreamClass.java:413)
         at weblogic.corba.utils.ValueHandlerImpl.writeValueData(ValueHandlerImpl.java:235)
         at weblogic.corba.utils.ValueHandlerImpl.writeValueData(ValueHandlerImpl.java:225)
         at weblogic.corba.utils.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:182)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1963)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:2001)
         at weblogic.iiop.IIOPOutputStream.writeObject(IIOPOutputStream.java:2266)
         at weblogic.jdbc.common.internal.RmiDataSource_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
         at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
         at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

  • 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.

  • Informix JDBC Connection

    I am using WebLogic 6.1sp2 and am trying to configure a JDBC connection to an Informix Database. How do I need to configure the database in order for the WebLogic JDBC drivers to be able to connect to it?

    InformixPool(NonXA):
    <JDBCConnectionPool
    DriverName="com.informix.jdbc.IfxDriver"
    InitialCapacity="3"
    LoginDelaySeconds="1"
    MaxCapacity="10"
    Name="ifxPool"
    Password="{3DES}EcGd4vppW7ClP0kGgLIm3A=="
    Properties="user=informix;url=jdbc:informix-sqli://172.18.41.85:1543/syutils:informixserver=lcsol15;password=informix;dataSourceName=infPool;portNumber=1543;databaseName=sysutils;serverName=lcsol15;ifxIFXHOST=172.18.41.85"
    Targets="myserver"
    URL="jdbc:informix-sqli://172.18.41.85:1543/sysutils:informixserver=lcsol15"/>
    InformixDataSource(NonXA):
    <JDBCDataSource JNDIName="infPool1" Name="infPool1"
    PoolName="ifxPool" Targets="myserver"/>
    InformixXAConnectionPool:
    <JDBCConnectionPool CapacityIncrement="1"
    DriverName="com.informix.jdbcx.IfxXADataSource"
    InitialCapacity="5"
    MaxCapacity="10"
    Name="infPool"
    Properties="user=informix;url=jdbc:informix-sqli://172.18.41.85:1543/sys
    utils:informixserver=lcsol15;password=informix;dataSourceName=infPool;portNumber
    =1543;databaseName=sysutils;serverName=lcsol15;ifxIFXHOST=172.18.41.85"
    RefreshMinutes="10"
    SupportsLocalTransaction="true"
    Targets="myserver"
    TestConnectionsOnReserve="true"
    TestTableName="emp"/>
    InformixXADataSource:
    <JDBCTxDataSource JNDIName="infPool" Name="infPool"
    PoolName="infPool" Targets="myserver"/>
    use similar configuration in config.xml for creating informix connection pool using weblogic in 610sp2.
    Thanks,
    Mitesh
    Jonathan Mason wrote:
    I am using WebLogic 6.1sp2 and am trying to configure a JDBC connection to an Informix Database. How do I need to configure the database in order for the WebLogic JDBC drivers to be able to connect to it?

  • 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.

  • 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

  • INFORMIX JDBC Connectivity

    Hi,
    I try to connect to INFORMIX SE 7.25 Machine using con url:
    jdbc:informix-sqli://hostIP:port/dbname:INFORMIXSERVER=servername;user=abc;password=xyz
    The problem is that my database is not in the users' assigned space in the server. Instead it is in a different location/directory in the same server.
    Is there a way I can point or use the full path of my database. How and where do I do that.
    If I do:
    sqli://hostIP:port/data/dbname:INFORMIXSERVER=servername;user=abc;password=xyz
    I get error.
    '/data' is the directory on the Linux server where the database is residing.
    If some one knows Informix DBase well, will the DBPATH env variable will resolve this.
    any help will be appreciated
    cheers
    Hassan

    I've got it sorted.
    If anyone is interested, here it is how.
    Use javax.sql.DataSource connections as that API is more flexible and allow you to specify the full path of the Database.
    Hassan

  • Informix JDBC logging fails at WLS startup - repost, 1st one incomplete

    Hi,
    I am trying to find out how to see how many db queries I'm doing
    for a CMP finder. I am using the Informix driver I downloaded
    from BEA. When I start up WebLogic, I get the following in the
    jdbc.log file:
    DriverManager.initialize: jdbc.drivers = null
    JDBC DriverManager initialized
    registerDriver:
    driver className=weblogic.jdbc.informix4.Driver,weblogic.jdbc.informix4.Driver@20e990]
    SQLException: SQLState() vendor code(-255)
    weblogic.jdbcbase.informix4.InformixException: Informix error: -255 minor code=[0]
    [ at processUpdate <Error> ] See Informix error codes for explanation
    The Informix error manual says -255 means this was not in a
    transaction. It seems to imply that WLS, in trying to start
    logging, was ending a transaction.
    The rest of the stacktrace shows:
    at weblogic.jdbcbase.informix4.Statement.processError Statement.java:1579)
         at weblogic.jdbcbase.informix4.Statement.processUpdate(Statement.java:1344)
         at weblogic.jdbcbase.informix4.Statement.getMoreResults(Statement.java:1100)
         at weblogic.jdbcbase.informix4.Statement.execute(Statement.java:243)
         at weblogic.jdbcbase.informix4.Connection.findDBType(Connection.java:173)
         at weblogic.jdbc.informix4.Driver.newConnection(Driver.java:45)
         at weblogic.jdbcbase.informix4.BaseDriver.connect(BaseDriver.java:96)
         at
    and the rest of the trace shows it trying to make a connection.
    I don't know why this is happening. Any help would be greatly
    appreciated.
    TIA,
    Matt

    matt wrote:
    >
    Joe,
    Thanks for the info. I downloaded the Informix driver, installed
    it, and configured WebLogic to use it, and it worked fine.
    Informix has its own way of turning debug on, but once I read
    their driver doc, it was fairly easy.cool. glad to help.
    Matt
    Joseph Weinstein <[email protected]> wrote:
    Hi Matt. The stacktrace shows that the problem is coming during
    the driver's attempt to make a new connection. I don't know why
    this is happening, but my standing advice for Informix connectivity
    is for you to download and use Informix's own free type-4 driver.
    It's better, faster and better supported than ours.
    Joe
    matt wrote:
    Hi,
    I am trying to find out how to see how many db queries I'm doing
    for a CMP finder. I am using the Informix driver I downloaded
    from BEA. When I start up WebLogic, I get the following in the
    jdbc.log file:
    DriverManager.initialize: jdbc.drivers = null
    JDBC DriverManager initialized
    registerDriver:
    driver className=weblogic.jdbc.informix4.Driver,weblogic.jdbc.informix4.Driver@20e990]
    SQLException: SQLState() vendor code(-255)
    weblogic.jdbcbase.informix4.InformixException: Informix error: -255minor code=[0]
    [ at processUpdate <Error> ] See Informix error codes for explanation
    The Informix error manual says -255 means this was not in a
    transaction. It seems to imply that WLS, in trying to start
    logging, was ending a transaction.
    The rest of the stacktrace shows:
    at weblogic.jdbcbase.informix4.Statement.processError Statement.java:1579)
    at weblogic.jdbcbase.informix4.Statement.processUpdate(Statement.java:1344)
    at weblogic.jdbcbase.informix4.Statement.getMoreResults(Statement.java:1100)
    at weblogic.jdbcbase.informix4.Statement.execute(Statement.java:243)
    at weblogic.jdbcbase.informix4.Connection.findDBType(Connection.java:173)
    at weblogic.jdbc.informix4.Driver.newConnection(Driver.java:45)
    at weblogic.jdbcbase.informix4.BaseDriver.connect(BaseDriver.java:96)
    at
    and the rest of the trace shows it trying to make a connection.
    I don't know why this is happening. Any help would be greatly
    appreciated.
    TIA,
    Matt

  • JDBC Problem with Oracle 8.1.7. and OC4J  Version 2

    I use the following connection statement with Oracle 8.1.7. and JDeveloper 3 and Apache Server. It works fine.
    String user = "scott/tiger";
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection("jdbc:oracle:oci8:"+user+"@RDL");
    The same program does not obtain the connection with JDeveloper 9i, OC4J Version 2 and Oracle 8.1.7. I do not receive any error message, no exception is thrown.
    Please help me.

    Hi Avi,
    I had already tried the thin Diriver but after yout help I try again.
    With this thin driver, I received a SQLException which helps me.
    As usual, there were a lot of different problems. The main one was that my default configuration do not use the jdbc/lib817 main jdbc/lib. There is a classe12.jar in these libs that are apparently different.
    Finally, I obtain the connection with the "thin" driver.
    Thank you very much Avi!
    Reni

  • Help ! ! !Oracle 8.1.7, Linux, JDBC problem

    We have been troubleshooting a problem with our recently installed Linux (mandrake 8.0) Oracle DB Server. Everything seems to run fine, except JDBC connections. Whenever we connect to the server with one of our Java applications, JSP, Servlet, etc... the first time it works, then all other java apps get:
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    ... also, our connect strings are correct... seems to be a problem with the listener...
    this only happens on the linux server and not solaris.
    Here is the listener.ora file
    # LISTENER.ORA Network Configuration File: /disk1/OraHome1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = warf))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 216.174.11.57)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /disk1/OraHome1)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = warf.world)
    (ORACLE_HOME = /disk1/OraHome1)
    (SID_NAME = warf)
    )

    Also,
    If I stop the listener and restart it... it works, but only for the first JDBC connection... ODBC seems uneffected.

  • Sender JDBC Problem

    Hi
    can any one hlp me..
    My scenrio is JDBC is sender and file is Receiver.
    problem is JDBC adapter is hitting the SQL server and retrived the data and  Inbound message and Receivng Grouping Payload ..like this..
    <?xml version="1.0" encoding="utf-8" ?>
    - <resultset>
    - <row>
      <TransactionNumber>118</TransactionNumber>
      <CompanyCode>1004</CompanyCode>
      <CustomerNumber>1368986</CustomerNumber>
      </row>
    Response payload is showig only name space..of frist two lines..
    <?xml version="1.0" encoding="UTF-8" ?>
      <ns0:resultset_mt xmlns:ns0="urn:Poll_Database_File" />
    even MessageData and Audit  logs showing successfully delivered ..
    Other than soap content  in Message Content showing only name space of xml...first two lines..
    So please let me know , where i did mistake?
    Regards..Rambarki

    Sharavan..the SQL statement is working fine..
    otherwise i wont get this payload in Inbound Message
    <?xml version="1.0" encoding="utf-8" ?>
    - <resultset>
    - <row>
      <TransactionNumber>118</TransactionNumber>
      <CompanyCode>1004</CompanyCode>
      <CustomerNumber>1368986</CustomerNumber>
      </row>
    - <row>
      <TransactionNumber>254</TransactionNumber>
      <CompanyCode>1004</CompanyCode>
      <CustomerNumber>2755685</CustomerNumber>
      </row>
    see u can find the data in payload..but thing is repsonse payload showing like this..
    <?xml version="1.0" encoding="UTF-8" ?>
      <ns0:resultset_mt xmlns:ns0="urn:Poll_Database_File" />
    only..
    i didn;t understand..what is this error/
    regards
    sankar

  • Php curl connection & mysql connection from netbeans (jdbc) problem

    I set up a LAMP stack on my laptop for development of TYPO3 a cms. Everything is cushty but two issues remain where I'm at my wits end.
    In netbeans I cannot connect to the mysql database using the jdbc driver and specifying the localhost. My php application can using the same credentials.
    I realized that I cannot connect to the mysql from the command line either if I use the loopback dress.
    this works: mysql -u root -p -h localhost   
    this doesn't: mysql -u  root -p -h 127.0.0.1                                                                     
    > ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (111) 
    In my php application I have the problem that I cannot fetch a file via curl and fopen. I have tried both and curl/allow_fopen are enabled in the php.ini but no luck.
    since both problems are permission related it's only the /etc/hosts.allow which comes to mind which could cause a problem but I already allowed everything the hosts.allow
    # /etc/hosts.allow                                                                                         
    rpcbind: 192.168.1.0/255.255.255.0                                                                                                             
    mysqld: ALL : allow                                                                                                                           
    ALL: 127.0.0.1 : allow                                                                                                                         
    httpd: ALL : allow                                                                                                                             
    ALL : ALL : allow
    #/etc/hosts
    127.0.0.1               localhost       localhost.localdomain   lt-tom-arch                                                                   
    Any idea what I'm missing? What can I use to debug the issue further
    #php.ini
    [PHP]
    engine = On
    short_open_tag = Off
    asp_tags = Off
    precision = 14
    y2k_compliance = On
    output_buffering = 4096
    zlib.output_compression = Off
    implicit_flush = Off
    unserialize_callback_func =
    serialize_precision = 100
    allow_call_time_pass_reference = Off
    safe_mode = Off
    safe_mode_gid = Off
    safe_mode_include_dir =
    safe_mode_exec_dir =
    safe_mode_allowed_env_vars = PHP_
    safe_mode_protected_env_vars = LD_LIBRARY_PATH
    error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR
    disable_functions =
    disable_classes =
    expose_php = On
    max_execution_time = 300
    max_input_time = 60
    memory_limit = 128M
    error_reporting = E_ALL & ~E_DEPRECATED
    display_errors = Off
    display_startup_errors = Off
    log_errors = On
    log_errors_max_len = 1024
    ignore_repeated_errors = Off
    ignore_repeated_source = Off
    report_memleaks = On
    track_errors = Off
    html_errors = Off
    error_log = /var/log/php.log
    variables_order = "GPCS"
    request_order = "GP"
    register_globals = Off
    register_long_arrays = Off
    register_argc_argv = Off
    auto_globals_jit = On
    post_max_size = 8M
    magic_quotes_gpc = Off
    magic_quotes_runtime = Off
    magic_quotes_sybase = Off
    auto_prepend_file =
    auto_append_file =
    default_mimetype = "text/html"
    include_path = ".:/usr/share/pear"
    doc_root =
    user_dir =
    extension_dir = "/usr/lib/php/modules/"
    enable_dl = Off
    file_uploads = On
    upload_max_filesize = 12M
    max_file_uploads = 20
    allow_url_fopen = On
    allow_url_include = On
    default_socket_timeout = 60
    extension=gettext.so
    extension=json.so
    extension=mcrypt.so
    extension=curl.so
    extension=gd.so
    extension=mysql.so
    extension=openssl.so
    [Date]
    date.timezone = America/Montreal
    [filter]
    [iconv]
    [intl]
    [sqlite]
    [sqlite3]
    [Pcre]
    [Pdo]
    [Pdo_mysql]
    pdo_mysql.cache_size = 2000
    pdo_mysql.default_socket=
    [Phar]
    [Syslog]
    define_syslog_variables = Off
    [mail function]
    SMTP = localhost
    smtp_port = 25
    mail.add_x_header = On
    [SQL]
    sql.safe_mode = Off
    [ODBC]
    odbc.allow_persistent = On
    odbc.check_persistent = On
    odbc.max_persistent = -1
    odbc.max_links = -1
    odbc.defaultlrl = 4096
    odbc.defaultbinmode = 1
    [Interbase]
    ibase.allow_persistent = 1
    ibase.max_persistent = -1
    ibase.max_links = -1
    ibase.timestampformat = "%Y-%m-%d %H:%M:%S"
    ibase.dateformat = "%Y-%m-%d"
    ibase.timeformat = "%H:%M:%S"
    [MySQL]
    mysql.allow_local_infile = On
    mysql.allow_persistent = On
    mysql.cache_size = 2000
    mysql.max_persistent = -1
    mysql.max_links = -1
    mysql.default_port =
    mysql.default_socket =
    mysql.default_host =
    mysql.default_user =
    mysql.default_password =
    mysql.connect_timeout = 60
    mysql.trace_mode = Off
    [MySQLi]
    mysqli.max_persistent = -1
    mysqli.allow_persistent = On
    mysqli.max_links = -1
    mysqli.cache_size = 2000
    mysqli.default_port = 3306
    mysqli.default_socket =
    mysqli.default_host =
    mysqli.default_user =
    mysqli.default_pw =
    mysqli.reconnect = Off
    [mysqlnd]
    mysqlnd.collect_statistics = On
    mysqlnd.collect_memory_statistics = Off
    [Session]
    session.save_handler = files
    session.use_cookies = 1
    session.use_only_cookies = 1
    session.name = PHPSESSID
    session.auto_start = 0
    session.cookie_lifetime = 0
    session.cookie_path = /
    session.cookie_domain =
    session.cookie_httponly =
    session.serialize_handler = php
    session.gc_probability = 1
    session.gc_divisor = 1000
    session.gc_maxlifetime = 1440
    session.bug_compat_42 = Off
    session.bug_compat_warn = Off
    session.referer_check =
    session.entropy_length = 0
    session.entropy_file =
    session.cache_limiter = nocache
    session.cache_expire = 180
    session.use_trans_sid = 0
    session.hash_function = 0
    session.hash_bits_per_character = 5
    url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
    [MSSQL]
    mssql.allow_persistent = On
    mssql.max_persistent = -1
    mssql.max_links = -1
    mssql.min_error_severity = 10
    mssql.min_message_severity = 10
    mssql.compatability_mode = Off
    mssql.secure_connection = Off
    [Assertion]
    [COM]
    [mbstring]
    [gd]
    [exif]
    [Tidy]
    tidy.clean_output = Off
    [soap]
    soap.wsdl_cache_enabled=1
    soap.wsdl_cache_dir="/tmp"
    soap.wsdl_cache_ttl=86400
    soap.wsdl_cache_limit = 5
    [sysvshm]
    [ldap]
    ldap.max_links = -1
    [mcrypt]
    [dba]
    #my.cnf
    [client]
    port = 3306
    socket = /var/run/mysqld/mysqld.sock
    [mysqld]
    port = 3306
    socket = /var/run/mysqld/mysqld.sock
    datadir = /var/lib/mysql
    skip-external-locking
    key_buffer = 16M
    max_allowed_packet = 1M
    table_cache = 64
    sort_buffer_size = 512K
    net_buffer_length = 16K
    myisam_sort_buffer_size = 8M
    skip-networking
    server-id = 1
    [mysqldump]
    quick
    max_allowed_packet = 16M
    [mysql]
    [isamchk]
    key_buffer = 20M
    sort_buffer_size = 20M
    read_buffer = 2M
    write_buffer = 2M
    [myisamchk]
    key_buffer = 20M
    sort_buffer_size = 20M
    read_buffer = 2M
    write_buffer = 2M
    [mysqlhotcopy]
    interactive-timeout

    Regarding Curl/fopen I'm one step further. PHP cannot resolve hostnames and can connect only if an IP is specified. I resolved the domain I needed manually in the hosts file and it works. it appears it cannot use the systems DNS or the system doesn't allow it to use DNS. I have other ubuntu servers in the network who can resolve just fine.
    any idea what could be causing this?
    Could it have something to do with my nsswitch.conf? Should there be another dns somewhere?
    # Begin /etc/nsswitch.conf
    passwd: files
    group: files
    shadow: files
    publickey: files
    hosts: files dns
    networks: files
    protocols: files
    services: files
    ethers: files
    rpc: files
    netgroup: files
    # End /etc/nsswitch.conf

  • Distributed transactions/jdbc problem WL60

    Hi
              Our company has aworking application running on WLS5.1sp9.
              Im in the process of migrating it to WL6.0sp2.
              Our domain has 2 clusters each running 2 servers:
              1) servlet engines (handling http requests from clients, running servlets
              and jsp's)
              2) ejb containers (runnigour entities and session beans, working with Oracle
              8i database using connection pool and TxDataSource)
              The scenario:
              - a client request invokes a servlet on one of the servlet engines.
              - the servlet opens a jndi context to one of the ejb containers
              - the servlet open a transaction on a UserTransaction stub on that ejb.
              - then the servlet calls an entity bean using a home interface looked up
              using the same context.
              - the entity bean uses DataSource lookup in its own servers jndi to rerieve
              a connection.
              and then i get the following exception:
              java.sql.SQLException: No default driver for database type:
              jdbc:weblogic:jts
              at
              weblogic.jdbcbase.t3.Driver.seeIfWeNeedToInferDriverNameAndUrlFrom(Driver.ja
              va:456)
              at weblogic.jdbcbase.t3.Driver.getAllPropsFrom(Driver.java:255)
              at weblogic.jdbcbase.t3.Driver.connect(Driver.java:75)
              at weblogic.jdbcbase.jts.Driver.createRemoteConnection(Driver.java:199)
              at weblogic.jdbcbase.jts.Driver.connect(Driver.java:134)
              at
              weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java
              :44)
              at com.unisfair.util.DBHelper.getConnection(DBHelper.java:43)
              the transaction toString() gives:
              transaction=(IdHash=7541556,Name = [EJB
              UserBeanImpl.generateSessionSuffix()],Xid=2:b53da78d3c1badbb,Status=Active,n
              umRepliesOwedMe=0,numRepliesOwedOthers=1,seconds since begin=0,seconds
              left=30,activeThread=Thread[ExecuteThread: '8' for queue: 'default',5,Thread
              Group for Queue:
              'default'],ServerResourceInfo[weblogic.jdbc.jts.Connection]=(state=new,assig
              ned=none),SCInfo[ejb2]=(state=active),SCInfo[servlet2]=(state=active),SCInfo
              [ejb1]=(state=active),properties=({weblogic.transaction.name=[EJB
              UserBeanImpl.generateSessionSuffix()], weblogic.jdbc=t3://10.0.0.31:7007}))
              However the error happens on the other ejb server 10.0.0.33:7007
              It seems that the jts driver tries to get a remote connection on the server
              that coordinates the transaction but uses the deprecated t3 driver.
              I hope someone can help us since this problem is a good enough reason for us
              not moving on to WL6.0 we also looked at WL6.1 Beta and theres nothing new
              about it either.
              thanks
              Dror Last
              Senior Software Engineer
              Unisfair Inc.
              12 Yad Haruzim St. Tel Aviv 67778 Israel
              Tel: +972-3-5373738 Ext. 243
              Fax: +972-3-5373731
              GSM: +972-55-723710
              mailto:[email protected]
              http://www.unisfair.com/
              

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by JDBC_TX ():
    In the readme file of Oracle JDBC drivers 8.1.6.0.1 (http://technet.oracle.com/software/tech/java/sqlj_jdbc/files/Readme_01.txt)
    it mentioned that it supports "distributed transactions".
    As I understand, JDBC transaction is connection based and uses Oracle internal transaction manager. In order to do "distributed transactions", I must have at least two connections open at the same time each to its own database instance. How does the two connections coordinate the transactions? I thought in order to support "distributed transactions", one has to build a higher layer to encapsulate the two connections and therefore coordinate the distributed transactions. Any examples will be welcome.<HR></BLOCKQUOTE>
    The two branches of the transaction are coordinated using 2-phase commit.
    For samples look under
    $ORACLE_HOME/jdbc/demo/samples/oci8/jdbc20-samples/
    null

Maybe you are looking for

  • My adobe cs5 just stopped working, my adobe cs5 just stopped working

    CS5 was working and now it won't work at all try reloading and still won't work

  • Get sales order in condition routine of VF01

    Hi I need to get the sales order number (or at least the delivery number) in a condition routine which is called in VF01. I can't find any structure/internal table/variable where it is passed. Does anybody have an idea where to find the information?

  • Port error

    Hi,   When I am teting my custom idoc in we19  I am getting error "<b>Port  does not exist in the table of port descriptions</b>".  I created port, partner profile, Attached the messaget type and every thing.   wha will be reason? regards, Ansar.

  • Logic Pro 8 PPC Songfiles on Intel Macs?

    Dear fellow board members, did anyone experiance problems with a Logic 8 Song file, that was created and saved with Logic 8 on a PPC-Mac, and which has then been opened on Logic 8 on an Intel-Mac? Would I be save to create my Logic 8 Autoload Song (W

  • Where to install agents?

    Hi, I have following architecture: - Server 1 - ODI installed with option Server - Client 1 - ODI installed with option Client - Client 2 - ODI installed with option Client - Server 2 - Oracle DB installed - ODI Repositories created - Server 3 - Orac