Video content has been moved to the official Red Hat YouTube channel, which you can find here.

"java.net.SocketException: Connection reset" from IBM DB2 Driver in JBoss EAP

Solution Verified - Updated -

Issue

What does "java.net.SocketException: Connection reset" from IBM DB2 JDBC driver mean?

Caused by: com.ibm.db2.jcc.am.DisconnectNonTransientConnectionException: [jcc][t4][2030][11211][4.26.14] A communication error occurred during operations on the connection's underlying socket, socket input stream,
or socket output stream.  Error location: Reply.fill() - socketInputStream.read (-1).  Message: Connection reset. ERRORCODE=-4499, SQLSTATE=08001
        at com.ibm.db2.jcc.am.b7.a(b7.java:338)
        at com.ibm.db2.jcc.t4.a.a(a.java:572)
        at com.ibm.db2.jcc.t4.a.a(a.java:556)
        at com.ibm.db2.jcc.t4.a.a(a.java:551)
        at com.ibm.db2.jcc.t4.a.b(a.java:1676)
        at com.ibm.db2.jcc.t4.a.a(a.java:1696)
        at com.ibm.db2.jcc.t4.y.b(y.java:271)
        at com.ibm.db2.jcc.t4.y.c(y.java:337)
        at com.ibm.db2.jcc.t4.y.c(y.java:450)
        at com.ibm.db2.jcc.t4.y.v(y.java:1219)
        at com.ibm.db2.jcc.t4.z.a(z.java:53)
        at com.ibm.db2.jcc.t4.b.c(b.java:1426)
        at com.ibm.db2.jcc.t4.b.b(b.java:1298)
        at com.ibm.db2.jcc.t4.b.b(b.java:849)
        at com.ibm.db2.jcc.t4.b.a(b.java:820)
        at com.ibm.db2.jcc.t4.b.a(b.java:441)
        at com.ibm.db2.jcc.t4.b.a(b.java:414)
        at com.ibm.db2.jcc.t4.b.<init>(b.java:352)
        at com.ibm.db2.jcc.DB2SimpleDataSource.getConnection(DB2SimpleDataSource.java:233)
        at com.ibm.db2.jcc.DB2SimpleDataSource.getConnection(DB2SimpleDataSource.java:200)
        at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:471)
        at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:113)
        at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createLocalManagedConnection(LocalManagedConnectionFactory.java:335)
        ... 14 more
Caused by: java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:210)
        at java.net.SocketInputStream.read(SocketInputStream.java:141)
        at com.ibm.db2.jcc.t4.y.b(y.java:225)
        ... 30 more

Environment

  • JBoss Enterprise Application Platform
  • IBM DB2 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