Thread: Active-Active Example with separate proxy server

This question is not answered. Helpful answers available: 5. Correct answers available: 1.


Permlink Replies: 2 - Pages: 1 - Last Post: Nov 19, 2009 12:57 PM Last Post By: Venkat.S Threads: [ Previous | Next ]
Venkat.S

Posts: 11
Registered: 05/21/09
Active-Active Example with separate proxy server
Posted: Nov 4, 2009 5:04 PM
 
Click to report abuse...   Click to reply to this thread Reply
The active-active example works like a charm.
However when I take out the proxy server configuration from the active-site-pof-cache-config.xml and start a new proxy server node, I see this error. The proxy server config is same as active-site-pof-cache-config.xml without the RemoteSiteInvocationService.

Thanks

2009-11-04 19:44:32.201/42.194 Oracle Coherence GE 3.5.2/463 <Error> (thread=Proxy:ExtendTcpProxyService:TcpAcceptor, member=2): Failed to publish EntryOperation{siteName=com, clusterName=master2-QA, cacheName=publishing-cache, operation=Store, key=activeSiteExample2, value=Example Valueactive-site2, 2} to Cache publishing-cache because of
java.lang.IllegalArgumentException: No scheme for cache: "publishing-cache"
2009-11-04 19:44:32.202/42.195 Oracle Coherence GE 3.5.2/463 <D5> (thread=Proxy:ExtendTcpProxyService:TcpAcceptor, member=2): An exception occurred while processing a InvocationRequest for Service=Proxy:ExtendTcpProxyService:TcpAcceptor: java.lang.IllegalArgumentException: No scheme for cache: "pending-operations-publishing-cache"
at com.tangosol.net.DefaultConfigurableCacheFactory.findSchemeMapping(DefaultConfigurableCacheFactory.java:507)
at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:297)
at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:735)
at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:712)

Edited by: Venkat.S on Nov 19, 2009 10:02 AM

JonathanKnight

Posts: 65
Registered: 01/06/08
Re: Active-Active Example with separate proxy server
Posted: Nov 6, 2009 10:24 AM   in response to: Venkat.S in response to: Venkat.S
 
Click to report abuse...   Click to reply to this thread Reply
Venkat,

As the error seems to say that the extend proxy cannot find the pending-operations-publishing-cache scheme does your extend proxy config have this line in it:

<introduce-cache-config file="coherence-pushreplicationpattern-pof-cache-config.xml" />

You need to include the other incubator configurations. Alternatively you could just have an extend proxy config with just the proxy schem in it that then includes you cache server config. For example if you cache server storage enabled node's config is called cache-server-config.xml you could have a config file for you extend proxy that looks like this:

<?xml version="1.0"?>
<!DOCTYPE cache-config SYSTEM "cache-config.dtd">
<cache-config>
  <introduce-cache-config file="cache-server-config.xml" />
 
  <caching-schemes>
 
    <proxy-scheme>
      <scheme-name>default-proxy-scheme</scheme-name>
      <service-name>ExtendTcpProxyService</service-name>
      <acceptor-config>
        <tcp-acceptor>
          <local-address>
            <address>XXXXXX</address>
            <port>XXXX</port>
          </local-address>
        </tcp-acceptor>
        <serializer>
          <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
        </serializer>
      </acceptor-config>
      <autostart>true</autostart>
    </proxy-scheme>
 
  </caching-schemes>
  
</cache-config>

JK

Edited by: JonathanKnight on Nov 6, 2009 6:33 PM

Edited by: JonathanKnight on Nov 19, 2009 8:57 PM

Venkat.S

Posts: 11
Registered: 05/21/09
Re: Active-Active Example with separate proxy server
Posted: Nov 19, 2009 10:04 AM   in response to: JonathanKnight in response to: JonathanKnight
 
Click to report abuse...   Click to reply to this thread Reply
Thanks!
Sorry took so long as was swamped by something else.
I did notice that I do have the include in the proxy server also.
Will try it again and let you know.

Could you edit out any reference to site name.

Regards
Legend
Guru Guru : 2500 - 1000000 pts
Expert Expert : 1000 - 2499 pts
Pro Pro : 500 - 999 pts
Journeyman Journeyman : 200 - 499 pts
Newbie Newbie : 0 - 199 pts
Oracle ACE Director
Oracle ACE Member
Oracle Employee ACE
Helpful Answer (5 pts)
Correct Answer (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums