Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6330203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:49:42+00:00 2026-05-24T17:49:42+00:00

I see that after 1 hour of running, Oracle Connection Pool throws exceptions SQLException

  • 0

I see that after 1 hour of running, Oracle Connection Pool throws exceptions

” SQLException Ocurred:Invalid or Stale Connection found in the Connection Cache”

Here is the properties file:

<bean id="datasource" class="oracle.jdbc.pool.OracleDataSource" destroy-method="close">
    <property name="URL" value="${local.url}" />
    <property name="user" value="${local.username}" />
    <property name="password" value="${local.password}" />
    <property name="connectionProperties">
    <props>
        <prop key="includeSynonyms">true</prop>
    </props>
    </property>
        <property name="connectionCachingEnabled" value="true"/>
        <property name="connectionCacheProperties">
            <props>
                <prop key="PropertyCheckInterval">60</prop>         <!-- 1 min -->
                <prop key="ValidateConnection">true</prop>
                <prop key="MinLimit">2</prop>
                <prop key="MaxLimit">25</prop>
                <prop key="InitialLimit">2</prop>
                <prop key="ConnectionWaitTimeout">60</prop>         <!-- 1 min -->
                <prop key="InactivityTimeout">1800</prop>           <!-- 30 mins -->
                <prop key="AbandonedConnectionTimeout">600</prop>   <!-- 10 mins -->
            </props>
        </property>
    </bean>

Can somebody tell me why this is failing after 1 hour, even though the transactions are active.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T17:49:42+00:00Added an answer on May 24, 2026 at 5:49 pm

    I was not using multi-threading and it was failing. Also, we need to configure the num of threads to atleast the min number of connections. Otherwise the connections become stale and throw exceptions

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After running the following SQL statements, you will see that, MySQL has automatically created
Update: After some more reading I see that this problem is totally general, you
I'm on 5.3.1 and after reading the docs, I see that fileinfo is included
How can I resolved this error that I see in Gradle after upgrading to
I notice that there is some gap after my table. See the following snapshot:
I have a poker blind timer Silverlight app that is losing time (after running
I see that this is the same question as Making cmake print commands before
I see that most of big websites are returning javascript objects instead of pure
I see that many people get this error, but their situations all appear a
I see that we cannot use if not exists in the create virtual table

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.