Translated message

A translation of this page exists in English.

JBoss EAP 6 での EJB 呼び出しが Connection reset by peer エラーで失敗する

Solution Verified - Updated -

Issue

  • サーバーログに以下のエラーが表示されます。
04:27:20,220 ERROR [org.jboss.remoting.remote.connection] (Remoting "node1" read-1) JBREM000200:Remote connection failed: java.io.IOException:Connection reset by peer
  • EJB2 Stateless セッションビーンが JBoss 6 EAP に配置されていて、このリモートビューは、 ServiceLocator パターンの標準実装を使用した web 層が使用または呼び出します。また、Service Locator クラスはリモートのホームプロキシと、InitialContext オブジェクト (つまり、その EJBHomeProxy を検索するために使用されるオブジェクト) のキャッシュを取得します。通常の実行がしばらく続くと、EJB 呼び出しに頻繁に失敗します。
TRACE 22:12:37,747 Remoting "client-endpoint" read-1 RemoteReadListener - Connection error detail java.io.IOException:Connection reset by peer
        at sun.nio.ch.FileDispatcher.read0(Native Method)
        at sun.nio.ch.SocketDispatcher.read(Unknown Source)
        at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)
        at sun.nio.ch.IOUtil.read(Unknown Source)
        at sun.nio.ch.SocketChannelImpl.read(Unknown Source)
        at org.xnio.nio.AbstractNioStreamChannel.read(AbstractNioStreamChannel.java:249)
        at org.xnio.channels.FramedMessageChannel.receive(FramedMessageChannel.java:87)
        at org.jboss.remoting3.remote.RemoteReadListener.handleEvent(RemoteReadListener.java:72)
        at org.jboss.remoting3.remote.RemoteReadListener.handleEvent(RemoteReadListener.java:45)
        at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72)
        at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:189)
        at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:103)
        at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72)
        at org.xnio.nio.NioHandle.run(NioHandle.java:90)
        at org.xnio.nio.WorkerThread.run(WorkerThread.java:187)
  • EJB3 呼び出すコネクションは最初は動作していましたが、しばしば、この前後に、呼び出しに失敗しました。

Environment

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