ORA-30928: "Connect by filtering phase runs out of temp tablespace"

i have created a query that is sued to display a data in a label. This particular query will then be stored into a program that we use. The query runs just fine until this morning when it returns the error ORA-30928: "Connect by filtering phase runs out of temp tablespace". I have Googled and found out that I can do any of the following:
Include a NO FILTERING hint - but did not work properly
Increase the temp tablespace - not applicable to me since this runs in a production server that I don't have any access to.
Are there other ways to fix this? By the way, below is the query that I use.
SELECT * FROM(
SELECT
gn.wipdatavalue
, gn.containername
, gn.l
, gn.q
, gn.d
, gn.l2
, gn.q2
, gn.d2
, gn.l3
, gn.q3
, gn.d3
, gn.old
, gn.qtyperbox
, gn.productname
, gn.slot
, gn.dt
, gn.ws_green
, gn.ws_pnr
, gn.ws_pcn
, intn.mkt_number dsn
, gn.low_number
, gn.high_number
, gn.msl
, gn.baketime
, gn.exptime
, NVL(gn.q, 0) + NVL(gn.q2, 0) + NVL(gn.q3, 0) AS qtybox
, row_number () over (partition by slot order by low_number) as n
FROM
SELECT
tr.*
, TO_NUMBER(SUBSTR(wipdatavalue, 1, INSTR (wipdatavalue || '-', '-') - 1)) AS low_number
, TO_NUMBER(SUBSTR(wipdatavalue, 1 + INSTR ( wipdatavalue, '-'))) AS high_number
, pm.msllevel MSL
, pm.baketime BAKETIME
, pm.expstime EXPTIME
FROM trprinting tr
JOIN CONTAINER c ON tr.containername = c.containername
JOIN a_lotattributes ala ON c.containerid = ala.containerid
JOIN product p ON c.productid = p.productid
LEFT JOIN otherdb.pkg_main pm ON trim(p.brandname) = trim(pm.pcode)
WHERE (c.containername = :lot OR tr.SLOT= :lot)
)gn
LEFT JOIN otherdb.intnr intn ON TRIM(gn.productname) = TRIM(intn.part_number)
connect by level <= HIGH_NUMBER + 1 - LOW_NUMBER and LOW_NUMBER = prior LOW_NUMBER and prior SYS_GUID() is not null
ORDER BY low_number,n
WHERE n LIKE :n AND wipdatavalue LIKE :wip AND ROWNUM <= 300 AND wipdatavalue NOT LIKE 0
I am using Oracle 11g too.
Thanks for the help everyone.

Hi,
The documentation implies that the START WITH and CONNECT BY clauses should come before the GROUP BY clause. I've never known it to make a difference before, but you might try putting the GROUP BY clause last.
If you're GROUPing by LEVEL, what's the point of SELECTing MAX (LEVEL)? MAX (LEVEL) will always be the same as LEVEL.
What are you trying to do?
Post some sample data (CREATE TABLE and INSERT statements) and the results you want from that data, and somebody will help you get them.

