"No more data to read from socket" Error after database restart

Solution Verified - Updated -

Issue

  • I have configured the below datasource in my application deployed in fuse.
  • When the database server shuts down to perform backup and then restarts after sometime when it is completed backup, the connection between my application and database is lost and when the ESB queries the database, it will get the error message No more data to read from socket.
    <bean id="myDataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
        <property name="driverClassName" value="xxx" />
        <property name="url" value="jdbc:yyy>"/>
        <property name="username" value="zzz"/>
        <property name="password" value="zzz123"/>
    </bean>

Environment

  • RedHat Jboss Fuse
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.