I get an UnknownHostException when attempting to get connections after migrating from EAP 4 to EAP 5.1

Solution Verified - Updated -

Issue

  • "Caused by" statement in the server.log or console output:
        ....
        Caused by: java.net.UnknownHostException: server1|server2
            at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
            at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
            at java.net.Socket.connect(Socket.java:529)
            at java.net.Socket.connect(Socket.java:478)
            at java.net.Socket.<init>(Socket.java:375)
            at java.net.Socket.<init>(Socket.java:189)
            at com.example.core.PGStream.<init>(PGStream.java:70)
            at com.example.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:115)
            ... 22 more

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 5.1.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