NullPointerException (NPE) is seen with localport for Cache is set to N and for Inference its set to N+1, when tangosol.coherence.localport.adjust=false.
book
Article ID: KB0094567
calendar_today
Updated On:
Products
Versions
TIBCO BusinessEvents Enterprise Edition
-
Not Applicable
-
Description
Resolution: Description: ========= Below NullPointerException (NPE) is seen with localport for Cache is set to N and for Inference its set to N+1, when tangosol.coherence.localport.adjust=false.
+++++++++++++++++++++Error starting inference engine [[ Error: 2011 Jun 16 20:31:45:390 GMT +8 mushaikh-i564bit.apac.tibco.com Warning [main] - [runtime.service] Initializing Coherence failed java.lang.NullPointerException at com.tangosol.coherence.component.net.TcpRing.ensureSelector(TcpRing.CDB:7) at com.tangosol.coherence.component.net.TcpRing.setServerSocketChannel(TcpRing.CDB:20) at com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:510) 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:26) at com.tangosol.coherence.component.util.SafeCluster.start(SafeCluster.CDB:2) at com.tangosol.net.CacheFactory.ensureCluster(CacheFactory.java:998) at com.tangosol.net.DefaultConfigurableCacheFactory.ensureServiceInternal(DefaultConfigurableCacheFactory.java:953) at com.tangosol.net.DefaultConfigurableCacheFactory.ensureService(DefaultConfigurableCacheFactory.java:892) at com.tangosol.net.DefaultConfigurableCacheFactory.ensureService(DefaultConfigurableCacheFactory.java:330) at com.tibco.cep.runtime.service.om.coherence.cluster.CacheCluster.initCoherence(CacheCluster.java:899) at com.tibco.cep.runtime.service.om.coherence.cluster.CacheCluster.initialize(CacheCluster.java:1002) at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.initCluster(RuleServiceProviderImpl.java:871) at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.configure(RuleServiceProviderImpl.java:238) at com.tibco.cep.container.standalone.BEMain.jumpStart(BEMain.java:130) at com.tibco.cep.container.standalone.BEMain.main(BEMain.java:52) ]]] +++++++++++++++++++++
Environment: ========== TIBCO Product name and version: TIBCO BusinessEvents 4.x Operating System(s): All
Cause: ===== NullPointerException (NPE) is the result of a port conflict. This is expected as Coherence itself opens up additional UDP port (+1 of TCP port mentioned in cdd) for internal cluster communication.
Resolution: ======== If you specify Cache Engine localport prop to (N), it is necessary to have Inf engine localport prop to (N+2) or more and adjust prop = false, to avoid the reported exception.
Issue/Introduction
NullPointerException (NPE) is seen with localport for Cache is set to N and for Inference its set to N+1, when tangosol.coherence.localport.adjust=false.