Asynchronous Queue listener - stale connection.

Tom,
          I have an asynchronous listener for a remote distributed queue (4 jms servers). The listener process is running which had connected with the queue say 10-12 hours ago. The problem I have is, once message comes to one of the queue, even though listener has not lost the connection (as nothing comes in logs and ExceptionListener is implemented), Listener doesnt pickup the message. why?
          we are using WL 8.1 right now.
          Thanks,
          Malav

You need to either ensure that the there's a listener on every distributed queue member, or configure the distributed queue to automatically forward messages from idle queues to queues that have consumers ("queue forwarding").
          Tom

Similar Messages

  • OWB Workflow Queue Listener

    Hi ,
    We are trying to schedule the OWB 3i mappings using OEM 2.2 and Workflow 2.6.2.We have a queue listener 'workflowqlsnr.bat' on the client side,but we need to have the Workflow Queue Listenter on the Server side.Please let me know what is the procedure in order to deploy the listener.sh in the server(Unix).
    I have the following file installed in my owb3i\owb\bin\solaris directory on Windows 2000 -- workflowqlsnr.sh,workflowqlsnr1.sh.
    Environment:
    OWB 3i Client ( Windows 2000).
    Server OS: Sun Solaris
    Database : 8.1.7.3
    OEM 2.2
    OWF 2.6.2 Server/Client.
    Thanks for the help.
    Sharad.

    I am facing a problem in DB Link creation.
    Backend: Oracle 8i Server on my machine
    DW Software: Oracle warehouse builder 3i ( client , repository asistant.....)
    Operating system: Windows NT 4 SERVICE PACK 6
    I wants to use the scott database( default database given by oracle ) as my input source.
    How can I create the DB LINK ( for scott database) ?
    How can I create the DB LINK ( for any other database) ?
    Should I need to add anything in Setting of"ODBC DATASOURCE ADMINISTRATION"
    ==================
    Settings done:
    ==================
    DB Link Name :prashant
    Host name
    Host name: my machine's ip address
    port number: 1521
    oracle sid: prashant ( my oracle sid)
    user name:scott
    password:tiger
    ==================
    Gives error:
    ==================
    Testing...
    Failed.
    Cwm Error Message: Failed in the WBAPIFactory.createDBLink()
    Cwm Error: SQL Exception
    Class Name: oracle.wh.ui.integrator.common.RepositoryUtils
    Method Name: createDBLink(String, String, String, String)
    Method Name: -1
    Repository Error Message: java.sql.SQLException: ORA-02082: a loopback database link must have a connection qualifier
    ==================
    ==================
    How should I proceed further.
    I am expecting URGENT FEEDBACK.
    Reply me on : [email protected] or this OTN Network
    From
    Prashant

  • A stale Connection Factory or Connection Handle may be used in SOA 11g

    Hi all,
    I am working on a outbound process from oracle apps to BPEL. I am using SOA 11.1.1.3 version. I have created connection pool in admin server.
    But BPEL does not pick the messages from ecx_outqueue present in apps.
    Also when i update the Aqadapter in the admin server i get the following message
    Selected Deployments were updated.
    You must also activate the pending changes to commit this, and other updates, to the active system.
    The soa diagonostic log is provided below
    [2011-02-14T02:29:21.248-07:00] [soa_server1] [ERROR] [] [oracle.soa.adapter] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: ohsadmin] [ecid: 004b3eilKBAE4UVQu2q2TH0006H0000Fay,1:30378] [APP: soa-infra] [dcid: 49c8ed318246db94:41013faa:12d7ab8287f:-7fff-0000000000002a49] [URI: /em/faces/ai/soa/composite] JCABinding=> Invoice_OracleApps *Error while performing endpoint Activation: javax.resource.spi.IllegalStateException: [Connector:199176]Unable to execute allocateConnection(...) on ConnectionManager. A stale Connection Factory or Connection Handle may be used. The connection pool associated with it has already been destroyed. Try to re-lookup Connection Factory eis/AQ/ExtEBizConn_Factory from JNDI and get a new Connection Handle.*
    [2011-02-14T02:29:21.248-07:00] [soa_server1] [ERROR] [] [oracle.soa.adapter] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: ohsadmin] [ecid: 004b3eilKBAE4UVQu2q2TH0006H0000Fay,1:30378] [APP: soa-infra] [dcid: 49c8ed318246db94:41013faa:12d7ab8287f:-7fff-0000000000002a49] [URI: /em/faces/ai/soa/composite] JCABinding=> Invoice_OracleApps [[
    javax.resource.spi.IllegalStateException: [Connector:199176]Unable to execute allocateConnection(...) on ConnectionManager. A stale Connection Factory or Connection Handle may be used. The connection pool associated with it has already been destroyed. Try to re-lookup Connection Factory eis/AQ/ExtEBizConn_Factory from JNDI and get a new Connection Handle.
    Can anyone provide some inputs on this?

    Hi Anuj,
    I have followed the following steps mentioned in the metalink ID 1235943.1 but still it is throwing the same error.
    1.Log on to your Admin console and navigate to Domain -> Deployments -> <adapter name> -> Configuration Tab -> Outbound Connection Pools Tab -> Under Groups and Instances expand the javax.resource.cci.ConnectionFactory
    2.Locate and select the adapter JNDI and click on the Connection Pool Tab.
    3.Please check to see if Shrinking is enabled. If not, please enable it.
    4.Please check the value for Shrink Frequency Seconds. The default for some connection pools is as high as 900 seconds. Please reset this to 120 seconds or less.
    5.Activate your changes.
    6.If this does not improve the situation, please also try increasing the max size of your connection pool.
    Please advice if any other solution is there.
    Thanks,
    Dhiraj Mishra

  • How to configure to identify to reconnect on a stale connection?

    Hi,
    I am using oracle App Server 10.1.3.1.0 and oracle BPEL. BPEL uses TOPLINK over all of its Database Adapters. I am also using Oracle Server's connection factory and Data source in order to acquire a connection.
    While execution due to some reason, connection pool loses connection with Database. Toplink is not able to resolve the stale connection and tries to connect which is leading to an errenous situation. Exception as:
    [r]
    Caused by Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.exceptions.DatabaseExceptionInternal Exception: java.sql.SQLException: Listener refused the connection with the following error:ORA-12519, TNS:no appropriate service handler foundThe Connection descriptor used by the client was:mrtudev12:1521:xeError Code: 0.     at oracle.tip.adapter.db.exceptions.DBResourceException.createEISException(DBResourceException.java:362)     at oracle.tip.adapter.db.exceptions.DBResourceException.outboundWriteException(DBResourceException.java:410)     at oracle.tip.adapter.db.DBInteraction.executeOutboundWrite(DBInteraction.java:933)     at oracle.tip.adapter.db.DBInteraction.execute(DBInteraction.java:211)     at oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA.executeRequestResponseOperation(WSIFOperation_JCA.java:480)     at oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA.executeInputOnlyOperation(WSIFOperation_JCA.java:726)     at com.collaxa.cube.ws.WSIFInvocationHandler.invoke(WSIFInvocationHandler.java:425)     at com.collaxa.cube.ws.WSInvocationManager.invoke2(WSInvocationManager.java:416)     at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:222)     at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__invoke(BPELInvokeWMP.java:736)     at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:371)     at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:195)
    [r]
    Please suggest that is there is a way that i can configure toplink to acquire a valid managed connection from Pool? or can identify between a stale and live connection?
    Thanks

    You need to define an ExceptionHandler and handle the code of reconnecting to the db in the ExceptionHandler. The following link should be of some use.
    http://www.oracle.com/technology/products/ias/toplink/doc/1013/main/_html/sescfg007.htm

  • Error in starting workflow queue listener

    I have registered jobs with OEM using Warehouse builder workflow deployment
    wizard. Following jobs has been registerd with OEM :
    1) ACRM_IWF_ACRM_PWF
    2)ACRM_IWF_OWB_STD_BEGIN
    3) ACRM_IWF_OWB_STD_END
    4) ACRM_IWF_OWB_STD_ERROR
    Now i submit "ACRM_IWF_ACRM_PWF" from the OEM . I shows me status of the JOB as
    "Failed" and gives the following error message:
    Error in starting workflow listener: ** Initializing queue listener
    ** Initialized queue listener
    ** Recovering item type ACRM_IWF
    ** In recovery mode
    ** Recovery complete
    ** Processing all item types
    ** Waiting to dequeue message in listener
    ** Processing job 0x4143524D5F4957465F4F57425F5354445F424547494E
    Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String
    index out of range: -1
    at java.lang.String.substring(String.java:1085)
    at
    oracle.wh.runtime.workflowrt.QueueListener.parseParameters(QueueListener.java:10
    03)
    at oracle.wh.runtime.workflowrt.QueueListener.startJob(QueueListener.java:798)
    at
    oracle.wh.runtime.workflowrt.QueueListener.processJobs(QueueListener.java:746)
    at
    oracle.wh.runtime.workflowrt.QueueListener.initAndRun(QueueListener.java:299)
    at oracle.wh.runtime.workflowrt.QueueListener.main(QueueListener.java:197)
    1

    This is not actually a Workflow component, this is part of the Oracle Warehouse Builder product, although the name is similar to the Workflow Agent Listener in v2.6.
    I have registered jobs with OEM using Warehouse builder workflow deployment
    wizard. Following jobs has been registerd with OEM :
    1) ACRM_IWF_ACRM_PWF
    2)ACRM_IWF_OWB_STD_BEGIN
    3) ACRM_IWF_OWB_STD_END
    4) ACRM_IWF_OWB_STD_ERROR
    Now i submit "ACRM_IWF_ACRM_PWF" from the OEM . I shows me status of the JOB as
    "Failed" and gives the following error message:
    Error in starting workflow listener: ** Initializing queue listener
    ** Initialized queue listener
    ** Recovering item type ACRM_IWF
    ** In recovery mode
    ** Recovery complete
    ** Processing all item types
    ** Waiting to dequeue message in listener
    ** Processing job 0x4143524D5F4957465F4F57425F5354445F424547494E
    Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String
    index out of range: -1
    at java.lang.String.substring(String.java:1085)
    at
    oracle.wh.runtime.workflowrt.QueueListener.parseParameters(QueueListener.java:10
    03)
    at oracle.wh.runtime.workflowrt.QueueListener.startJob(QueueListener.java:798)
    at
    oracle.wh.runtime.workflowrt.QueueListener.processJobs(QueueListener.java:746)
    at
    oracle.wh.runtime.workflowrt.QueueListener.initAndRun(QueueListener.java:299)
    at oracle.wh.runtime.workflowrt.QueueListener.main(QueueListener.java:197)
    1

  • Invalid or Stale Connection found in the Connection Cache

    Hi, all.
    I try to use Oracle MapViewer 11g to display real-time GPS data - JavaScrip API refreshes FOI every 10 seconds. And I get every 3-4 minutes "Invalid or Stale Connection found in the Connection Cache" error. Does anybody know how to prevent it?
    Thanks,
    Ihor.
    P.S. Here is the stack trace from mapviewer.log:
    24-Nov-2009 2:41:15 PM oracle.sdovis.theme.DynGeomThemeProducer prepareData
    SEVERE: Error fetching data.
    java.sql.SQLException: Invalid or Stale Connection found in the Connection Cache
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:116)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:177)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:233)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:407)
         at oracle.jdbc.pool.OracleImplicitConnectionCache.getConnection(OracleImplicitConnectionCache.java:403)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:374)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:178)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:156)
         at oracle.sdovis.ds.NativeOracleDataSource.getConnection(NativeOracleDataSource.java:306)
         at oracle.sdovis.ds.DSUtil.getDBConnection(DSUtil.java:103)
         at oracle.sdovis.theme.DynGeomThemeProducer.prepareData(DynGeomThemeProducer.java:307)
         at oracle.sdovis.Theme.prepareData(Theme.java:183)
         at oracle.sdovis.LoadThemeData2.run(LoadThemeData2.java:67)
         at oracle.sdovis.DBMapMaker.prepareThemes2(DBMapMaker.java:2289)
         at oracle.sdovis.DBMapMaker.prepareThemes(DBMapMaker.java:2221)
         at oracle.lbs.foi.FOIDataProducer.getFoiData(FOIDataProducer.java:143)
         at oracle.lbs.foi.ThemeRenderingThread.getFeatures(ThemeRenderingThread.java:742)
         at oracle.lbs.foi.ThemeRenderingThread.render(ThemeRenderingThread.java:244)
         at oracle.lbs.foi.ThemeRenderingThread.run(ThemeRenderingThread.java:159)
    24-Nov-2009 2:41:15 PM oracle.sdovis.LoadThemeData2 run
    SEVERE: Exception fetching data for theme GPS_MESSAGES.
    Message:null
    Description: Nested exception is:
    java.sql.SQLException: Invalid or Stale Connection found in the Connection Cache
    java.sql.SQLException: Invalid or Stale Connection found in the Connection Cache
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:116)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:177)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:233)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:407)
         at oracle.jdbc.pool.OracleImplicitConnectionCache.getConnection(OracleImplicitConnectionCache.java:403)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:374)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:178)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:156)
         at oracle.sdovis.ds.NativeOracleDataSource.getConnection(NativeOracleDataSource.java:306)
         at oracle.sdovis.ds.DSUtil.getDBConnection(DSUtil.java:103)
         at oracle.sdovis.theme.DynGeomThemeProducer.prepareData(DynGeomThemeProducer.java:307)
         at oracle.sdovis.Theme.prepareData(Theme.java:183)
         at oracle.sdovis.LoadThemeData2.run(LoadThemeData2.java:67)
         at oracle.sdovis.DBMapMaker.prepareThemes2(DBMapMaker.java:2289)
         at oracle.sdovis.DBMapMaker.prepareThemes(DBMapMaker.java:2221)
         at oracle.lbs.foi.FOIDataProducer.getFoiData(FOIDataProducer.java:143)
         at oracle.lbs.foi.ThemeRenderingThread.getFeatures(ThemeRenderingThread.java:742)
         at oracle.lbs.foi.ThemeRenderingThread.render(ThemeRenderingThread.java:244)
         at oracle.lbs.foi.ThemeRenderingThread.run(ThemeRenderingThread.java:159)
    24-Nov-2009 2:41:18 PM oracle.sdovis.theme.DynGeomThemeProducer prepareData
    SEVERE: Error fetching data.
    java.sql.SQLException: Invalid or Stale Connection found in the Connection Cache
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:116)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:177)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:233)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:407)
         at oracle.jdbc.pool.OracleImplicitConnectionCache.getConnection(OracleImplicitConnectionCache.java:403)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:374)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:178)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:156)
         at oracle.sdovis.ds.NativeOracleDataSource.getConnection(NativeOracleDataSource.java:306)
         at oracle.sdovis.ds.DSUtil.getDBConnection(DSUtil.java:103)
         at oracle.sdovis.theme.DynGeomThemeProducer.prepareData(DynGeomThemeProducer.java:307)
         at oracle.sdovis.Theme.prepareData(Theme.java:183)
         at oracle.sdovis.LoadThemeData2.run(LoadThemeData2.java:67)
         at oracle.sdovis.DBMapMaker.prepareThemes2(DBMapMaker.java:2289)
         at oracle.sdovis.DBMapMaker.prepareThemes(DBMapMaker.java:2221)
         at oracle.lbs.foi.FOIDataProducer.getFoiData(FOIDataProducer.java:143)
         at oracle.lbs.foi.ThemeRenderingThread.getFeatures(ThemeRenderingThread.java:742)
         at oracle.lbs.foi.ThemeRenderingThread.render(ThemeRenderingThread.java:244)
         at oracle.lbs.foi.ThemeRenderingThread.run(ThemeRenderingThread.java:159)
    24-Nov-2009 2:41:18 PM oracle.sdovis.LoadThemeData2 run
    SEVERE: Exception fetching data for theme GPS_MESSAGES.
    Message:null
    Description: Nested exception is:
    java.sql.SQLException: Invalid or Stale Connection found in the Connection Cache
    java.sql.SQLException: Invalid or Stale Connection found in the Connection Cache
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:116)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:177)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:233)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:407)
         at oracle.jdbc.pool.OracleImplicitConnectionCache.getConnection(OracleImplicitConnectionCache.java:403)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:374)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:178)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:156)
         at oracle.sdovis.ds.NativeOracleDataSource.getConnection(NativeOracleDataSource.java:306)
         at oracle.sdovis.ds.DSUtil.getDBConnection(DSUtil.java:103)
         at oracle.sdovis.theme.DynGeomThemeProducer.prepareData(DynGeomThemeProducer.java:307)
         at oracle.sdovis.Theme.prepareData(Theme.java:183)
         at oracle.sdovis.LoadThemeData2.run(LoadThemeData2.java:67)
         at oracle.sdovis.DBMapMaker.prepareThemes2(DBMapMaker.java:2289)
         at oracle.sdovis.DBMapMaker.prepareThemes(DBMapMaker.java:2221)
         at oracle.lbs.foi.FOIDataProducer.getFoiData(FOIDataProducer.java:143)
         at oracle.lbs.foi.ThemeRenderingThread.getFeatures(ThemeRenderingThread.java:742)
         at oracle.lbs.foi.ThemeRenderingThread.render(ThemeRenderingThread.java:244)
         at oracle.lbs.foi.ThemeRenderingThread.run(ThemeRenderingThread.java:159)
    24-Nov-2009 2:41:21 PM oracle.sdovis.theme.DynGeomThemeProducer prepareData
    SEVERE: Error fetching data.
    java.sql.SQLException: Invalid or Stale Connection found in the Connection Cache
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:116)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:177)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:233)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:407)
         at oracle.jdbc.pool.OracleImplicitConnectionCache.getConnection(OracleImplicitConnectionCache.java:403)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:374)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:178)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:156)
         at oracle.sdovis.ds.NativeOracleDataSource.getConnection(NativeOracleDataSource.java:306)
         at oracle.sdovis.ds.DSUtil.getDBConnection(DSUtil.java:103)
         at oracle.sdovis.theme.DynGeomThemeProducer.prepareData(DynGeomThemeProducer.java:307)
         at oracle.sdovis.Theme.prepareData(Theme.java:183)
         at oracle.sdovis.LoadThemeData2.run(LoadThemeData2.java:67)
         at oracle.sdovis.DBMapMaker.prepareThemes2(DBMapMaker.java:2289)
         at oracle.sdovis.DBMapMaker.prepareThemes(DBMapMaker.java:2221)
         at oracle.lbs.foi.FOIDataProducer.getFoiData(FOIDataProducer.java:143)
         at oracle.lbs.foi.ThemeRenderingThread.getFeatures(ThemeRenderingThread.java:742)
         at oracle.lbs.foi.ThemeRenderingThread.render(ThemeRenderingThread.java:244)
         at oracle.lbs.foi.ThemeRenderingThread.run(ThemeRenderingThread.java:159)
    24-Nov-2009 2:41:21 PM oracle.sdovis.LoadThemeData2 run
    SEVERE: Exception fetching data for theme GPS_MESSAGES.
    Message:null
    Description: Nested exception is:
    java.sql.SQLException: Invalid or Stale Connection found in the Connection Cache
    java.sql.SQLException: Invalid or Stale Connection found in the Connection Cache
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:116)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:177)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:233)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:407)
         at oracle.jdbc.pool.OracleImplicitConnectionCache.getConnection(OracleImplicitConnectionCache.java:403)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:374)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:178)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:156)
         at oracle.sdovis.ds.NativeOracleDataSource.getConnection(NativeOracleDataSource.java:306)
         at oracle.sdovis.ds.DSUtil.getDBConnection(DSUtil.java:103)
         at oracle.sdovis.theme.DynGeomThemeProducer.prepareData(DynGeomThemeProducer.java:307)
         at oracle.sdovis.Theme.prepareData(Theme.java:183)
         at oracle.sdovis.LoadThemeData2.run(LoadThemeData2.java:67)
         at oracle.sdovis.DBMapMaker.prepareThemes2(DBMapMaker.java:2289)
         at oracle.sdovis.DBMapMaker.prepareThemes(DBMapMaker.java:2221)
         at oracle.lbs.foi.FOIDataProducer.getFoiData(FOIDataProducer.java:143)
         at oracle.lbs.foi.ThemeRenderingThread.getFeatures(ThemeRenderingThread.java:742)
         at oracle.lbs.foi.ThemeRenderingThread.render(ThemeRenderingThread.java:244)
         at oracle.lbs.foi.ThemeRenderingThread.run(ThemeRenderingThread.java:159)
    24-Nov-2009 2:41:21 PM oracle.lbs.foi.FOIServlet doPost
    SEVERE: MAPVIEWER-06009: Error processing an FOI request.
    Message:Error fetching theme based FOI data.
    Tue Nov 24 14:41:21 EST 2009
    Severity: 0
    Description:
    Message:null
    Description: Nested exception is:
    java.sql.SQLException: Invalid or Stale Connection found in the Connection Cache
    java.sql.SQLException: Invalid or Stale Connection found in the Connection Cache
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:116)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:177)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:233)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:407)
         at oracle.jdbc.pool.OracleImplicitConnectionCache.getConnection(OracleImplicitConnectionCache.java:403)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:374)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:178)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:156)
         at oracle.sdovis.ds.NativeOracleDataSource.getConnection(NativeOracleDataSource.java:306)
         at oracle.sdovis.ds.DSUtil.getDBConnection(DSUtil.java:103)
         at oracle.sdovis.theme.DynGeomThemeProducer.prepareData(DynGeomThemeProducer.java:307)
         at oracle.sdovis.Theme.prepareData(Theme.java:183)
         at oracle.sdovis.LoadThemeData2.run(LoadThemeData2.java:67)
         at oracle.sdovis.DBMapMaker.prepareThemes2(DBMapMaker.java:2289)
         at oracle.sdovis.DBMapMaker.prepareThemes(DBMapMaker.java:2221)
         at oracle.lbs.foi.FOIDataProducer.getFoiData(FOIDataProducer.java:143)
         at oracle.lbs.foi.ThemeRenderingThread.getFeatures(ThemeRenderingThread.java:742)
         at oracle.lbs.foi.ThemeRenderingThread.render(ThemeRenderingThread.java:244)
         at oracle.lbs.foi.ThemeRenderingThread.run(ThemeRenderingThread.java:159)
    24-Nov-2009 2:46:15 PM oracle.sdovis.theme.DynGeomThemeProducer prepareData
    SEVERE: Error fetching data.
    java.sql.SQLException: Invalid or Stale Connection found in the Connection Cache
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:116)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:177)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:233)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:407)
         at oracle.jdbc.pool.OracleImplicitConnectionCache.getConnection(OracleImplicitConnectionCache.java:403)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:374)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:178)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:156)
         at oracle.sdovis.ds.NativeOracleDataSource.getConnection(NativeOracleDataSource.java:306)
         at oracle.sdovis.ds.DSUtil.getDBConnection(DSUtil.java:103)
         at oracle.sdovis.theme.DynGeomThemeProducer.prepareData(DynGeomThemeProducer.java:307)
         at oracle.sdovis.Theme.prepareData(Theme.java:183)
         at oracle.sdovis.LoadThemeData2.run(LoadThemeData2.java:67)
         at oracle.sdovis.DBMapMaker.prepareThemes2(DBMapMaker.java:2289)
         at oracle.sdovis.DBMapMaker.prepareThemes(DBMapMaker.java:2221)
         at oracle.lbs.foi.FOIDataProducer.getFoiData(FOIDataProducer.java:143)
         at oracle.lbs.foi.ThemeRenderingThread.getFeatures(ThemeRenderingThread.java:742)
         at oracle.lbs.foi.ThemeRenderingThread.render(ThemeRenderingThread.java:244)
         at oracle.lbs.foi.ThemeRenderingThread.run(ThemeRenderingThread.java:159)
    24-Nov-2009 2:46:15 PM oracle.sdovis.LoadThemeData2 run
    SEVERE: Exception fetching data for theme GPS_MESSAGES.
    Message:null
    Description: Nested exception is:
    java.sql.SQLException: Invalid or Stale Connection found in the Connection Cache
    java.sql.SQLException: Invalid or Stale Connection found in the Connection Cache
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:116)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:177)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:233)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:407)
         at oracle.jdbc.pool.OracleImplicitConnectionCache.getConnection(OracleImplicitConnectionCache.java:403)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:374)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:178)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:156)
         at oracle.sdovis.ds.NativeOracleDataSource.getConnection(NativeOracleDataSource.java:306)
         at oracle.sdovis.ds.DSUtil.getDBConnection(DSUtil.java:103)
         at oracle.sdovis.theme.DynGeomThemeProducer.prepareData(DynGeomThemeProducer.java:307)
         at oracle.sdovis.Theme.prepareData(Theme.java:183)
         at oracle.sdovis.LoadThemeData2.run(LoadThemeData2.java:67)
         at oracle.sdovis.DBMapMaker.prepareThemes2(DBMapMaker.java:2289)
         at oracle.sdovis.DBMapMaker.prepareThemes(DBMapMaker.java:2221)
         at oracle.lbs.foi.FOIDataProducer.getFoiData(FOIDataProducer.java:143)
         at oracle.lbs.foi.ThemeRenderingThread.getFeatures(ThemeRenderingThread.java:742)
         at oracle.lbs.foi.ThemeRenderingThread.render(ThemeRenderingThread.java:244)
         at oracle.lbs.foi.ThemeRenderingThread.run(ThemeRenderingThread.java:159)
    24-Nov-2009 2:46:15 PM oracle.lbs.foi.FOIServlet doPost
    SEVERE: MAPVIEWER-06009: Error processing an FOI request.
    Message:Error fetching theme based FOI data.
    Tue Nov 24 14:46:15 EST 2009
    Severity: 0
    Description:
    Message:null
    Description: Nested exception is:
    java.sql.SQLException: Invalid or Stale Connection found in the Connection Cache
    java.sql.SQLException: Invalid or Stale Connection found in the Connection Cache
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:116)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:177)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:233)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:407)
         at oracle.jdbc.pool.OracleImplicitConnectionCache.getConnection(OracleImplicitConnectionCache.java:403)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:374)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:178)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:156)
         at oracle.sdovis.ds.NativeOracleDataSource.getConnection(NativeOracleDataSource.java:306)
         at oracle.sdovis.ds.DSUtil.getDBConnection(DSUtil.java:103)
         at oracle.sdovis.theme.DynGeomThemeProducer.prepareData(DynGeomThemeProducer.java:307)
         at oracle.sdovis.Theme.prepareData(Theme.java:183)
         at oracle.sdovis.LoadThemeData2.run(LoadThemeData2.java:67)
         at oracle.sdovis.DBMapMaker.prepareThemes2(DBMapMaker.java:2289)
         at oracle.sdovis.DBMapMaker.prepareThemes(DBMapMaker.java:2221)
         at oracle.lbs.foi.FOIDataProducer.getFoiData(FOIDataProducer.java:143)
         at oracle.lbs.foi.ThemeRenderingThread.getFeatures(ThemeRenderingThread.java:742)
         at oracle.lbs.foi.ThemeRenderingThread.render(ThemeRenderingThread.java:244)
         at oracle.lbs.foi.ThemeRenderingThread.run(ThemeRenderingThread.java:159)
    24-Nov-2009 2:48:04 PM oracle.sdovis.theme.DynGeomThemeProducer prepareData
    SEVERE: Error fetching data.
    java.sql.SQLException: Invalid or Stale Connection found in the Connection Cache
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:116)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:177)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:233)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:407)
         at oracle.jdbc.pool.OracleImplicitConnectionCache.getConnection(OracleImplicitConnectionCache.java:403)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:374)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:178)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:156)
         at oracle.sdovis.ds.NativeOracleDataSource.getConnection(NativeOracleDataSource.java:306)
         at oracle.sdovis.ds.DSUtil.getDBConnection(DSUtil.java:103)
         at oracle.sdovis.theme.DynGeomThemeProducer.prepareData(DynGeomThemeProducer.java:307)
         at oracle.sdovis.Theme.prepareData(Theme.java:183)
         at oracle.sdovis.LoadThemeData2.run(LoadThemeData2.java:67)
         at oracle.sdovis.DBMapMaker.prepareThemes2(DBMapMaker.java:2289)
         at oracle.sdovis.DBMapMaker.prepareThemes(DBMapMaker.java:2221)
         at oracle.lbs.foi.FOIDataProducer.getFoiData(FOIDataProducer.java:143)
         at oracle.lbs.foi.ThemeRenderingThread.getFeatures(ThemeRenderingThread.java:742)
         at oracle.lbs.foi.ThemeRenderingThread.render(ThemeRenderingThread.java:244)
         at oracle.lbs.foi.ThemeRenderingThread.run(ThemeRenderingThread.java:159)
    24-Nov-2009 2:48:04 PM oracle.sdovis.LoadThemeData2 run
    SEVERE: Exception fetching data for theme GPS_MESSAGES.
    Message:null
    Description: Nested exception is:
    java.sql.SQLException: Invalid or Stale Connection found in the Connection Cache
    java.sql.SQLException: Invalid or Stale Connection found in the Connection Cache
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:116)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:177)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:233)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:407)
         at oracle.jdbc.pool.OracleImplicitConnectionCache.getConnection(OracleImplicitConnectionCache.java:403)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:374)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:178)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:156)
         at oracle.sdovis.ds.NativeOracleDataSource.getConnection(NativeOracleDataSource.java:306)
         at oracle.sdovis.ds.DSUtil.getDBConnection(DSUtil.java:103)
         at oracle.sdovis.theme.DynGeomThemeProducer.prepareData(DynGeomThemeProducer.java:307)
         at oracle.sdovis.Theme.prepareData(Theme.java:183)
         at oracle.sdovis.LoadThemeData2.run(LoadThemeData2.java:67)
         at oracle.sdovis.DBMapMaker.prepareThemes2(DBMapMaker.java:2289)
         at oracle.sdovis.DBMapMaker.prepareThemes(DBMapMaker.java:2221)
         at oracle.lbs.foi.FOIDataProducer.getFoiData(FOIDataProducer.java:143)
         at oracle.lbs.foi.ThemeRenderingThread.getFeatures(ThemeRenderingThread.java:742)
         at oracle.lbs.foi.ThemeRenderingThread.render(ThemeRenderingThread.java:244)
         at oracle.lbs.foi.ThemeRenderingThread.run(ThemeRenderingThread.java:159)
    24-Nov-2009 2:48:04 PM oracle.lbs.foi.FOIServlet doPost
    SEVERE: MAPVIEWER-06009: Error processing an FOI request.
    Message:Error fetching theme based FOI data.
    Tue Nov 24 14:48:04 EST 2009
    Severity: 0
    Description:
    Message:null
    Description: Nested exception is:
    java.sql.SQLException: Invalid or Stale Connection found in the Connection Cache
    java.sql.SQLException: Invalid or Stale Connection found in the Connection Cache
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:116)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:177)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:233)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:407)
         at oracle.jdbc.pool.OracleImplicitConnectionCache.getConnection(OracleImplicitConnectionCache.java:403)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:374)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:178)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:156)
         at oracle.sdovis.ds.NativeOracleDataSource.getConnection(NativeOracleDataSource.java:306)
         at oracle.sdovis.ds.DSUtil.getDBConnection(DSUtil.java:103)
         at oracle.sdovis.theme.DynGeomThemeProducer.prepareData(DynGeomThemeProducer.java:307)
         at oracle.sdovis.Theme.prepareData(Theme.java:183)
         at oracle.sdovis.LoadThemeData2.run(LoadThemeData2.java:67)
         at oracle.sdovis.DBMapMaker.prepareThemes2(DBMapMaker.java:2289)
         at oracle.sdovis.DBMapMaker.prepareThemes(DBMapMaker.java:2221)
         at oracle.lbs.foi.FOIDataProducer.getFoiData(FOIDataProducer.java:143)
         at oracle.lbs.foi.ThemeRenderingThread.getFeatures(ThemeRenderingThread.java:742)
         at oracle.lbs.foi.ThemeRenderingThread.render(ThemeRenderingThread.java:244)
         at oracle.lbs.foi.ThemeRenderingThread.run(ThemeRenderingThread.java:159)
    24-Nov-2009 2:50:45 PM oracle.lbs.foi.ThemeAbortingThread run
    WARNING: Aborting theme: killing the theme rendering thread forcefully.
    24-Nov-2009 2:50:54 PM oracle.sdovis.theme.DynGeomThemeProducer prepareData
    SEVERE: Error fetching data.
    java.sql.SQLException: Invalid or Stale Connection found in the Connection Cache
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:116)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:177)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:233)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:407)
         at oracle.jdbc.pool.OracleImplicitConnectionCache.getConnection(OracleImplicitConnectionCache.java:403)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:374)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:178)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:156)
         at oracle.sdovis.ds.NativeOracleDataSource.getConnection(NativeOracleDataSource.java:306)
         at oracle.sdovis.ds.DSUtil.getDBConnection(DSUtil.java:103)
         at oracle.sdovis.theme.DynGeomThemeProducer.prepareData(DynGeomThemeProducer.java:307)
         at oracle.sdovis.Theme.prepareData(Theme.java:183)
         at oracle.sdovis.LoadThemeData2.run(LoadThemeData2.java:67)
         at oracle.sdovis.DBMapMaker.prepareThemes2(DBMapMaker.java:2289)
         at oracle.sdovis.DBMapMaker.prepareThemes(DBMapMaker.java:2221)
         at oracle.lbs.foi.FOIDataProducer.getFoiData(FOIDataProducer.java:143)
         at oracle.lbs.foi.ThemeRenderingThread.getFeatures(ThemeRenderingThread.java:742)
         at oracle.lbs.foi.ThemeRenderingThread.render(ThemeRenderingThread.java:244)
         at oracle.lbs.foi.ThemeRenderingThread.run(ThemeRenderingThread.java:159)
    24-Nov-2009 2:50:54 PM oracle.sdovis.LoadThemeData2 run
    SEVERE: Exception fetching data for theme GPS_MESSAGES.
    Message:null
    Description: Nested exception is:
    java.sql.SQLException: Invalid or Stale Connection found in the Connection Cache
    java.sql.SQLException: Invalid or Stale Connection found in the Connection Cache
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:116)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:177)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:233)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:407)
         at oracle.jdbc.pool.OracleImplicitConnectionCache.getConnection(OracleImplicitConnectionCache.java:403)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:374)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:178)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:156)
         at oracle.sdovis.ds.NativeOracleDataSource.getConnection(NativeOracleDataSource.java:306)
         at oracle.sdovis.ds.DSUtil.getDBConnection(DSUtil.java:103)
         at oracle.sdovis.theme.DynGeomThemeProducer.prepareData(DynGeomThemeProducer.java:307)
         at oracle.sdovis.Theme.prepareData(Theme.java:183)
         at oracle.sdovis.LoadThemeData2.run(LoadThemeData2.java:67)
         at oracle.sdovis.DBMapMaker.prepareThemes2(DBMapMaker.java:2289)
         at oracle.sdovis.DBMapMaker.prepareThemes(DBMapMaker.java:2221)
         at oracle.lbs.foi.FOIDataProducer.getFoiData(FOIDataProducer.java:143)
         at oracle.lbs.foi.ThemeRenderingThread.getFeatures(ThemeRenderingThread.java:742)
         at oracle.lbs.foi.ThemeRenderingThread.render(ThemeRenderingThread.java:244)
         at oracle.lbs.foi.ThemeRenderingThread.run(ThemeRenderingThread.java:159)

    The error looks like a generic jdbc/database problem. Will the error go away if you restart mapviewer?

  • Oracle 9i - Invalid or Stale Connection found in the Connection cache

    Hi all,
    I did the following steps:
    1. Deployed my application in Jboss and started the jboss and my application.
    2. Re-started my database when the application is alive and running.
    3. Tried to login to the application.
    4. I got the following exception:
    NO MORE DATA TO READ
    5. Then i set the Oracle Data Source property DB_VALIDATE_CONNECTION=true via my application.
    6. But still i get the following exception when i log in first time to the application. But not in subsequent attempts. I am able to login to the application except for the first time.
    “java.sql.SQLException: Invalid or Stale Connection found in the Connection Cache”.
    Please let me know why this exception occurs.
    Thanks!!

    The error looks like a generic jdbc/database problem. Will the error go away if you restart mapviewer?

  • Use listener to connect to database

    i want to use a listener to connect to an oracle database in tomcat 4, in my application web.xml y type:
    <listener>
    <listener-class>
    ResourceManagerListener2
    </listener-class>
    </listener>
    the class ResourceManagerListener2 which is in my web-inf/classes:
    import javax.servlet.*;
    import javax.servlet.http.*;
    import oracle.jdbc.pool.*;
    public class ResourceManagerListener2 implements
         ServletContextListener {
         private OracleConnectionCacheImpl ds = null;
         public void contextInitialized(ServletContextEvent sce) {
              ServletContext application = sce.getServletContext( );
              String jdbcURL = application.getInitParameter("jdbcURL");
              String user = application.getInitParameter("user");
              String password = application.getInitParameter("password");
              String maxLimit = application.getInitParameter("maxLimit");
              try {
              ds = new OracleConnectionCacheImpl( );
              ds.setURL(jdbcURL);
              ds.setMaxLimit(Integer.parseInt(maxLimit));
              ds.setUser("principal");
              ds.setPassword("fanta");
              catch (Exception e) {
              application.log("Failed to create data source: " +
              e.getMessage( ));
              application.setAttribute("appDataSource", ds);
         public void contextDestroyed(ServletContextEvent sce) {
              ServletContext application = sce.getServletContext( );
              application.removeAttribute("appDataSource");
              // Close the connections in the DataSource
              try {
                   ds.close( );
              catch (java.sql.SQLException e) {}
              ds = null;
    and then i use a servlet to get the connection but i get an error and i don't know if the listener is working ok, the error appears in the line Connection connection = ds.getConnection(); with an exception of pointer null..... if someone can help me pleasee...
    this is my servlet:
    import java.io.*;
    import java.sql.*;
    import javax.sql.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class ConnectionServlet extends HttpServlet {
    public void doGet(
    HttpServletRequest request,
    HttpServletResponse response)
    throws IOException, ServletException {
    response.setContentType("text/html");
    Statement statement = null;
    ResultSet resultSet = null;
    String userName = null;
    try {
    ServletContext application = getServletContext( );
    DataSource ds = (DataSource) application.getAttribute("appDataSource");
    Connection connection = ds.getConnection();
    // Test the connection
    statement = connection.createStatement( );
    resultSet = statement.executeQuery(
    "select rv_domain from principal.cg_ref_codes where rownum = 1");
    if (resultSet.next( ))
    userName = resultSet.getString(1);
    catch (SQLException e) {
    out.println("DedicatedConnection.doGet( ) SQLException: " +
    e.getMessage( ) + "<p>");
    finally {
    if (resultSet != null)
    try { resultSet.close( ); } catch (SQLException ignore) { }
    if (statement != null)
    try { statement.close( ); } catch (SQLException ignore) { }
    out.println("Hello " + userName + "!<p>");
    public void doPost(
    HttpServletRequest request,
    HttpServletResponse response)
    throws IOException, ServletException {
    doGet(request, response);
    thanks.

    You must be joking . Please re-post that monstrosity and format it using the 'code' button above the posting window. Who on Earth can read that?
    - Saish

  • JDBC stale connections and app hanging

    Hello,
    After a while idle my app stop working(it actually hangs) and after waiting all I get is the following exception message:
    Caused by: java.sql.SQLException: Invalid or Stale Connection found in the Connection Cache
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208)
    at oracle.jdbc.pool.OracleImplicitConnectionCache.getConnection(OracleImplicitConnectionCache.java:399)
    at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:404)
    at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:189)
    at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:165)
    at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:82)
    My datasource is using following OracleDataSource config values:
    connectionCachingEnabled: true
    connectionCacheProperties: InitialLimit=50, MinLimit=50 , MaxLimit=200, PropertyCheckInterval=300, ConnectionWaitTimeout=60, ValidateConnection=true
    Please, give me some help to figure out what is going on...
    Thanks,
    JV

    Hi,
    The class OracleConnectionCacheManager provides a set of administrative APIs applications can use to manage the connection cache. Using these APIs, applications can refresh stale connections.
    refreshCache API:
    void refreshCache(String cacheName, int mode)
    This refreshes the cache specified by cacheName. There are two modes supported, REFRESH_INVALID_CONNECTIONS and REFRESH_ALL_CONNECTIONS. When invoked with REFRESH_INVALID_CONNECTIONS, each Connection in the cache is checked for validity. If an invalid Connection is found, that connection's resources are removed and replaced with a new Connection. When invoked with REFRESH_ALL_CONNECTIONS, all available connections in the cache are closed and replaced with new valid physical connections.
    -Priyanka

  • Can't listen for connections - Operation not supported

    Hi,
    We have install OSB Client on HP-UX 11i V2 HP rx5670 Server as per Oracle Secure backup Installation Guide.
    But we are getting following error message. Please help us to solve the issue:
    2010/12/29.10:23:02 can't listen for connections - Operation not supported
    # /sbin/init.d/OracleBackup start
    Starting Oracle Secure Backup services daemon.
    2010/12/29.10:23:27 can't listen for connections - Operation not supported
    Thanks
    Khairul/Bangladesh

    Have a look at the observiced.log file to see if that has any more detail, this is in /usr/tmp.
    I would check to see if there is something else on the system that is using TCP port 400 or 10000. On Solaris I've seen the webmin installation using port 10000. Both those ports need to be free for OSB to be able to start.
    With OSB stopped, you can "telnet <hostname> 400" and "telnet <hostname> 10000" to see if it connects. If it does then something is listening on that port.
    You should be able to do "netstat -na" as well, to show you listening ports.
    Rich

  • "Stale connection error" in error_log when hitting "query" button on form

    I created a simple form on a view. It has only 3 buttons:
    next, previous, and query. I hit query and get a 404 error.
    Apache's error_log file says "Stale connection due to Oracle
    error 3114". Anybody seen this?

    Carol, I treid what you said but still can't get it to work.
    Here is the code I have it the after displaying page section.
    declare
    v_myvar varchar2(30);
    v_comp varchar2(30);
    blk varchar2(10):='DEFAULT';
    begin
    if 'a_territory' is not null then
    v_comp:=p_session.get_value_as_varchar2
    (p_block_name=>blk,p_attribute_name=>'A_company_name');
    select rowid into v_myvar from cs_custinfo_view where
    company_name = v_comp;
    bico.buttons_proc(v_myvar);
    end if;
    end;
    The procedure that is called uses the rowid to call a form from
    a button that is created by the procedure. The error I get when
    I first load the form is
    An unexpected error occurred: ORA-01403: no data found
    ORA-01403: no data found (WWV-16016)
    An unexpected error occurred: ORA-01403: no data found (WWV-
    16016)
    The preference path does not exist:
    ORACLE.WEBVIEW.PARAMETERS.1257633639 (WWC-51000)
    I assume this is because there is no rowid present yet?

  • How to manage an Asynchronous Queue???

    Hi all,
    Been searching for quite some time on what the best way is/simply how to manage an Asynchronous Queue.
    I would have thought it was easy, but I'm definately getting the impression I am wrong. Here is some information that I would like to be front-facing on my client (whether Swing/Applet/Web-based hopefully does not make a difference):
    1. The number of messages waiting
    2. The number of messages being processed at the moment
    3. The date/timestamp of each message in waiting
    4. (optional) a user or programatically assigned name for each message in the queue (so that I will know what message I am looking at in-waiting).
    Seems pretty standard, but I don't see a standard way of getting this information! Someone, please show me I'm not insane! =)
    Environment is JDK 1.4.2, J2EE 1.3, JBoss 3.2.2, Message-Driven Beans.
    TIA,
    -D

    1,3 & 4 are possible from the QueueBrowser

  • Listener refuse connection with the following error ORA-12505

    Hi Everyone, Am really new to oracle database, am working on my school project work and am stuck in a middle of this error (Listener refuse connection with the following error ORA-12505).
    I have started the listener serveral time and it's saying that "No service surpported by the LISTENER", I can't access the database via sqldeveloper which trows out the same error (Listener refuse connection with the following error ORA-12505, TNS:Listener does not currently know of SID given in connect descriptor.) Moreover my em show red down arrow for the listener. Here are my hard & software details.
    Oracle 11.1.0
    Os: Red Hat Enterprise Linux 4 ( Running the OS via Vmware workstation)
    TNSNAME.ORA
         LISTENER2=
         (DESCRIPTION_LIST=
         (DESCRIPTION=
         ((ADDRESS = (PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1522))
         LISTENER1=
         (DESCRIPTION_LIST=
         (DESCRIPTION=
         (ADDRESS = (PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1523))
         LISTENER=
         (DESCRIPTION_LIST=
         (DESCRIPTION=
         (ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521))
         (ADDRESS = (PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521))
    Listner,ora
         LISTNER_ORCL
         (ADDRESS_LIST=
         (ADDRESS = (PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1523))
         (ADDRESS = (PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521))
         IMT_ADMI=
         (DESRIPTION=
         (PORT=1522))
         (ADDRESS = (PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1522))
         (ADDRESS = (PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1523))
         (ADDRESS = (PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521))
         (CONNECT_DATA=
         (SERVER=DEDICATED)
         (SERVICE_NAME=imt_admin
         LISTENER_IMTADMIN=
         (ADDRESS_LIST=
         (ADDRESS = (PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1522))
         (ADDRESS = (PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1523))
         (ADDRESS = (PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521))
         ORCL=
         (DESCRIPTION=
         (ADDRESS = (PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1523))
         (ADDRESS = (PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521))
         (CONNECT_DATA=
         (SERVER=DEDICATED)
         (SERVICE_NAME=orcl)
    I read from some forums that I need to edit somethings of which am not really sure cos i don't wanna mess with the database, I need help on what to.
    Thanks for help in advance.

    Use a single listener. There is no need for multiple listeners 99.9999% of the time.
    Have the listener bind the hostname as listening end-point - and not localhost.
    Localhost only allows local processes to connect via TCP. Which is questionable in most environments. Typically you would run clients on other h/w platforms (or VMs) - and this will use the database server's public IPs.
    Type hostname in the console to get the hostname of the server. If the network on that server is suspect (was not manually setup properly by someone knowing network basics), do not bother using the hostname. Use IP address +0.0.0.0+ instead.
    Update the listener.ora file. The LISTENER entry should look something as follows:
    LISTENER =
            (DESCRIPTION_LIST =
                    (DESCRIPTION =
                            (ADDRESS_LIST =(ADDRESS = (PROTOCOL = IPC)(KEY = EXTERNAL)))
                            (ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = <hostname-goes-here>)(PORT = 1521)))
            )You can also simply (and safely) remove/rename the listener.ora file - and start the listener with sane defaults.
    Next, use sqlplus (via the oracle o/s user) to logon as SYSDBA to the database. The database parameter of interest is LOCAL_LISTENER. It should be null (view it using the SQL*Plus command <i>show parameter</i>). If your listener port is 1521, then not a problem.
    If it is not, you need to update/set this parameter with the appropriate port number via the ALTER SYSTEM command.
    Once set/checked, manually instruct the database to register its services with the local listener, via the alter system register command in sqlplus.
    Check and confirm that the listener has received and successfully serviced that registration request by typing lsnrctl services in the oracle o/s console.
    PS. The reason for the error I think is that your are forcing the listener on localhost only - while the default/null local_listener parameter of the database instructs it to contact the listener on the default public IP address of that server. Which does not happen to be localhost IP 127.0.0.1.
    Edited by: Billy Verreynne on Jan 11, 2013 1:06 PM

  • Queue listening startup/shutdown

    I have made a queue listen procedure similar to the aqdemo05.sql example. The source is below. Database is 11g. It now listens for messages on the queues to arrive for 60 seconds and then stops. I would like to alter the procedure in such a way that:
    1. it runs in the background instead of an SQL*Plus session;
    2. it automatically starts when the database starts;
    3. it can be stopped and started using an SQL*Plus session (independently from stopping and starting of the queues).
    How can I do that?
    PROCEDURE LISTEN
    IS
    e_listen_timeout exception;
    pragma exception_init( e_listen_timeout, -25254 );
    v_agent sys.aq$_agent;
    v_agent_list dbms_aq.aq$_agent_list_t;
    v_finish_tx number;
    v_start_tx number;
    begin
    v_agent_list(1) := sys.aq$_agent( null, 'mbr_soap_req_q', null );
    v_agent_list(2) := sys.aq$_agent( null, 'mbr_soap_res_q', null );
    v_start_tx := dbms_utility.get_time;
    loop
    begin
    v_finish_tx := dbms_utility.get_time;
    if v_finish_tx - v_start_tx > 6000
    then
    exit;
    end if;
    dbms_aq.listen
    ( agent_list => v_agent_list
    , wait => 0
    , agent => v_agent
    if v_agent.address like '%MBR_SOAP_REQ_Q%'
    then
    mbr_exe_soap_req;
    elsif v_agent.address like '%MBR_SOAP_RES_Q%'
    then
    mbr_exe_soap_res;
    end if;
    exception
    when e_listen_timeout
    then
    null;
    end;
    end loop;
    end;
    Edited by: trafoc on 8-sep-2010 10:30

    Hi,
    you can make a job in Oracle. You have to look at the package DBMS_SCHEDULER. With this you can create the job. You can schedule the job on every time you need, but also every 5 minutes or so.
    Herald ten Dam
    http://htendam.wordpress.com

  • How the Listening channel connects to Trading partner.

    Hi,
    Could some on pls explain me
    1.How the Administration Tab Listening channel connects to particular Trading Partners, (do we need any extra config for this connection.)
    2.Creating Listening channel does have any dependencies on user, we login into B2B console.
    the way i created a tx is not working here are the steps i followed
    1.Created a sample document(Custome)
    2.created a trading partner
    3.A Agreement in it to read a xml from FTP server.
    4.Configured a Listening channel(FTP).
    5.Deployed the code.
    and it didnt work...!!! :(
    Did i miss something.
    Please some one help me
    Thanks in advance.
    Regards
    Sujan

    1.How the Administration Tab Listening channel connects to particular Trading Partners, (do we need any extra config for this connection.)When you create a listening channel then you select a protocol to be used and you also provide mandatory parameters to connect to the destination. Listening channel uses this information to connect to the target server/location.
    2.Creating Listening channel does have any dependencies on user, we login into B2B console.No, dependencies. Login just decides the privilege of the logged in user and accordingly it displays the content. No other role is played by login.
    and it didnt work...!!!What type of protocol are you using? What parameters you provided in configuration? What type of target server is it? What errors do you see in server log or server-diagnostic log?
    Regards,
    Anuj

Maybe you are looking for

  • Portal Runtime Error  for MSS Iviews

    Hi all, Though this topis has been discussed several times in our forum, i could not make anything from it. Portal Runtime Error <i> An exception occurred while processing a request for : iView : pcd:portal_content/com.ssmcehr.ssmcehr/com.ssmc.pct.eh

  • Hope to have crosstab result

    I have following SQL to get weekly average, SELECT next_day(dt-1,'FRIDAY') FriDate,avg(midpoint),commodity_id,location_id FROM price where location_id in(50,22,33,48) and commodity_id in(7,7,12,8) and dt>=to_date('4/12/1996','mm/dd/yyyy') and dt<=to_

  • Pressing the enter key on the keyboard

    Need to know the trigger or the way to attribute code to pressing de enter key on the Keyboard!!!??? Thanks!!!!!

  • Can I use Time Capsule for a server ?

    hi, i was wondering if I can use Time Capsule for a server. Let's say I have an ubuntu server, and I'm running some websites and web applications on it. I would install these appications on ubuntu but then store the "file folders" of each website or

  • My edits aren't sticking in Adobe Bridge.

    I open from Bridge into Camera Raw, make an edit, then when I return to Bridge the edits haven't applied and I'm left with the original. A .xmp is created but no edits hold. I have to open from Camera Raw into Photoshop to save my edit. Most of my wo