KB Article #67790
Gateway: Race condition on Master Agent when Multiplexer pool ready - unable to create administration SAP
-- Product Gateway 6.13.0 SP1 P8
-- Error Reported: GatewayFrontend : Couldn't create administration SAP
Full Error reported:
10-08-06 12:42:36,247 P-1-MPX-0 ERROR GatewayFrontend : Couldn't create administration SAP, cause: com.axway.niocore.NIOCoreException: Couldn't bind to address /127.0.0.1:7801
com.axway.niocore.NIOCoreException: Couldn't bind to address /127.0.0.1:7801
at com.axway.niocore.acceptor.Acceptor.<init>(Acceptor.java:86)
at com.axway.niocore.acceptor.Acceptor.newInstance(Acceptor.java:43)
at com.axway.niocore.NIOCore.newAcceptor(NIOCore.java:494)
at com.axway.xsr.agent.master.frontend.gateway6114.GatewayFrontend.createAdminSap(GatewayFrontend.java:83)
at com.axway.xsr.agent.master.frontend.gateway6114.GatewayFrontend.onRouterAgentConnection(GatewayFrontend.java:62)
at com.axway.xsr.agent.master.MasterAgentImpl.onRouterAgentConnection(MasterAgentImpl.java:204)
at com.axway.xsr.agent.master.context.router.RouterAgentContext.onPoolReady(RouterAgentContext.java:347)
at com.axway.multiplex.pool.MultiplexerPool.onMultiplexerReady(MultiplexerPool.java:115)
at com.axway.multiplex.pool.ClientMultiplexerPool.onMultiplexerReady(ClientMultiplexerPool.java:129)
at com.axway.multiplex.Multiplexer.setReady(Multiplexer.java:58)
at com.axway.multiplex.channel.physical.ClientMultiplexerChannel.onHelloReply(ClientMultiplexerChannel.java:31)
at com.axway.multiplex.channel.physical.MultiplexerChannel.onPacket(MultiplexerChannel.java:45)
at com.axway.niocore.communicator.protocol.packet.PacketCommunicatorProtocol.onDataAvailable(PacketCommunicatorProtocol.java:124)
at com.axway.niocore.communicator.SSLCommunicator.onSelectorUpdate(SSLCommunicator.java:500)
at com.axway.niocore.NIOCore.run(NIOCore.java:147)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
at com.axway.niocore.acceptor.Acceptor.<init>(Acceptor.java:84)
... 15 more
Resolution
-- Problem resolved in Gateway 6.13.0 SP 1 Patch 9
-- Release notes from Patch 9 provide the following information:
<BUG>
Internal ID: 58214
Description: Race condition when Multiplexer pool ready and connected to multiple Router Agents.
Comment : Only the first thread has access to establish the administration SAP.