caching - Remote Coherence client gives error -


my remote coherence server(with script got coherence 3.6.1 download) getting started ipaddress 169.177.81.97 , port 8088.i have not started weblogic server this.now when try connect client in different machine gives me error:

2016-08-08 15:06:20.423/0.237 oracle coherence 3.6.1.0 <info> (thread=main, member=n/a): loaded operational configuration "jar:file:/c:/test/remotecache/lib/coherence.jar!/tangosol-coherence.xml" 2016-08-08 15:06:20.427/0.241 oracle coherence 3.6.1.0 <info> (thread=main, member=n/a): loaded operational overrides "jar:file:/c:/test/remotecache/lib/coherence.jar!/tangosol-coherence-override-dev.xml" 2016-08-08 15:06:20.429/0.243 oracle coherence 3.6.1.0 <info> (thread=main, member=n/a): loaded operational overrides "file:/c:/test/remotecache/bin/tangosol-coherence-override.xml" 2016-08-08 15:06:20.435/0.249 oracle coherence 3.6.1.0 <d5> (thread=main, member=n/a): optional configuration override "/custom-mbeans.xml" not specified   oracle coherence version 3.6.1.0 build 19636  grid edition: development mode copyright (c) 2000, 2010, oracle and/or affiliates. rights reserved.   2016-08-08 15:06:20.618/0.432 oracle coherence ge 3.6.1.0 <info> (thread=main, member=n/a): loaded cache configuration "file:/c:/test/remotecache/bin/example-config.xml" 2016-08-08 15:06:20.900/0.714 oracle coherence ge 3.6.1.0 <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=[/169.177.81.97:8088], socketoptions{lingertimeout=0, keepaliveenabled=true, tcpdelayenabled=false}} 2016-08-08 15:06:20.907/0.721 oracle coherence ge 3.6.1.0 <d5> (thread=main, member=n/a): connecting socket 169.177.81.97:8088 2016-08-08 15:06:20.949/0.763 oracle coherence ge 3.6.1.0 <info> (thread=main, member=n/a): connected socket 169.177.81.97:8088 2016-08-08 15:06:30.972/10.786 oracle coherence ge 3.6.1.0 <info> (thread=main, member=n/a): error establishing connection 169.177.81.97:8088: ******com.tangosol.net.requesttimeoutexception: request timed out after 10000 millis exception in thread "main" com.tangosol.net.messaging.connectionexception: not establish connection 1 of following addresses: [169.177.81.97:8088]; make sure "remote-addresses" configuration element contains address , port of running tcpacceptor****   at** com.tangosol.coherence.component.util.daemon.queueprocessor.service.peer.initiator.tcpinitiator$tcpconnection.open(tcpinitiator.cdb:64)   @ com.tangosol.coherence.component.util.daemon.queueprocessor.service.peer.initiator.ensureconnection(initiator.cdb:12)   @ com.tangosol.coherence.component.net.extend.remoteservice.remotecacheservice.openchannel(remotecacheservice.cdb:5)   @ com.tangosol.coherence.component.net.extend.remoteservice.dostart(remoteservice.cdb:11)   @ com.tangosol.coherence.component.net.extend.remoteservice.start(remoteservice.cdb:5)   @ com.tangosol.coherence.component.util.safeservice.startservice(safeservice.cdb:28)   @ com.tangosol.coherence.component.util.safeservice.safecacheservice.startservice(safecacheservice.cdb:5)   @ com.tangosol.coherence.component.util.safeservice.ensurerunningservice(safeservice.cdb:27)   @ com.tangosol.coherence.component.util.safeservice.start(safeservice.cdb:14)   @ com.tangosol.net.defaultconfigurablecachefactory.ensureserviceinternal(defaultconfigurablecachefactory.java:1057)   @ com.tangosol.net.defaultconfigurablecachefactory.ensureservice(defaultconfigurablecachefactory.java:892)   @ com.tangosol.net.defaultconfigurablecachefactory.ensurecache(defaultconfigurablecachefactory.java:874)   @ com.tangosol.net.defaultconfigurablecachefactory.configurecache(defaultconfigurablecachefactory.java:1231)   @ com.tangosol.net.defaultconfigurablecachefactory.ensurecache(defaultconfigurablecachefactory.java:290)   @ com.tangosol.net.cachefactory.getcache(cachefactory.java:735)   @ com.tangosol.net.cachefactory.getcache(cachefactory.java:712)   @ com.test.testclient.main(testclient.java:15) 2016-08-08 15:06:30.973/10.787 oracle coherence ge 3.6.1.0 <error> (thread=main, member=n/a): error while starting service "extendtcpcacheservice": com.tangosol.net.messaging.connectionexception: not establish connection 1 of following addresses: [169.177.81.97:8088]; make sure "remote-addresses" configuration element contains address , port of running tcpacceptor   @ com.tangosol.coherence.component.util.daemon.queueprocessor.service.peer.initiator.tcpinitiator$tcpconnection.open(tcpinitiator.cdb:64)   @ com.tangosol.coherence.component.util.daemon.queueprocessor.service.peer.initiator.ensureconnection(initiator.cdb:12)   @ com.tangosol.coherence.component.net.extend.remoteservice.remotecacheservice.openchannel(remotecacheservice.cdb:5)   @ com.tangosol.coherence.component.net.extend.remoteservice.dostart(remoteservice.cdb:11)   @ com.tangosol.coherence.component.net.extend.remoteservice.start(remoteservice.cdb:5)   @ com.tangosol.coherence.component.util.safeservice.startservice(safeservice.cdb:28)   @ com.tangosol.coherence.component.util.safeservice.safecacheservice.startservice(safecacheservice.cdb:5)   @ com.tangosol.coherence.component.util.safeservice.ensurerunningservice(safeservice.cdb:27)   @ com.tangosol.coherence.component.util.safeservice.start(safeservice.cdb:14)   @ com.tangosol.net.defaultconfigurablecachefactory.ensureserviceinternal(defaultconfigurablecachefactory.java:1057)   @ com.tangosol.net.defaultconfigurablecachefactory.ensureservice(defaultconfigurablecachefactory.java:892)   @ com.tangosol.net.defaultconfigurablecachefactory.ensurecache(defaultconfigurablecachefactory.java:874)   @ com.tangosol.net.defaultconfigurablecachefactory.configurecache(defaultconfigurablecachefactory.java:1231)   @ com.tangosol.net.defaultconfigurablecachefactory.ensurecache(defaultconfigurablecachefactory.java:290)   @ com.tangosol.net.cachefactory.getcache(cachefactory.java:735)   @ com.tangosol.net.cachefactory.getcache(cachefactory.java:712)   @ com.test.testclient.main(testclient.java:15)   2016-08-08 15:06:30.974/10.788 oracle coherence ge 3.6.1.0 <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=[/169.177.81.97:8088], socketoptions{lingertimeout=0, keepaliveenabled=true, tcpdelayenabled=false}} 

