Coder Social home page Coder Social logo

Comments (5)

brettwooldridge avatar brettwooldridge commented on July 30, 2024

Wow, what is going on? I see com.mchange.v2.sql.filter.FilterConnection.close() in the stacktrace. That class is from the C3P0 connection pool. It is generally a bad idea to wrap one connection pool (HikariCP) inside of another (C3P0). Is it possible to remove C3P0 from the configuration?

from hikaricp.

brettwooldridge avatar brettwooldridge commented on July 30, 2024

Looking at the exception itself, it appears that someone is calling getConnection(), using the connection, calling close() on the Connection, then continuing to use the connection before calling close() again on the Connection. This may, or may not, be a side-effect of wrapping HikariCP inside of C3P0.

from hikaricp.

jaredstehler avatar jaredstehler commented on July 30, 2024

We aren't actually using two pools; we've written a wrapper around jdbc which uses hystrix to fail over to another datasource if one is having issues. The mchange class is a simple delegating wrapper so we didn't have to implement the 50-odd methods of the JDBC connection interface.

from hikaricp.

brettwooldridge avatar brettwooldridge commented on July 30, 2024

I see. The core cause of the exception seems to be as stated. Some code path is closing a Connection but continuing to use it. The stacktrace provided may point to the cause or it may point to the victim.

from hikaricp.

jaredstehler avatar jaredstehler commented on July 30, 2024

Thanks!

from hikaricp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.