"java.net.SocketException: Connection reset" while connecting to Oracle DB

Solution Verified - Updated -

Issue

  • Following Exceptions are thrown while accessing Oracle DB from JBoss:

    java.sql.SQLRecoverableException: IO Error: Connection reset
    

    and

    java.net.SocketException: Connection reset
        at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:96)
        at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
        at oracle.net.ns.DataPacket.send(DataPacket.java:210)
        at oracle.net.ns.NetOutputStream.flush(NetOutputStream.java:230)
        at oracle.net.ns.NetInputStream.getNextPacket(NetInputStream.java:312)
        ...(snip)...      
    

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
  • Red Hat JBoss A-MQ
  • Red Hat JBoss Fuse
  • Oracle Database and Oracle JDBC Driver

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