client code:

tangosol-coherence-override.xml

<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>dist-extend</cache-name>       <scheme-name>remote</scheme-name>     </cache-mapping>   </caching-scheme-mapping>    <caching-schemes>     <remote-cache-scheme>       <scheme-name>remote</scheme-name>       <service-name>extendtcpcacheservice</service-name>       <initiator-config>         <tcp-initiator>           <remote-addresses>             <socket-address>               <address>169.177.81.97</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>     <remote-invocation-scheme>       <scheme-name>extend-invocation</scheme-name>       <service-name>extendtcpinvocationservice</service-name>       <initiator-config>         <tcp-initiator>           <remote-addresses>             <socket-address>               <address>169.177.81.97</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-invocation-scheme>    </caching-schemes> </cache-config> 

example-config.xml

<?xml version="1.0"?>   <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>dist-extend</cache-name>       <scheme-name>remote</scheme-name>     </cache-mapping>   </caching-scheme-mapping>    <caching-schemes>     <remote-cache-scheme>       <scheme-name>remote</scheme-name>       <service-name>extendtcpcacheservice</service-name>       <initiator-config>         <tcp-initiator>           <remote-addresses>             <socket-address>               <address>169.177.81.97</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>     <remote-invocation-scheme>       <scheme-name>extend-invocation</scheme-name>       <service-name>extendtcpinvocationservice</service-name>       <initiator-config>         <tcp-initiator>           <remote-addresses>             <socket-address>               <address>169.177.81.97</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-invocation-scheme>   </caching-> </cache-config> 

testclient.java

package com.test;   import com.tangosol.net.abstractinvocable; import com.tangosol.net.cachefactory; import com.tangosol.net.invocationservice; import com.tangosol.net.namedcache; import java.util.map;   public class testclient {     public static void main(string[] asargs)             throws throwable         {           namedcache cache  = cachefactory.getcache("dist-extend");         integer ivalue = (integer) cache.get("key");         if (ivalue == null)             {             ivalue = new integer(2);             }         else             {             ivalue = new integer(ivalue.intvalue() + 1);             }         cache.put("key", 5);           system.out.print("the value of key " + cache.get("key"));         } } 

server startup script:

#!/bin/sh   # start cache server   # specify coherence installation directory coherence_home=/apps/p1devbdomain/coherence   # specify jvm heap size memory=512m   if [ ! -f ${coherence_home}/bin/cache-server.sh ];   echo "coherence.sh: must run coherence installation directory."   exit fi   if [ -f $java_home/bin/java ];   javaexec=$java_home/bin/java else   javaexec=java fi   java_opts="-xms$memory -xmx$memory -djava.net.preferipv4stack=true" echo $coherence_home echo starting     echo  $javaexec -server -showversion $java_opts -cp "$coherence_home/lib/coherence.jar;$coherence_home/lib/coherence-web-spi.war" -dtangosol.coherence.management.remote=true -dtangosol.coherence.cacheconfig=web-inf/classes/session-cache-config.xml  -dtangosol.coherence.distributed.localstorage=true -dtangosol.coherence.session.localstorage=true com.tangosol.net.defaultcacheserver $1 echo ---------------------------------------------------- $javaexec -server -showversion $java_opts -cp "$coherence_home/lib/coherence.jar:$coherence_home/lib/coherence-web-spi.war" -dtangosol.coherence.management.remote=true  -dtangosol.coherence.extend.enabled=true -dtangosol.coherence.cacheconfig=web-inf/classes/session-cache-config.xml  -dtangosol.coherence.distributed.localstorage=true -dtangosol.coherence.session.localstorage=true com.tangosol.net.defaultcacheserver $1 & 

can on this.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -