"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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content