Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem in connecting to coherence service

733885Mar 15 2010 — edited Mar 16 2010
Hi,

I am getting following error when I try to connect to coherence service through *(ICacheService)CacheFactory.GetService("ExtendTcpProxyService")*;

I am using c#.

*"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"*

Following is the server side config cache:

<?xml version="1.0"?>

<!--
| Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
|
| Oracle is a registered trademarks of Oracle Corporation and/or its affiliates.
|
| This software is the confidential and proprietary information of
| Oracle Corporation. You shall not disclose such confidential and
| proprietary information and shall use it only in accordance with the
| terms of the license agreement you entered into with Oracle.
|
| This notice may not be removed or altered.
-->

<!DOCTYPE cache-config SYSTEM "cache-config.dtd">

<cache-config>
<caching-scheme-mapping>
<cache-mapping>
<cache-name>ACCOUNT</cache-name>
<scheme-name>dist-default</scheme-name>
</cache-mapping>
</caching-scheme-mapping>

<caching-schemes>
<distributed-scheme>
<scheme-name>dist-default</scheme-name>
<serializer>
<class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
<init-params>
<init-param>
<param-type>string</param-type>
<param-value>custom-types-pof-config.xml</param-value>
</init-param>
</init-params>
</serializer>
<backing-map-scheme>
<local-scheme/>
</backing-map-scheme>
<autostart>true</autostart>
</distributed-scheme>

<proxy-scheme>
<service-name>ExtendTcpProxyService</service-name>
<thread-count>5</thread-count>
<acceptor-config>
<tcp-acceptor>
<local-address>
<address>localhost</address>
<port>9099</port>
</local-address>
</tcp-acceptor>
<serializer>
<class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
<init-params>
<init-param>
<param-type>string</param-type>
<param-value>custom-types-pof-config.xml</param-value>
</init-param>
</init-params>
</serializer>
</acceptor-config>
<autostart>true</autostart>
</proxy-scheme>
</caching-schemes>
</cache-config>

Following is the client side cache config:

<?xml version="1.0"?>

<!--
| Copyright (c) 2000, 2009, Oracle and/or its affiliates. All rights reserved.
|
| Oracle is a registered trademarks of Oracle Corporation and/or its affiliates.
|
| This software is the confidential and proprietary information of
| Oracle Corporation. You shall not disclose such confidential and
| proprietary information and shall use it only in accordance with the
| terms of the license agreement you entered into with Oracle.
|
| This notice may not be removed or altered.
-->

<cache-config xmlns="http://schemas.tangosol.com/cache">
<caching-scheme-mapping>
<cache-mapping>
<cache-name>ACCOUNT</cache-name>
<scheme-name>extend-direct</scheme-name>
</cache-mapping>
</caching-scheme-mapping>
<caching-schemes>
<remote-cache-scheme>
<scheme-name>extend-direct</scheme-name>
<service-name>ExtendTcpProxyService</service-name>
<initiator-config>
<tcp-initiator>
<remote-addresses>
<socket-address>
<address>localhost</address>
<port>9099</port>
</socket-address>
</remote-addresses>
</tcp-initiator>
<outgoing-message-handler>
<request-timeout>30s</request-timeout>
</outgoing-message-handler>
<serializer>
<class-name>Tangosol.IO.Pof.ConfigurablePofContext, Coherence</class-name>
<init-params>
<init-param>
<param-type>string</param-type>
<param-value>Config\pof-config.xml</param-value>
</init-param>
</init-params>
</serializer>
</initiator-config>
</remote-cache-scheme>
</caching-schemes>
</cache-config>

Please help me out on this.

Regards
Nitin Jain
This post has been answered by Jonathan.Knight on Mar 16 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 13 2010
Added on Mar 15 2010
8 comments
2,407 views