Similar Messages

  • The connection pool DIMT_DB is running out of connections

    I am facing an issue, the process instances created in activity are not getting routed to my work item. I found the following exception logged in engine DB at the time process instance was created,
    The connection pool DIMT_DB is running out of connections ( 100 % of the pool is in use).
    It is recommendable to expand the size through the Process Administrator.
    can anyone provide me a solution to this issue?
    the maximum pool size is 10. should it be increased?
    does this issue occur when database connection is not closed properly?

    Can anyone please share your ideas?
    Thanks,

  • JCo Connections in WD Model running out

    Hello,
    we have WD application that uses RFC model.
    During a load test we have observed that the connection
    pools are running out of JCo connections. The result is a an error message in the trace file
    and Http 500 response code to the end user.
    Number of concurrent users: 20
    Max Pool Size: 20
    Max Connections: 20
    Exception:
    [code]aused by: com.sap.mw.jco.JCO$Exception: (106) JCO_ERROR_RESOURCE: Connection pool ME_LP_MODELDATA_TSTWEB1_PT_useSSO is exhausted. The current pool size limit is 20 connections.
         at com.sap.mw.jco.JCO$Pool.getClient(JCO.java:5150)
         at com.sap.mw.jco.JCO$PoolManager.getClient(JCO.java:5849)
         at com.sap.mw.jco.JCO$PoolManager.getClient(JCO.java:5799)
         at com.sap.mw.jco.JCO.getClient(JCO.java:8076)
         at com.sap.tc.webdynpro.serverimpl.core.sl.AbstractJCOClientConnection.getClient(AbstractJCOClientConnection.java:393)
         at com.sap.tc.webdynpro.modelimpl.dynamicrfc.AiiModel.getCurrentlyUsedJcoClient(AiiModel.java:191)[/code]
    Questions:
    Is it necessary to have equal number of Max Connections as
    number of potential concurrent users?
    Or is there a way to manually release not used connections?
    Best Regards, Maik

    Hi,
    It is not necessary to create as many connections as there are concurrent users.
    We have to handle the scope of the connection properly and also close the connections once we complete the task.
    Re: How to close a model object connection for Adaptive RFC?
    Regards
    Bharathwaj

  • Query running out of temp

    Hi,
    on my 9.2.0.8 I've got query like this
    select  DISTINCT T.ID_KONTR as ID_KONTR,
                     T.PESEL as PESEL,
                     T.NAZWISKO as NAZWISKO,
                     T.IMIE as IMIE,
                     T.DATA_REJ as DATA_REJ 
    from T,
        (SELECT DISTINCT MAX(T.ID_KONTR) as ID_KONTR  from T  ,
            (select  DISTINCT T.ID_KONTR as ID_KONTR,T.PESEL as PESEL,
                              T.NAZWISKO as NAZWISKO,
                              T.IMIE as IMIE,
                              T.DATA_REJ as DATA_REJ  
                    from T
                    where
                        (T.OK =1)
                       and (T.PESEL is not null)
                       and  T.data_rej between to_date('2011-10-21' , 'YYYY-MM-DD') and to_date('2011-10-25','YYYY-MM-DD')
             ) aaa 
        where
            (T.OK =1)
            and (T.PESEL is not null) 
            and T.pesel = aaa.pesel
            group by  T.PESEL 
            having count(*) >1
       ) bbb 
    where T.ID_KONTR=bbb.ID_KONTR order by T.DATA_REJ desc;
    with plan
    lan
    SELECT STATEMENT  RULE                                                            
         15 SORT UNIQUE                                                         
              14 NESTED LOOPS                                                    
                   11 VIEW INSTALL.                                              
                        10 SORT UNIQUE                                          
                             9 FILTER                                     
                                  8 SORT GROUP BY                                
                                       7 VIEW SYS.                          
                                            6 SORT UNIQUE                      
                                                 5 TABLE ACCESS BY INDEX ROWID T                
                                                      4 NESTED LOOPS            
                                                           2 TABLE ACCESS BY INDEX ROWID T      
                                                                1 INDEX RANGE SCAN NON-UNIQUE TK_DATA_REJ
                                                           3 INDEX RANGE SCAN NON-UNIQUE TK_PESEL      
                   13 TABLE ACCESS BY INDEX ROWID T                                              
                        12 INDEX UNIQUE SCAN UNIQUE TK_PK                                         
              Unfortunately this query fills up temp space (because of huge sorts) , any ideas how that query can be rewritten to
    decrease temp usage ?
    Regards
    GregG

    Hello
    Just to follow on from what Don is saying, I think you can start to rewrite the query like so
    SELECT
          id_kontr,
          pesel,
          nazwisko,
          imie,
          data_rej     
    FROM
        (   SELECT
                  t.id_kontr AS id_kontr,
                  t.pesel    AS pesel,
                  t.nazwisko AS nazwisko,
                  t.imie     AS imie,
                  t.data_rej AS data_rej
                  COUNT(CASE
                             WHEN t.data_rej BETWEEN to_date('2011-10-21', 'YYYY-MM-DD')
                                                 AND to_date('2011-10-25', 'YYYY-MM-DD')
                             THEN 1
                        END
                       ) OVER(PARTITION BY t.pesel) p_count,
                  MAX(t.id_kontr) OVER (PARTITION BY t.pesel) max_id_kontr
            FROM
                 t
            WHERE
                 t.ok = 1
            AND
                 t.pesel IS NOT NULL
    WHERE
         p_count > 1
    AND
       id_kontr = max_id_kontr
    ORDER BY
          data_rej DESCWithout understanding the need for the distinct, I can't say whether it does exactly what you need but it should be a start and it also means you're only accessing "t" once.
    HTH
    David

  • Connection leaks and application is running out of connection

    Hi All,
    We have configured the SQL Database external resource for OBPM specific connection pool. All the business processes are using the Fuego.Sql package for the data base transaction calls. I have no clue how this package is managing the database connections. If more than 25 users perform concurrent testing, the application is running out of connections. Connection pool configuration details as below.
    Maximum Pool Size : 500
    Maximum connections per user : 50
    Minimun Pool Size : 0
    Connection Idle Time (mins). : 5
    Maximum Opened Cursors : 1000
    Please share your thoughts on how I can track and fix this issue. Also please let me know the answers below.
    1. Is there any way to find out the stats about the connection pool
    2. If I configure the remote JDBC that points to J2EE datasource, would that fix this issue.
    I appreciate your help.
    Thanks,

    Can anyone please share your ideas?
    Thanks,

  • How do I add to my data plan on the iPad once I have run out of time and no longer have an internet connection?

    How do I add to my data plan on the iPad once I have run out  and no longer have an internet connection? I am working out of the country and got a message that I was running low,followed immediatly by a you're out message.

    Should you not be asking your carrier? They are the people supplying your data plan.

  • Running out of data connections

    Problem Statement:
    Running out of data connections after some time and
    the following SQLException is thrown:
    "failed to create a data connection with any of the
    specified drivers"
    Problem Description:
    I have an application that is running under iPlanet
    6.0 on solaris using Oracle 8 and type 2 Oracle
    driver.
    The application is using a number of stateless
    session beans.
    Normally, my servlets instantiate the remote beans in
    order to make access to their interfaces. For
    example, I have a servlet that fetches all of
    the accounts for a given customer. First, The servlet
    does the fetch by calling JNDI to lookup the "home"
    interface, then does a "create" call on the home
    interface to get the "remote" interface
    (see snippets of code below, the ejbCreate()).
    Second, the servlet calls up a specific method that
    extracts the customer's accounts (see snippets of
    code below, the method getAccountList()).
    At first all seem to work well, however after some
    random time my beans start to throw the SQLException
    "failed to create a data connection with any of the
    specified drivers"
    At first I thought that I am not closing the
    connections, but all of of my connections,
    statements, and result sets, are closed
    and even set to null in a finally block as you can
    see in the snippets of code below.
    If I restart iAS, all of the connections get released
    and things look normal again till the problem
    re-occurs.
    Initially, we had this problem on SP2, so we upgraded
    to SP3 thinking that this may solve the problem,
    however the problem remained on SP3.
    Another thing, this same application works perfectly
    well on my laptop which has similar iPlanet
    configurations except that operating system is
    Windows 2000 Advanced Server, and Oracle 8.0.4.0.0.
    System Configuration:
    Following is my system configuration and related
    iPlanet 6.0 settings.
    -1- iPlanet 6.0 SP3
    -2- Type 2 Oracle driver
    -3- SunOs, sparc SUNW, Ultra-250, solaris 5.8
    -4- Oracle 8.1.6.0.0 64-bit Production
    -5- Following are the entry settings in the iPlanet
    registry under
    Software\iPlanet\Application Server\6.0\CCS0\DAE2\ORACLE_OCI
    - CacheCleanInterval = 120
    - CacheConnTimeOut = 120
    - CacheDebugMsgs = 0
    - CacheFreeSlots = 16
    - CacheInitSlots = 64
    - CacheMaxConn = 64
    - CachMaxGlobalConn = 128
    - ConnGiveUpTime = 60
    - RMThreadMax = 32
    - RMThreadMin = 0
    - RSBufferInitRows = 25
    - RSBufferMaxBufferSize = 6553600
    - RSBufferMaxRows = 100
    - RSBufferMaxSize = 32768
    - SQLDebugMsgs = 0
    Snippets of Code:
    The following snippets of code come from a stateless
    session bean and consist of a local data member, the
    ejbCreate() method, and a typical rmi method that
    does the database connection and extraction of
    related records.
    javax.sql.DataSource dataSourceObj = null;
    public void ejbCreate()
    throws java.rmi.RemoteException, javax.ejb.CreateException
    javax.naming.Context ctx = null;
    // Ensure first that the _props have been
    // successfully instantiated by the constructor.
    if (_props != null) {
    try{
    ctx = new javax.naming.InitialContext();
    }catch (Exception ex){           
         nbUtility.logError(ex,"Error while creating Initial Context !");
    try{
    // DEBUG:
    System.out.println("ejbCreate(): NB_DATASOURCE = " + props.getPropertyValue(props.NB_DATASOURCE));
    // DEBUG:
         dataSourceObj = (javax.sql.DataSource) ctx.lookup(_props.getPropertyValue(_props.NB_DATASOURCE));
    catch (Exception ex){
         ex.printStackTrace();
    if (dataSourceObj == null)
    throw new javax.ejb.CreateException("Couldn't get DataSource object from environment");
    } else {
    throw new javax.ejb.CreateException("Couldn't create the property manager: NB_CONFIG_FILE is null, empty, not set, or the file doesn't exist.");
    * Given a customer number, this method
    * returns the list of accounts that belongs to
    * this customers.
    public nbAccountList getAccountList(String CustomerNo)
    throws java.rmi.RemoteException {
    nbAccountList accountList = null;
    if ((CustomerNo != null) && (!CustomerNo.equals(""))) {
    java.sql.Connection conn = null;
    java.sql.Statement stmt = null;
    java.sql.ResultSet rset = null;
    try {
    accountList = new nbAccountList();
    String sql = "SELECT * FROM " +
    props.getPropertyValue(props.NB_DBTABLE_ACCOUNT) +
    " WHERE " +
    "(" + props.getPropertyValue(props.NB_DBFIELD_ACCOUNT_CUSTOMERNO) +
    "='" + CustomerNo + "')";
    // DEBUG:
    nbDebug.write("accounts list SQL= " + sql);
    // DEBUG:
    // Let's get the connection, the statement, and the record set.
    conn = dataSourceObj.getConnection();
    stmt = conn.createStatement();
    rset = stmt.executeQuery(sql);
    // Let's loop for each single account
    int index = 0;
    nbAccount account = null;
    while (rset.next()) {
         String AccountNo = rset.getString(_props.getPropertyValue(_props.NB_DBFIELD_ACCTPERMIS_ACCOUNTNO));
    // Instantiate an account object
    account = new nbAccount(AccountNo);
    index++;
    } catch (SQLException e) {
         nbUtility.logError(e, "SQLException while trying to get accounts data.");
    } finally {
    try {
    if (rset != null) { rset.close(); rset = null; }      
    if (stmt != null) { stmt.close(); stmt = null; }
    if (conn != null) { conn.close(); conn = null; }
    } catch (SQLException e) {
         nbUtility.logError(e, "SQLException while trying to close connection.");
    return (accountList);      
    }

    I've experienced similar problems. Unfortunately, all efforts by iPlanet
    technical support to resolve the issue have failed. (They do keep calling
    and asking if they can close the ticket for some reason)
    One thing that's totally anoying is the ksvradmin monitory crashes when I
    try to have it report any connection pool information. They verified it's a
    bug in SP3 but won't say if it's fixed in SP4 or provide an estimate.
    To date here's what I've tried (by tech support's recomendation):
    1) Configure for global transactions. (even thow I'm not using them)
    (Failed)
    2) Switch to using 3rd party driver (We were previously using native)
    (Failed)
    3) Ran report on oracle showing number of connections used during iplanet's
    failed attempt. Report from Oracle shows 2 connections open, but iPlanet is
    configured for 120.
    4) Increased the connection pool size. (I didn't know why based on the
    above info) (Increased to 300) (Failed)
    Well there's my history. We crash after about 3 days of heavy usage. I'm
    about to give up and just reset my servers each night. Will help me with
    logfile rotation of the kjs files as well.
    Rodger Ball
    Sr. Engineer
    Business Wire
    "Bilal Chouman" <[email protected]> wrote in message
    news:[email protected]...
    Problem Statement:
    Running out of data connections after some time and
    the following SQLException is thrown:
    "failed to create a data connection with any of the
    specified drivers"
    Problem Description:
    I have an application that is running under iPlanet
    6.0 on solaris using Oracle 8 and type 2 Oracle
    driver.
    The application is using a number of stateless
    session beans.
    Normally, my servlets instantiate the remote beans in
    order to make access to their interfaces. For
    example, I have a servlet that fetches all of
    the accounts for a given customer. First, The servlet
    does the fetch by calling JNDI to lookup the "home"
    interface, then does a "create" call on the home
    interface to get the "remote" interface
    (see snippets of code below, the ejbCreate()).
    Second, the servlet calls up a specific method that
    extracts the customer's accounts (see snippets of
    code below, the method getAccountList()).
    At first all seem to work well, however after some
    random time my beans start to throw the SQLException
    "failed to create a data connection with any of the
    specified drivers"
    At first I thought that I am not closing the
    connections, but all of of my connections,
    statements, and result sets, are closed
    and even set to null in a finally block as you can
    see in the snippets of code below.
    If I restart iAS, all of the connections get released
    and things look normal again till the problem
    re-occurs.
    Initially, we had this problem on SP2, so we upgraded
    to SP3 thinking that this may solve the problem,
    however the problem remained on SP3.
    Another thing, this same application works perfectly
    well on my laptop which has similar iPlanet
    configurations except that operating system is
    Windows 2000 Advanced Server, and Oracle 8.0.4.0.0.
    System Configuration:
    Following is my system configuration and related
    iPlanet 6.0 settings.
    -1- iPlanet 6.0 SP3
    -2- Type 2 Oracle driver
    -3- SunOs, sparc SUNW, Ultra-250, solaris 5.8
    -4- Oracle 8.1.6.0.0 64-bit Production
    -5- Following are the entry settings in the iPlanet
    registry under
    Software\iPlanet\Application Server\6.0\CCS0\DAE2\ORACLE_OCI
    - CacheCleanInterval = 120
    - CacheConnTimeOut = 120
    - CacheDebugMsgs = 0
    - CacheFreeSlots = 16
    - CacheInitSlots = 64
    - CacheMaxConn = 64
    - CachMaxGlobalConn = 128
    - ConnGiveUpTime = 60
    - RMThreadMax = 32
    - RMThreadMin = 0
    - RSBufferInitRows = 25
    - RSBufferMaxBufferSize = 6553600
    - RSBufferMaxRows = 100
    - RSBufferMaxSize = 32768
    - SQLDebugMsgs = 0
    Snippets of Code:
    The following snippets of code come from a stateless
    session bean and consist of a local data member, the
    ejbCreate() method, and a typical rmi method that
    does the database connection and extraction of
    related records.
    javax.sql.DataSource dataSourceObj = null;
    public void ejbCreate()
    throws java.rmi.RemoteException, javax.ejb.CreateException
    javax.naming.Context ctx = null;
    // Ensure first that the _props have been
    // successfully instantiated by the constructor.
    if (_props != null) {
    try{
    ctx = new javax.naming.InitialContext();
    }catch (Exception ex){
    nbUtility.logError(ex,"Error while creating Initial Context
    try{
    // DEBUG:
    System.out.println("ejbCreate(): NB_DATASOURCE = " +
    props.getPropertyValue(props.NB_DATASOURCE));
    // DEBUG:
    dataSourceObj = (javax.sql.DataSource)
    ctx.lookup(_props.getPropertyValue(_props.NB_DATASOURCE));
    catch (Exception ex){
    ex.printStackTrace();
    if (dataSourceObj == null)
    throw new javax.ejb.CreateException("Couldn't get DataSource
    object from environment");
    } else {
    throw new javax.ejb.CreateException("Couldn't create the
    property manager: NB_CONFIG_FILE is null, empty, not set, or thefile
    doesn't exist.");
    * Given a customer number, this method
    * returns the list of accounts that belongs to
    * this customers.
    public nbAccountList getAccountList(String CustomerNo)
    throws java.rmi.RemoteException {
    nbAccountList accountList = null;
    if ((CustomerNo != null) && (!CustomerNo.equals(""))) {
    java.sql.Connection conn = null;
    java.sql.Statement stmt = null;
    java.sql.ResultSet rset = null;
    try {
    accountList = new nbAccountList();
    String sql = "SELECT * FROM " +
    props.getPropertyValue(props.NB_DBTABLE_ACCOUNT)
    +
    " WHERE " +
    "(" +
    props.getPropertyValue(props.NB_DBFIELD_ACCOUNT_CUSTOMERNO) +
    "='" + CustomerNo + "')";
    // DEBUG:
    nbDebug.write("accounts list SQL= " + sql);
    // DEBUG:
    // Let's get the connection, the statement, and the record
    set.
    conn = dataSourceObj.getConnection();
    stmt = conn.createStatement();
    rset = stmt.executeQuery(sql);
    // Let's loop for each single account
    int index = 0;
    nbAccount account = null;
    while (rset.next()) {
    String AccountNo =
    rset.getString(_props.getPropertyValue(_props.NB_DBFIELD_ACCTPERMIS_ACCOUNTN
    O));
    >
    // Instantiate an account object
    account = new nbAccount(AccountNo);
    index++;
    } catch (SQLException e) {
    nbUtility.logError(e, "SQLException while trying to get
    accounts data.");
    } finally {
    try {
    if (rset != null) { rset.close(); rset = null; }
    if (stmt != null) { stmt.close(); stmt = null; }
    if (conn != null) { conn.close(); conn = null; }
    } catch (SQLException e) {
    nbUtility.logError(e, "SQLException while trying to close
    connection.");
    return (accountList);
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • Hey my iPod is not showing up on iTunes and my computer doesn't recognize it. It runs out of battery very fast and only shows the 'Connect to iTunes" screen. What do I do?

    Hey my iPod is not showing up on iTunes and my computer doesn't recognize it. It runs out of battery very fast and only shows the 'Connect to iTunes" screen. What do I do?

    http://support.apple.com/kb/ht1808
    http://support.apple.com/kb/ts1567
    Basic troubleshooting steps  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101

  • I am trying to download photos off my IPhone as the "Cloud" tells me I have run out of storage space. I have connected my phone to IPhoto on my Mac but when I clik on Import nothing happens. What am I doing wrong?

    I am trying to download photos off my IPhone as the "Cloud" tells me I have run out of storage space. I have connected my phone to IPhoto on my Mac but when I clik on Import nothing happens. What am I doing wrong?

    Help for iCloud storage space >>   Managing your iCloud storage

  • Running out of connections...

     

    Hello,
    I think I'm having the same problem ..
    Did you solve it ? How ?
    Thanks a lot.
    Franco
    Francesco Costa
    BEA Systems Italia
    [email protected]
    Phone +39 02 3327 3000
    Mobile + 39 335 1246931
    Fax +39 02 3327 3001
    "Gerhard Henning" <[email protected]> ha scritto nel messaggio
    news:[email protected]...
    >
    Hi,
    we seem to have a similar problem. Can you please tell me,
    which service pack solves the problem.
    We are using SP8 but the problem seems to be still there!
    Thanks
    Gerhard
    Joseph Weinstein <[email protected]> wrote:
    Gene Chuang wrote:
    Hi Joe,
    Good news; bug ISOLATED and FIXED! First off, I was able to determinethis bug only manifests if
    we are running clustered apps. under a single app server, this bugdoes not appear, and under
    clustered app this bug always appears.
    Furthermore, I appologize if I may have lead you on a wild goosechasewith all the subsequent
    patches you sent me. As it turns out, when I received each patch Ihanded it off to our tester, who
    applied the patch and probably only bounced a node in our server
    cluster
    before testing, hence
    getting negative results. Today I applied your latest patch,
    clean-bounced
    all the nodes, and the
    bug disappeared! Thanks Joe!
    Now the 2 questions of the day:
    1) Is your latest patch production worthy? Can I apply it on ourlive site?
    Yes.
    2) If not, when's the next service pack coming out with this fix?It will be in future service packs.
    Joe
    Gene
    "Joseph Weinstein" <[email protected]> wrote in message
    news:[email protected]...
    >>>>
    >>>>
    Gene Chuang wrote:
    Hi Joe,
    We tried it and found the same exception raised, except for this
    time it took a lot longer to
    bug
    out; the server hung for almost 2 minutes before dumping the
    following.
    However I was just
    informed by another developer that we may have a recursive bugon our side, and that we are
    doing a
    non-terminating db search. Perhaps this is causing this
    out-of-resource
    allocation bug, i.e.
    our
    bug exposed your bug! I'm sure once we fix our recursion bug we
    won't see this again, but maybe
    something should also be done on your side that'll handle thismore gracefully...
    I'll let you know what happens once we fix our bug; thanks forthe help!
    DO let me know. In fact, please use the attached jar (in place ofall the others:-)
    because the line ResourceAllocator.java:561 is not executable code.There may be a
    JVM problem... I'm fairly sure there's no way our code can causean NPE in this
    area...
    Joe
    javax.ejb.FinderException: Couldn't build CallableStatement from
    JDBCCommandImpl:
    java.sql.SQLException: Exception raised by connection pool
    :java.lang.NullPointerException
    atweblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.java:56
    1)
    atweblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.java:55
    5)
    atweblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.java:50
    2)
    atweblogic.jdbc.common.internal.ConnectionPool.reserve(ConnectionPool.java:172
    atweblogic.jdbc.common.internal.ConnectionPool.reserveWaitSecs(ConnectionPool.
    java:145)
    atweblogic.jdbcbase.jts.Connection.openConnectionIfNecessary(Connection.java:5
    87)
    atweblogic.jdbcbase.jts.Connection.prepareCall(Connection.java:159)
    atweblogic.jdbc20.rmi.internal.ConnectionImpl.prepareCall(ConnectionImpl.java:
    89)
    atweblogic.jdbc20.rmi.SerialConnection.prepareCall(SerialConnection.java:71)
    atcom.kiko.db.JDBCConnection.getCallableStatement(JDBCConnection.java:158)
    >>>>>
    Gene Chuang
    Join Kiko.com!
    "Joseph Weinstein" <[email protected]> wrote in message
    news:[email protected]...
    >>>>>>
    >>>>>>
    Gene Chuang wrote:
    Hi Joe,
    We were finally able to consistently replicate the
    ResourceAllocator.reserve()
    stacktrace,
    although
    from a slightly different route. I tried your jar, and now
    have a slightly different
    exception:
    Hi Gene. Thank you for your patience. Here's one last jar file.
    Ditch the previous one. I appreciate your energy and willingness
    to help. Let me know,
    Joe
    javax.ejb.EJBException: Failed to select row 0: Exception
    raised
    by connection pool
    :java.lang.NullPointerException
    at
    weblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.java:56
    1)
    atweblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.java:55
    5)
    atweblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.java:50
    2)
    atweblogic.jdbc.common.internal.ConnectionPool.reserve(ConnectionPool.java:172
    atweblogic.jdbc.common.internal.ConnectionPool.reserveWaitSecs(ConnectionPool.
    java:145)
    atweblogic.jdbcbase.jts.Connection.openConnectionIfNecessary(Connection.java:5
    87)
    atweblogic.jdbcbase.jts.Connection.prepareStatement(Connection.java:135)
    atweblogic.jdbc20.rmi.internal.ConnectionImpl.prepareStatement(ConnectionImpl.
    java:80)
    atweblogic.jdbc20.rmi.SerialConnection.prepareStatement(SerialConnection.java:
    55)
    atcom.kiko.db.JDBCConnection.getPreparedStatement(JDBCConnection.java:141)
    >>>>>>>
    Gene Chuang
    Join Kiko.com!
    "Joseph Weinstein" <[email protected]> wrote in message
    news:[email protected]...
    Hi Gene.
    Would you put the attached jar to the head of your
    weblogic.classpath,
    and let me know if this fixes the problem? thanks,
    Joe
    Gene Chuang wrote:
    WL 5.1 sp 6, running on Solaris 2.7 over Oracle 8i
    Gene Chuang
    Join Kiko.com!
    "Joseph Weinstein" <[email protected]> wrote in message
    news:[email protected]...
    Gene Chuang wrote:
    Hi Joe,
    Now I'm getting this slightly different stack trace...
    do u think it's the same
    "out of
    connection"
    error, or something else?It's something else. What version of the product is this?
    Joe
    Couldn't build PreparedStatement from JDBCCommandImpl:
    java.sql.SQLException:
    Exception
    raised
    by
    connection pool :java.lang.NullPointerException
    at
    weblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.java:56
    1)
    atweblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.java:55
    5)
    atweblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.java:50
    2)
    atweblogic.jdbc.common.internal.ConnectionPool.reserve(ConnectionPool.java:172
    atweblogic.jdbc.common.internal.ConnectionPool.reserveWaitSecs(ConnectionPool.
    java:145)
    atweblogic.jdbcbase.jts.Connection.openConnectionIfNecessary(Connection.java:5
    87)
    atweblogic.jdbcbase.jts.Connection.prepareStatement(Connection.java:135)
    atweblogic.jdbc20.rmi.internal.ConnectionImpl.prepareStatement(ConnectionImpl.
    java:80)
    atweblogic.jdbc20.rmi.SerialConnection.prepareStatement(SerialConnection.java:
    55)
    >>>>>>>>>>>
    Gene Chuang
    Join Kiko.com!
    "Joseph Weinstein" <[email protected]> wrote in message
    news:[email protected]...
    Hi.
    The server won't let an EJB wait indefinitely for
    a connection to become
    available in a pool. All the while it waits, it iscommandeering one
    of the fixed number of execute-threads, doing nothingwhile the thread
    could possibly run another task which already hasit's pool connection,
    and could release it if it ran. The default waitallowed is 5 seconds
    the server decides to devote it's resources to thework it can do, and
    not let overflow requests cause an unintentionalor malicious denial-
    of-service attack. The fundamental solution is tosupply enough DBMS
    connections to serve the load you have.
    Joe
    Gene Chuang wrote:
    Hi,
    Here's our pool init info:
    weblogic.jdbc.connectionPool.oraclePool=\
    driver=oracle.jdbc.driver.OracleDriver,\
    url=jdbc:oracle:oci8:@xxx,\
    loginDelaySecs=0,\
    initialCapacity=4,\
    maxCapacity=10,\
    capacityIncrement=2,\
    allowShrinking=true,\
    shrinkPeriodMins=15,\
    refreshMinutes=10,\
    testTable=dual,\
    props=user=xxx;password=xxxx;server=xxx
    I run a db-intensive data migration program on
    my ejbs (hence JDBC connection
    requests
    are
    made
    on
    the serverside). After a while, I run out of
    connections,
    and the exception
    pasted
    below is
    thrown.
    Why is this exception thrown? If the pool is at
    maxCapacity and all connections
    are
    taken,
    shouldn't weblogic place the connection-requestor
    on wait until a connection is
    available?
    And
    I'm
    pretty sure I return the connections because I
    wrap connection.close() on a
    finally
    block...
    JDBCPoolConnection.connect: Problem connecting
    Exception:
    java.sql.SQLException: Pool connect failed: Noneavailable
    java.sql.SQLException: Pool connect failed: Noneavailable
    at
    weblogic.jdbcbase.pool.Driver.connect(Driver.java:184)
    atweblogic.jdbcbase.jts.Driver.connect(Driver.java:233)
    at
    weblogic.jdbc20.common.internal.RmiDataSource.getConnection(RmiDataSourc
    e.java:55)
    at
    weblogic.jdbc20.common.internal.RmiDataSource_ServiceStub.getConnection(
    RmiDataSource_ServiceStub.java:179)
    at
    com.kiko.db.JDBCPoolConnection.connect(JDBCPoolConnection.java:24)ABMEB.
    ejbActivate: Getting bean out of pooled state.
    Gene Chuang
    Join Kiko.com!--
    PS: Folks: BEA WebLogic is in S.F. with both entryand advanced positions for
    people who want to work with Java and E-Commerceinfrastructure products. Send
    resumes to [email protected]
    The Weblogic Application Serverfrom BEA
    JavaWorld Editor's Choice Award: Best WebApplication Server
    Java Developer's Journal Editor's Choice Award:Best Web Application Server
    Crossroads A-List Award: Rapid Application
    Development
    Tools for Java
    Intelligent Enterprise RealWare: Best ApplicationUsing a Component Architecture
    >
    http://www.bea.com/press/awards_weblogic.html
    >>>>>>>>>>
    PS: Folks: BEA WebLogic is in S.F. with both entry andadvanced positions for
    people who want to work with Java and E-Commerce
    infrastructure
    products. Send
    resumes to [email protected]
    The Weblogic Application Server fromBEA
    JavaWorld Editor's Choice Award: Best Web
    Application
    Server
    Java Developer's Journal Editor's Choice Award: BestWeb Application Server
    Crossroads A-List Award: Rapid Application
    Development
    Tools for Java
    Intelligent Enterprise RealWare: Best Application Usinga Component Architecture
    >
    http://www.bea.com/press/awards_weblogic.html
    >>>>>>>>
    PS: Folks: BEA WebLogic is in S.F. with both entry andadvanced
    positions for
    people who want to work with Java and E-Commerce
    infrastructure
    products. Send
    resumes to [email protected]
    The Weblogic Application Server fromBEA
    JavaWorld Editor's Choice Award: Best Web
    Application
    Server
    Java Developer's Journal Editor's Choice Award: Best WebApplication Server
    Crossroads A-List Award: Rapid Application DevelopmentTools for Java
    Intelligent Enterprise RealWare: Best Application Using aComponent Architecture
    >
    http://www.bea.com/press/awards_weblogic.html
    >>>>>>
    PS: Folks: BEA WebLogic is in S.F. with both entry and advancedpositions for
    people who want to work with Java, XML, SOAP and E-Commerce
    infrastructure
    products. Send resumes to [email protected]
    The Weblogic Application Server from BEA
    JavaWorld Editor's Choice Award: Best Web ApplicationServer
    Java Developer's Journal Editor's Choice Award: Best Web
    Application
    Server
    Crossroads A-List Award: Rapid Application Development Toolsfor Java
    Intelligent Enterprise RealWare: Best Application Using a
    Component
    Architecture
    http://www.bea.com/press/awards_weblogic.html--
    PS: Folks: BEA WebLogic is in S.F. with both entry and advanced
    positions
    for
    people who want to work with Java, XML, SOAP and E-Commerce
    infrastructure
    products. Send resumes to [email protected]
    The Weblogic Application Server from BEA
    JavaWorld Editor's Choice Award: Best Web Application Server
    Java Developer's Journal Editor's Choice Award: Best WebApplication
    Server
    Crossroads A-List Award: Rapid Application Development Toolsfor Java
    Intelligent Enterprise RealWare: Best Application Using a ComponentArchitecture
    http://www.bea.com/press/awards_weblogic.html--
    PS: Folks: BEA WebLogic is in S.F. with both entry and advanced positions
    for
    people who want to work with Java, XML, SOAP and E-Commerceinfrastructure
    products. Send resumes to [email protected]
    The Weblogic Application Server from BEA
    JavaWorld Editor's Choice Award: Best Web Application Server
    Java Developer's Journal Editor's Choice Award: Best Web Application
    Server
    Crossroads A-List Award: Rapid Application Development Tools for
    Java
    Intelligent Enterprise RealWare: Best Application Using a ComponentArchitecture
    http://www.bea.com/press/awards_weblogic.html

  • My Iphone 5s was working perfectly before downloading the IOS 8.0.1 and later IOS 8.0.2. When my Iphone run out of battery, I connected it to Itunes, however the phone never turned on, and kept trying to sync, however got an itunes failure message

    my Iphone 5s was working perfectly before downloading the IOS 8.0.1 and later IOS 8.0.2. When my Iphone run out of battery, I connected it to Itunes, however the phone never turned on, and kept trying to sync, however got an itunes failure message.
    Any help in this regards please.

    Hello douraid,
    Start with the article below to get your iPhone to take a charge. Once you get it powered back on, you will want to sync again to make sure nothing was lost during the attempted sync. 
    iPhone and iPod touch: Charging the battery
    http://support.apple.com/kb/HT1476
    Regards,
    -Norm G. 

  • Iphone 4's battery runs out in 2 hours after connecting to Exchange 2003

    Hi,
    Ever since I connected my iphone to Exchange 2003, the battery runs out 3-4 times as fast. It looks like it's constantly polling the server for new mai and also the phones appears to run hotter than before. Is there any parameter I can tweak to fix this?
    I'm running IOS 5 on iPhone 4.
    Thanks,
    Guy

    My battery on my iphone 4 was draining in a few hours and turning hot while not doing anything (idling).
    I downloaded lAssistant (with an L not an i) and noticed that before i deleted my hotmail account, the activity of the CPU while my iphone 4 was not doing anything, was 35-40% while AFTER i deleted my hotmail account the activity dropped to 4% and the battery returned tom normal drain.
    My Iphone 4 returned to normal operation after
    1. removing my Hotmail account from settings->mail,contacts->accounts->(choose hotmail account) Delete Account,
    2. turning off my  iphone 4
    3. turning on my iphone 4
    4. Re-adding my Hotmail account
    The battery has STOPPED draining and getting hot.

  • IPOD POWER RUNS OUT QUICKLY WHEN CONNECTED TO PC

    Hi All,
    My fully charged IPod runs out of power in half an hour when I connect to PC, whereas when it is connected to my MAC it recharges the power.
    What can I do to prolong a battery time connected to PC?
    Thanks
    G

    Welcome to Apple Discussions.
    You have a 3G iPod. If you are using USB to connect, then I would say it is perfectly normal since 3G iPods cannot charge via USB and therefore your battery will be depleted when you sync. If indeed you are using USB, I suggest you get an USB2/Firewire iPod cable and connect the iPod in this way: How to connect the iPod Dock Connector to FireWire and USB 2.0 Cable (You need the Firewire iPod charger which should be included with your iPod.).

  • Connection pool running out of connections

    Hi all,
    I am using Oracle's connection pool implementation:
    OracleConnectionPoolDataSource dbConnection;
    OracleConnectionCacheImpl connectionPool;
    and tomcat 3 and 4. Sometimes on Tomcat 4 (Linux) I see that the connections are not being reutilized and therefore I run out of free connections. The same application runs fine on NT and Tomcat 3 and 4. I checked all my methods and all have a close(connection) in my finally{} and besides this the problem only happens once in a while and the program is using the same methods all the time. Anybody has a clue about what could the issue be?
    Thanks,
    A.

    have u tried setCacheScheme?

  • ConnectionPoolDataSource - running out of Connections..

    Hi
    I have a same problem as described in this thread
    http://forum.java.sun.com/thread.jsp?forum=136&thread=560645&tstart=0&trange=15
    I have Q42004 Beta J2EE SDK, and am using MS SQL 2000 databse server with jTDS 0.9 (jtds.sourceforge.net) JDBC driver...
    I have a very simple servlet that gets a DataSource from the JNDI, gets connection , does some stuff, closes connection....Pretty basic....After a while I get the following error
    [#|2004-10-08T19:19:08.053-0400|INFO|sun-appserver-pe8.1|javax.enterprise.system.stream.out|_ThreadID=28;|
    [2004-10-08 19:19:08,053] [ERROR] [org.nemours.webapps.coi.COIServlet]
    [MSG] java.sql.SQLException: Error in allocating a connection. Cause: In-use connections equal max-pool-size and expired  max-wait-time. Cannot allocate more connections.
            at com.sun.gjc.spi.DataSource.getConnection(DataSource.java:74)
            at org.nemours.webapps.coi.COIServlet.getDBConnection(Unknown Source)
            at org.nemours.webapps.coi.COIServlet.doProcess(Unknown Source)
            at org.nemours.webapps.coi.COIServlet.doPost(Unknown Source)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
            at sun.reflect.GeneratedMethodAccessor248.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
            at java.security.AccessController.doPrivileged(Native Method)
            at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
            at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:273)
            at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:236)
            at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
            at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:262)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:618)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:500)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:375)
            at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
    Error in allocating a connection. Cause: In-use connections equal max-pool-size and expired max-wait-time. Cannot alloca
    te more connections.
    |#]the configuration of the pool in my domain.xml is as follwing...
    <jdbc-resource enabled="true" jndi-name="jdbc/coiDB" object-type="user" pool-name="coi_Pool"/>
        <jdbc-connection-pool connection-validation-method="auto-commit" datasource-classname="net.sourceforge.jtds.jdbcx.JtdsConnectionPoolDataSource" fail-all-connections="true" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="false" max-pool-size="32" max-wait-time-in-millis="60000" name="coi_Pool" pool-resize-quantity="2" res-type="javax.sql.ConnectionPoolDataSource" steady-pool-size="8">
          <description>jTDS 0.9 Type 4 JDBC Driver</description>
          <property name="DatabaseName" value="coi"/>
          <property name="Password" value="******"/>
          <property name="User" value="*******"/>
          <property name="ServerName" value="localhost"/>
        </jdbc-connection-pool>
    ...After few WAR redeployments I run out of connections....I have noticed also the following:
    1. On MS SQL Enterprise Manager - Management console there are no processes/locks associated with jTDS meaning there are no outstanding connection when I get an error...
    2. After a restart of MSSQL services i still get an error
    3. After an application redeployment I still get an error
    4. After a domain restart the error goes away untill i redeploy the app several times....
    Can someone PLEASE let me know if this is a bug in Q42004 or am I doing something bad...
    I spent hours debugging the code trying to figure this one out....
    Thanks
    Z

    Hi
    jTDS 0.9 does not have XADataSource implementation but it has DataSource implementation.
    If I use the DataSource imlementation I still get the "out of connections" problem....
    This same application did not exibit any problems on Updte 1.
    The code of my servlet is pretty big but here are the relevant snippets:
         private Connection getDBConnection() {
              DataSource ds = null;
              Connection conn = null;
              try {
                   Log.info(this.getClass(), "Attempting to use ServiceLocator to get DS from JNDI...");
                   ds = ServiceLocator.getInstance().getDataSource("jdbc/coiDB");
                   Log.info(this.getClass(), "Attempting to get connection...");
                  conn = ds.getConnection();
              } catch (Exception e) {
                   Log.error(this.getClass(),"failure...!");
                   Log.exception(this.getClass(), e);
              return conn;
         private Employee getEmployee(int empID) {
              Employee existingEmp = null;
              PreparedStatement pstmt = null;
              ResultSet rset = null;
              Connection conn = getDBConnection();
              try {               
                   pstmt = conn.prepareStatement("SELECT * FROM EMPLOYEE WHERE ID = ?");
                   pstmt.setInt(1, empID);
                   rset = pstmt.executeQuery();               
                   if (rset.next()) {
                        existingEmp = new Employee(rset.getInt("id"), rset.getString("fname"), rset.getString("lname"), rset.getString("location"), rset.getString("department"), rset.getString("phone"));
                        existingEmp.setCreateTS(rset.getTimestamp("create_ts"));
              } catch (SQLException e) {
                   Log.error(this.getClass(), "Failed DB operation while checking for existing employee");
                   Log.exception(this.getClass(), e);
              } finally {
                   DBUtils.closeResultSet(rset);
                   DBUtils.closeStatement(pstmt);
                   DBUtils.closeConnection(conn);
              return existingEmp;     
         }The DBUtils I use is just convenience static class that wraps regular JDBC calls into try catch block and ServiceLocator is a BluePrints pattern straight from AdventureBUilder 1.0.1. Employee is a my model/subject class.....
    Thanks
    Z...

Maybe you are looking for

  • Performance Update in 10.6.2?

    I've been having spinning-ball issues (using Safari, iTunes, and other applications) where the computer will, at seemingly random time periods, display the spinning ball so I can't do anything in that application. I've tried resetting permissions, et

  • SAP  opportunity for IT/BPO services as well as airline domain

    Hi All, I need suggestions related to my career path that i am building. I am a consultant having around 4.5 +years of experience in sap consulting. I do for Mm/QM. I have support/implementation experience in manufacturing , process industry who were

  • Nothing is downloading on my new ipad

    what can i do to download the apps on ipad from appstore if nothing is downloading

  • Compliance Calibrator Issue  with Backend system

    Hi Experts, We have situation where we are unable to run any risk analysis from CC to our backend system. The error we are getting is " Can not execute BAPI USERLIST, Invalid value in OPTION field of value table for IN itab operator" and the RFC ID i

  • How to make spry menubar top level only appear for browsers with java turned off

    I was under the impression that just the top level of the horizontal spry menubar appears when someone with Java turned off views it...now I see that the entire unordered list appears vertically and takes up the whole page....is there a way to make j