5 Replies Latest reply: Feb 17, 2011 6:11 AM by 836799 Branched to a new discussion. RSS

    Coherence Extend -com.tangosol.net.messaging.ConnectionException

    836799
      Hello,

      I have setup coherence extend client and proxy-server.

      I am getting following exception whenever i do web related operations.
      Constructor threw exception; nested exception is com.tangosol.net.messaging.ConnectionException: could not establish a Socket connection to one of the remote addresses specified in the "remote-addresses" configuration element; make sure this element contains an address and port of a running

      Here is my client xml,
      ...
      <remote-cache-scheme>
      <scheme-name>extend-dist</scheme-name>
      <service-name>ExtendTcpCacheService</service-name>
      <initiator-config>
      <tcp-initiator>
      <remote-addresses>
      <socket-address>
      <address system-property="tangosol.coherence.proxy.address">lglor248</address>
      <port system-property="tangosol.coherence.proxy.port">9099</port>
      </socket-address>
      </remote-addresses>
      <connect-timeout>10s</connect-timeout>
      </tcp-initiator>
      <outgoing-message-handler>
      <request-timeout>8s</request-timeout>
      </outgoing-message-handler>
      </initiator-config>
      </remote-cache-scheme>



      -------------

      proxy Server.xml
      ...
      <proxy-scheme>
      <service-name>ExtendTcpProxyService</service-name>
      <thread-count>5</thread-count>
      <acceptor-config>
      <tcp-acceptor>
      <local-address>
      <address>172.23.73.248</address>
      <port>9099</port>
      <reusable>true</reusable>
      </local-address>
      </tcp-acceptor>
      </acceptor-config>
      <autostart>true</autostart>
      </proxy-scheme>


      -----------------------------------

      I tried with hostname/IP address and all the way around but i m getting the same error.


      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'EventRepositoryOSGi' defined in URL [bundle://28.0:0/META-INF/spring/eventRestApplicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.emc.srm.repository.event.impl.EventRepository]: Constructor threw exception; nested exception is com.tangosol.net.messaging.ConnectionException: could not establish a Socket connection to one of the remote addresses specified in the "remote-addresses" configuration element; make sure this element contains an address and port of a running TcpAcceptor
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:883)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:826)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
      at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
      at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
      ... 42 more
      Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.emc.srm.repository.event.impl.EventRepository]: Constructor threw exception; nested exception is com.tangosol.net.messaging.ConnectionException: could not establish a Socket connection to one of the remote addresses specified in the "remote-addresses" configuration element; make sure this element contains an address and port of a running TcpAcceptor
      at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115)
      at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877)
      ... 53 more
      Caused by: com.tangosol.net.messaging.ConnectionException: could not establish a Socket connection to one of the remote addresses specified in the "remote-addresses" configuration element; make sure this element contains an address and port of a running TcpAcceptor
      at com.tangosol.coherence.component.util.daemon.queueProcessor.service.peer.initiator.TcpInitiator.instantiateConnection(TcpInitiator.CDB:51)
      at com.tangosol.coherence.component.util.daemon.queueProcessor.service.peer.Initiator.ensureConnection(Initiator.CDB:11)
      at com.tangosol.coherence.component.net.extend.remoteService.RemoteCacheService.openChannel(RemoteCacheService.CDB:5)
      at com.tangosol.coherence.component.net.extend.RemoteService.doStart(RemoteService.CDB:11)
      at com.tangosol.coherence.component.net.extend.RemoteService.start(RemoteService.CDB:5)
      at com.tangosol.coherence.component.util.SafeService.startService(SafeService.CDB:28)
      at com.tangosol.coherence.component.util.safeService.SafeCacheService.startService(SafeCacheService.CDB:5)

      -------------

      In the main server log, proxy server joined as a client. is that fine? or it(proxy server) should be storage enabled?

      Thanks
      Prabhakar

      Edited by: 833796 on Feb 22, 2011 10:55 PM