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

  • SEARCH
  • Home
  • 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 8767577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:51:04+00:00 2026-06-13T16:51:04+00:00

I have an interesting issue which I have not been able to resolve. I

  • 0

I have an interesting issue which I have not been able to resolve. I am using Play! 2.0.4 and using the integrated BoneCP connection pool to get the DB connections. However, for some reason, BoneCP keeps returning closed connections.

Database Server: Amazon RDS MySQL 5, default timeout settings (which should be 8 hours...)

My Play Datasource configuration looks as follows:

db.default.driver=com.mysql.jdbc.Driver
db.default.url="jdbc:mysql://{server}/{schema}?autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8"
db.default.partitionCount=4
db.default.idleConnectionTestPeriod=2 minutes

I had assumed setting the idleConnectionTestPeriod to 2 minutes surely would have prevented BoneCP from returning closed connections, but it hasn’t.

Every so often, I get the following stack trace in my logs:

    Exception in thread "pool-6-thread-25" java.sql.SQLException: Connection is closed!
    at com.jolbox.bonecp.ConnectionHandle.checkClosed(ConnectionHandle.java:350)
    at com.jolbox.bonecp.ConnectionHandle.setReadOnly(ConnectionHandle.java:1089)
    at play.api.db.BoneCPApi$$anon$1.onCheckOut(DB.scala:328)
    at com.jolbox.bonecp.BoneCP.getConnection(BoneCP.java:514)
    at com.jolbox.bonecp.BoneCPDataSource.getConnection(BoneCPDataSource.java:114)
    at play.api.db.DBApi$class.getConnection(DB.scala:64)
    at play.api.db.BoneCPApi.getConnection(DB.scala:273)
    at play.api.db.DB$$anonfun$getConnection$1.apply(DB.scala:129)
    at play.api.db.DB$$anonfun$getConnection$1.apply(DB.scala:129)
    at scala.Option.map(Option.scala:133)
    at play.api.db.DB$.getConnection(DB.scala:129)
    at play.api.db.DB.getConnection(DB.scala)
    at play.db.DB.getConnection(DB.java:50)
    at play.db.DB.getConnection(DB.java:43)
    at play.db.DB.getConnection(DB.java:29)
    at com.edatasource.inboxtracker.tasks.TrackSiteEventActionTask.run(TrackSiteEventActionTask.java:23)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)   

Does anybody know how I can fix this issue? Currently, I’ve had to wrap the DB.getConnection() in a try/catch and just catch the exception thrown by BoneCP and retry until I retrieve a valid connection. Seems like that should be unnecessary.

Thanks for any help.

  • 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-06-13T16:51:07+00:00Added an answer on June 13, 2026 at 4:51 pm

    Please try with 0.8.0-beta1. There was a bug related to this.

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

Sidebar

Related Questions

I have an interesting issue with HTTPS ports not being handled properly. It is
I have encountered an interesting issue in which I have my master trying to
This is an interesting problem that I’ve not been able to solve yet. I
I have found an interesting issue in windows which allows me to cause the
Here is an interesting issue I noticed when using the Except Operator: I have
Someone please help. I have an interesting issue. I am trying to implement an
I have a rather interesting issue with SVG animation. I am animating along a
I have ran into an interesting issue while trying to create a more usable
I ran across an interesting issue today. We have an application that utilizes Zend
I have an issue with importing the scipy.special package. It isn't harmful, just annoying/interesting.

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.