4 Replies Latest reply: Aug 19, 2013 10:25 AM by Jonathan.Knight Branched from an earlier discussion. RSS

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

    ppssrr

      Hi, All

      I am new to oracle coherence, I am trying to connect remote clients i got exception like.........

       

       

       

       

      2013-08-19 12:05:13.643/11.046 Oracle Coherence GE 3.7.1.1 <Info> (thread=main, member=n/a): Error establishing a connection with 10.21.12.86:8088: com.tangosol.net.RequestTimeoutException: request timed out after 10000 millis

      2013-08-19 12:05:13.643/11.046 Oracle Coherence GE 3.7.1.1 <D5> (thread=ExtendTcpCacheService:TcpInitiator, member=n/a): Stopped: TcpInitiator{Name=ExtendTcpCacheService:TcpInitiator, State=(SERVICE_STOPPED), ThreadCount=0, Codec=Codec(Format=POF), Serializer=com.tangosol.io.DefaultSerializer, PingInterval=0, PingTimeout=5000, RequestTimeout=5000, ConnectTimeout=10000, SocketProvider=SystemSocketProvider, RemoteAddresses=[/10.21.12.86:8088], SocketOptions{LingerTimeout=0, KeepAliveEnabled=true, TcpDelayEnabled=false}}

      2013-08-19 12:05:13.643/11.046 Oracle Coherence GE 3.7.1.1 <Error> (thread=main, member=n/a): Error while starting service "ExtendTcpCacheService": com.tangosol.net.messaging.ConnectionException: could not establish a connection to one of the following addresses: [10.21.12.86:8088]; make sure the "remote-addresses" configuration element contains an address and port of a running TcpAcceptor

          at com.tangosol.coherence.component.util.daemon.queueProcessor.service.peer.initiator.TcpInitiator.openConnection(TcpInitiator.CDB:120)

          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:39)

          at com.tangosol.coherence.component.util.safeService.SafeCacheService.startService(SafeCacheService.CDB:5)

          at com.tangosol.coherence.component.util.SafeService.ensureRunningService(SafeService.CDB:27)

          at com.tangosol.coherence.component.util.SafeService.start(SafeService.CDB:14)

          at com.tangosol.net.DefaultConfigurableCacheFactory.ensureServiceInternal(DefaultConfigurableCacheFactory.java:1105)

          at com.tangosol.net.DefaultConfigurableCacheFactory.ensureService(DefaultConfigurableCacheFactory.java:937)

          at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:919)

          at com.tangosol.net.DefaultConfigurableCacheFactory.configureCache(DefaultConfigurableCacheFactory.java:1296)

          at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:297)

          at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:204)

          at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:181)

          at com.cache.Test.main(Test.java:23)

       

      Exception in thread "main" com.tangosol.net.messaging.ConnectionException: could not establish a connection to one of the following addresses: [10.21.12.86:8088]; make sure the "remote-addresses" configuration element contains an address and port of a running TcpAcceptor

          at com.tangosol.coherence.component.util.daemon.queueProcessor.service.peer.initiator.TcpInitiator.openConnection(TcpInitiator.CDB:120)

          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:39)

          at com.tangosol.coherence.component.util.safeService.SafeCacheService.startService(SafeCacheService.CDB:5)

          at com.tangosol.coherence.component.util.SafeService.ensureRunningService(SafeService.CDB:27)

          at com.tangosol.coherence.component.util.SafeService.start(SafeService.CDB:14)

          at com.tangosol.net.DefaultConfigurableCacheFactory.ensureServiceInternal(DefaultConfigurableCacheFactory.java:1105)

          at com.tangosol.net.DefaultConfigurableCacheFactory.ensureService(DefaultConfigurableCacheFactory.java:937)

          at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:919)

          at com.tangosol.net.DefaultConfigurableCacheFactory.configureCache(DefaultConfigurableCacheFactory.java:1296)

          at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:297)

          at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:204)

          at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:181)

          at com.cache.Test.main(Test.java:23)

       

       

      my client configuration are:

       

       

      <cache-config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                    xmlns="http://xmlns.oracle.com/coherence/coherence-cache-config"

                    xsi:schemaLocation="http://xmlns.oracle.com/coherence/coherence-cache-config coherence-cache-config.xsd">

       

         <caching-scheme-mapping>

            <cache-mapping>

               <cache-name>VirtualCache</cache-name>

               <scheme-name>extend-dist</scheme-name>

            </cache-mapping>

         </caching-scheme-mapping>

       

         <caching-schemes>

            <remote-cache-scheme>

               <scheme-name>extend-dist</scheme-name>

               <service-name>ExtendTcpCacheService</service-name>

               <initiator-config>

                  <tcp-initiator>

                     <remote-addresses>

                        <socket-address>

                           <address>10.21.12.86</address>

                           <port>8088</port>

                        </socket-address>

                     </remote-addresses>

                     <connect-timeout>10s</connect-timeout>

                  </tcp-initiator>

                  <outgoing-message-handler>

                     <request-timeout>5s</request-timeout>

                  </outgoing-message-handler>

               </initiator-config>

            </remote-cache-scheme>

         </caching-schemes>

      </cache-config>

       

       

      my cache server configuration are:

       

      <?xml version="1.0" encoding="UTF-8"?>

       

      <cache-config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

          xmlns="http://xmlns.oracle.com/coherence/coherence-cache-config"

          xsi:schemaLocation="http://xmlns.oracle.com/coherence/coherence-cache-config

         coherence-cache-config.xsd">

          <caching-scheme-mapping>

              <cache-mapping>

                  <cache-name>VirtualCache</cache-name>

                  <scheme-name>extend</scheme-name>

              </cache-mapping>

          </caching-scheme-mapping>

       

          <caching-schemes>

              <distributed-scheme>

                  <scheme-name>extend</scheme-name>

                  <lease-granularity>member</lease-granularity>

                  <backing-map-scheme>

                      <local-scheme />

                  </backing-map-scheme>

                  <autostart>true</autostart>

              </distributed-scheme>

       

              <proxy-scheme>

                  <service-name>ExtendTcpProxyService</service-name>

                  <acceptor-config>

                      <tcp-acceptor>

                          <local-address>

                              <address>10.21.12.86</address>

                              <port>8088</port>

                          </local-address>

                      </tcp-acceptor>

                  </acceptor-config>

                  <proxy-config>

                      <cache-service-proxy>

                          <enabled>true</enabled>

                      </cache-service-proxy>

                      <invocation-service-proxy>

                          <enabled>true</enabled>

                      </invocation-service-proxy>

                  </proxy-config>

                  <autostart>true</autostart>

              </proxy-scheme>

          </caching-schemes>

      </cache-config>

       

       

      please give response ............

        • 1. Re: Coherence Extend -com.tangosol.net.messaging.ConnectionException
          Jonathan.Knight

          Hi

           

          Are you sure your server has actually started an Extend proxy on the configured socket or are there any errors in the server logs.  In your server log you should see a line like this...

           

          Oracle Coherence GE 3.7.1.1 <Info> (thread=Proxy:ExtendTcpProxyService:TcpAcceptor, member=8): TcpAcceptor now listening for connections on 10.21.12.86:8088

           

          If you don't see something like the message above then it isn't listening on the ports you have configured.

           

          JK

          • 2. Re: Coherence Extend -com.tangosol.net.messaging.ConnectionException
            ppssrr

            hi,

            if i run my client application i got this exeption...........

             

            2013-08-19 18:34:15.279/0.333 Oracle Coherence 3.7.1.1 <Info> (thread=main, member=n/a): Loaded operational configuration from "jar:file:/D:/m2repo/com/tangosol/net/coherence/3.7/coherence-3.7.jar!/tangosol-coherence.xml"

            2013-08-19 18:34:15.319/0.373 Oracle Coherence 3.7.1.1 <Info> (thread=main, member=n/a): Loaded operational overrides from "jar:file:/D:/m2repo/com/tangosol/net/coherence/3.7/coherence-3.7.jar!/tangosol-coherence-override-dev.xml"

            2013-08-19 18:34:15.321/0.375 Oracle Coherence 3.7.1.1 <Info> (thread=main, member=n/a): Loaded operational overrides from "file:/D:/Impartent%20Data%20D'not%20Delete/new%20soft/MasterAppTest/CacheClient/target/classes/tangosol-coherence-override.xml"

            2013-08-19 18:34:15.323/0.377 Oracle Coherence 3.7.1.1 <D5> (thread=main, member=n/a): Optional configuration override "/custom-mbeans.xml" is not specified

             

            Oracle Coherence Version 3.7.1.1 Build 28901

            Grid Edition: Development mode

            Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

             

            2013-08-19 18:34:15.491/0.545 Oracle Coherence GE 3.7.1.1 <Info> (thread=main, member=n/a): Loaded cache configuration from "file:/D:/Impartent%20Data%20D'not%20Delete/new%20soft/MasterAppTest/CacheClient/target/classes/coherence-cache-config.xml"

            2013-08-19 18:34:15.949/1.003 Oracle Coherence GE 3.7.1.1 <D5> (thread=ExtendTcpCacheService:TcpInitiator, member=n/a): Started: TcpInitiator{Name=ExtendTcpCacheService:TcpInitiator, State=(SERVICE_STARTED), ThreadCount=0, Codec=Codec(Format=POF), Serializer=com.tangosol.io.DefaultSerializer, PingInterval=0, PingTimeout=5000, RequestTimeout=5000, ConnectTimeout=10000, SocketProvider=SystemSocketProvider, RemoteAddresses=[/10.21.12.113:8088], SocketOptions{LingerTimeout=0, KeepAliveEnabled=true, TcpDelayEnabled=false}}

            2013-08-19 18:34:15.952/1.006 Oracle Coherence GE 3.7.1.1 <D5> (thread=main, member=n/a): Connecting Socket to 10.21.12.113:8088

            2013-08-19 18:34:15.954/1.008 Oracle Coherence GE 3.7.1.1 <Info> (thread=main, member=n/a): Connected Socket to 10.21.12.113:8088

            2013-08-19 18:34:25.980/11.034 Oracle Coherence GE 3.7.1.1 <Info> (thread=main, member=n/a): Error establishing a connection with 10.21.12.113:8088: com.tangosol.net.RequestTimeoutException: request timed out after 10000 millis

            2013-08-19 18:34:25.981/11.035 Oracle Coherence GE 3.7.1.1 <D5> (thread=ExtendTcpCacheService:TcpInitiator, member=n/a): Stopped: TcpInitiator{Name=ExtendTcpCacheService:TcpInitiator, State=(SERVICE_STOPPED), ThreadCount=0, Codec=Codec(Format=POF), Serializer=com.tangosol.io.DefaultSerializer, PingInterval=0, PingTimeout=5000, RequestTimeout=5000, ConnectTimeout=10000, SocketProvider=SystemSocketProvider, RemoteAddresses=[/10.21.12.113:8088], SocketOptions{LingerTimeout=0, KeepAliveEnabled=true, TcpDelayEnabled=false}}

            Exception in thread "main" com.tangosol.net.messaging.ConnectionException: could not establish a connection to one of the following addresses: [10.21.12.113:8088]; make sure the "remote-addresses" configuration element contains an address and port of a running TcpAcceptor

                at com.tangosol.coherence.component.util.daemon.queueProcessor.service.peer.initiator.TcpInitiator.openConnection(TcpInitiator.CDB:120)

                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:39)

                at com.tangosol.coherence.component.util.safeService.SafeCacheService.startService(SafeCacheService.CDB:5)

                at com.tangosol.coherence.component.util.SafeService.ensureRunningService(SafeService.CDB:27)

                at com.tangosol.coherence.component.util.SafeService.start(SafeService.CDB:14)

                at com.tangosol.net.DefaultConfigurableCacheFactory.ensureServiceInternal(DefaultConfigurableCacheFactory.java:1105)

                at com.tangosol.net.DefaultConfigurableCacheFactory.ensureService(DefaultConfigurableCacheFactory.java:937)

                at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:919)

                at com.tangosol.net.DefaultConfigurableCacheFactory.configureCache(DefaultConfigurableCacheFactory.java:1296)

                at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:297)

                at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:204)

                at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:181)

                at com.cache.Test.main(Test.java:23)

            2013-08-19 18:34:25.982/11.036 Oracle Coherence GE 3.7.1.1 <Error> (thread=main, member=n/a): Error while starting service "ExtendTcpCacheService": com.tangosol.net.messaging.ConnectionException: could not establish a connection to one of the following addresses: [10.21.12.113:8088]; make sure the "remote-addresses" configuration element contains an address and port of a running TcpAcceptor

                at com.tangosol.coherence.component.util.daemon.queueProcessor.service.peer.initiator.TcpInitiator.openConnection(TcpInitiator.CDB:120)

                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:39)

                at com.tangosol.coherence.component.util.safeService.SafeCacheService.startService(SafeCacheService.CDB:5)

                at com.tangosol.coherence.component.util.SafeService.ensureRunningService(SafeService.CDB:27)

                at com.tangosol.coherence.component.util.SafeService.start(SafeService.CDB:14)

                at com.tangosol.net.DefaultConfigurableCacheFactory.ensureServiceInternal(DefaultConfigurableCacheFactory.java:1105)

                at com.tangosol.net.DefaultConfigurableCacheFactory.ensureService(DefaultConfigurableCacheFactory.java:937)

                at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:919)

                at com.tangosol.net.DefaultConfigurableCacheFactory.configureCache(DefaultConfigurableCacheFactory.java:1296)

                at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:297)

                at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:204)

                at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:181)

                at com.cache.Test.main(Test.java:23)

            • 3. Re: Coherence Extend -com.tangosol.net.messaging.ConnectionException
              ppssrr

              hi,

              my cache server running on remote location, i want to connect that server and get that data. i have valid credentials and host and port.but i got the above exeption......

               

              please send to me required configurations.....

              • 4. Re: Coherence Extend -com.tangosol.net.messaging.ConnectionException
                Jonathan.Knight

                Your config file looks like it should create an Extend proxy Service but you have not answered my question. Is the proxy service actually listening on socket you are trying to connect to?

                 

                In your original post you seemed to be trying to connect to 10.21.12.86:8088 and in the second post trying to connect to 10.21.12.113:8088

                 

                Have you looked in the logs of your server, do you have "TcpAcceptor now listening for connections on 10.21.12.113:8088" in the server side log

                 

                JK