StartUp Error of Business Events when initialize Coherence cluster - java.net.BindException: Address already in use
book
Article ID: KB0088158
calendar_today
Updated On:
Products
Versions
TIBCO BusinessEvents Enterprise Edition
-
Not Applicable
-
Description
Resolution: Description: =========== Business Events engine will not start. The logfile shows an Exception "java.net.BindException: Address already in use" when initialize the Cache cluster
Environment: =========== o Business Events 3.0.1 (all environments)
Symptoms: ========= The Logfile reports the error below: Oracle Coherence EE 3.4.2/411p1 <Error> (thread=main, member=n/a): Error while starting cluster: (Wrapped: TcpSocketAccepter{State=STATE_INITIAL, address:port=10.21.13.21:8091}) java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359) at java.net.ServerSocket.bind(ServerSocket.java:319) at java.net.ServerSocket.<init>(ServerSocket.java:185) at com.tangosol.coherence.component.net.socket.TcpSocketAccepter.instantiateServerSocket(TcpSocketAccepter.CDB:23) at com.tangosol.coherence.component.net.socket.TcpSocketAccepter.open(TcpSocketAccepter.CDB:10) at com.tangosol.coherence.component.net.Cluster$SocketManager$TcpSocketAccepter.open(Cluster.CDB:6) at com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:129) at com.tangosol.coherence.component.net.Cluster.start(Cluster.CDB:11) at com.tangosol.coherence.component.util.SafeCluster.startCluster(SafeCluster.CDB:3) at com.tangosol.coherence.component.util.SafeCluster.restartCluster(SafeCluster.CDB:7) at com.tangosol.coherence.component.util.SafeCluster.ensureRunningCluster(SafeCluster.CDB:27) at com.tangosol.coherence.component.util.SafeCluster.start(SafeCluster.CDB:2) at com.tangosol.net.CacheFactory.ensureCluster(CacheFactory.java:948) at com.tangosol.net.DefaultConfigurableCacheFactory.ensureService(DefaultConfigurableCacheFactory.java:778) at com.tangosol.net.DefaultConfigurableCacheFactory.ensureService(DefaultConfigurableCacheFactory.java:294) at com.tibco.cep.runtime.service.om.coherence.cluster.CacheCluster.initCoherence(CacheCluster.java:949) at com.tibco.cep.runtime.service.om.coherence.cluster.CacheCluster.initialize(CacheCluster.java:1056) at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.initCluster(RuleServiceProviderImpl.java:734) at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.configure(RuleServiceProviderImpl.java:223) at com.tibco.cep.container.standalone.BEMain.jumpStart(BEMain.java:129) at com.tibco.cep.container.standalone.BEMain.main(BEMain.java:45)
Cause: ====== The engine tries to join the Coherence Cache cluster with a port that is used by another application
Resolution: ========
1.) add parameters below to the TRA file
# Coherence will check if a port is used, if this the case coherence tries the next port (+1) java.property.tangosol.coherence.localport.adjust=true
# specify the portnumber coherence will use java.property.tangosol.coherence.localport=<portnumber>
2.) use Well-Known addressees (WKA settings) for the cluster settings
Issue/Introduction
StartUp Error of Business Events when initialize Coherence cluster - java.net.BindException: Address already in use