You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-users@jakarta.apache.org by giriraj <gi...@gmail.com> on 2006/10/31 00:56:27 UTC

Lateral TCPCache issue

Hi

I am trying to configure a TCP Lateral cache using the following config
parameters


jcs.auxiliary.LTCP=org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheFactory
jcs.auxiliary.LTCP.attributes=org.apache.jcs.auxiliary.lateral.socket.tcp.TCPLateralCacheAttributes
jcs.auxiliary.LTCP.attributes.TcpServers=localhost:7010
jcs.auxiliary.LTCP.attributes.TcpListenerPort=7011
jcs.auxiliary.LTCP.attributes.Receive=true
jcs.auxiliary.LTCP.attributes.AllowGet=false
jcs.auxiliary.LTCP.attributes.IssueRemoveOnPut=false
jcs.auxiliary.LTCP.attributes.FilterRemoveByHashCode=false

I get the following error. 

I am testing with 2 JVMs on same machine but the error comes when i start my
first VM. 

The second VM will only have changes in the TCPListenerPort and TCPServers
parameters.

-giriraj


2006-10-30 15:50:09,031 ERROR [main] tcp.LateralTCPService - Could not
create s
nder to [localhost:7010] -- Socket is null, cannot connect to localhost:7010
2006-10-30 15:50:09,031 ERROR [main] tcp.LateralTCPCacheManager - Failure,
late
al instance will use zombie service
java.io.IOException: Socket is null, cannot connect to localhost:7010
        at
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPSender.init(La
eralTCPSender.java:137)
        at
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPSender.<init>(
ateralTCPSender.java:110)
        at
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPService.<init>
LateralTCPService.java:70)
        at
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager.<
nit>(LateralTCPCacheManager.java:164)
        at
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager.g
tInstance(LateralTCPCacheManager.java:105)
        at
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheFactory.c
eateCache(LateralTCPCacheFactory.java:81)
        at
org.apache.jcs.engine.control.CompositeCacheConfigurator.parseAuxili
ry(CompositeCacheConfigurator.java:551)
        at
org.apache.jcs.engine.control.CompositeCacheConfigurator.parseRegion
CompositeCacheConfigurator.java:343)
        at
org.apache.jcs.engine.control.CompositeCacheConfigurator.parseRegion
CompositeCacheConfigurator.java:264)
        at
org.apache.jcs.engine.control.CompositeCacheConfigurator.parseRegion
(CompositeCacheConfigurator.java:241)
        at
org.apache.jcs.engine.control.CompositeCacheConfigurator.doConfigure
CompositeCacheConfigurator.java:136)
        at
org.apache.jcs.engine.control.CompositeCacheManager.configure(Compos
teCacheManager.java:311)
        at
org.apache.jcs.engine.control.CompositeCacheManager.configure(Compos
teCacheManager.java:255)
        at
org.apache.jcs.engine.control.CompositeCacheManager.configure(Compos
teCacheManager.java:242)
        at
org.apache.jcs.engine.control.CompositeCacheManager.configure(Compos
teCacheManager.java:191)
        at
org.apache.jcs.engine.control.CompositeCacheManager.getInstance(Comp
siteCacheManager.java:119)
        at org.apache.jcs.JCS.ensureCacheManager(JCS.java:99)
        at org.apache.jcs.JCS.getInstance(JCS.java:64)
        at
com.serus.common.caching.jcs.JCSCacheFactory.getCache(JCSCacheFactor
.java:42)
        at
com.serus.common.caching.CacheManager.createCache(CacheManager.java:
63)
        at
com.serus.common.caching.CacheManager.getCache(CacheManager.java:71)
        at
com.serus.common.caching.CacheManager.getCache(CacheManager.java:65)
        at
com.serus.common.caching.ProductReadCacheTest.setUp(ProductReadCache
est.java:59)
-- 
View this message in context: http://www.nabble.com/Lateral-TCPCache-issue-tf2542979.html#a7085643
Sent from the JCS - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org


Re: Lateral TCPCache issue

Posted by giriraj <gi...@gmail.com>.
I was able to use the UDPDiscovery mechanism and that worked.

-giriraj



giriraj wrote:
> 
> Hi
> 
> I am trying to configure a TCP Lateral cache using the following config
> parameters
> 
> 
> jcs.auxiliary.LTCP=org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheFactory
> jcs.auxiliary.LTCP.attributes=org.apache.jcs.auxiliary.lateral.socket.tcp.TCPLateralCacheAttributes
> jcs.auxiliary.LTCP.attributes.TcpServers=localhost:7010
> jcs.auxiliary.LTCP.attributes.TcpListenerPort=7011
> jcs.auxiliary.LTCP.attributes.Receive=true
> jcs.auxiliary.LTCP.attributes.AllowGet=false
> jcs.auxiliary.LTCP.attributes.IssueRemoveOnPut=false
> jcs.auxiliary.LTCP.attributes.FilterRemoveByHashCode=false
> 
> I get the following error. 
> 
> I am testing with 2 JVMs on same machine but the error comes when i start
> my first VM. 
> 
> The second VM will only have changes in the TCPListenerPort and TCPServers
> parameters.
> 
> -giriraj
> 
> 
> 2006-10-30 15:50:09,031 ERROR [main] tcp.LateralTCPService - Could not
> create s
> nder to [localhost:7010] -- Socket is null, cannot connect to
> localhost:7010
> 2006-10-30 15:50:09,031 ERROR [main] tcp.LateralTCPCacheManager - Failure,
> late
> al instance will use zombie service
> java.io.IOException: Socket is null, cannot connect to localhost:7010
>         at
> org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPSender.init(La
> eralTCPSender.java:137)
>         at
> org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPSender.<init>(
> ateralTCPSender.java:110)
>         at
> org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPService.<init>
> LateralTCPService.java:70)
>         at
> org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager.<
> nit>(LateralTCPCacheManager.java:164)
>         at
> org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager.g
> tInstance(LateralTCPCacheManager.java:105)
>         at
> org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheFactory.c
> eateCache(LateralTCPCacheFactory.java:81)
>         at
> org.apache.jcs.engine.control.CompositeCacheConfigurator.parseAuxili
> ry(CompositeCacheConfigurator.java:551)
>         at
> org.apache.jcs.engine.control.CompositeCacheConfigurator.parseRegion
> CompositeCacheConfigurator.java:343)
>         at
> org.apache.jcs.engine.control.CompositeCacheConfigurator.parseRegion
> CompositeCacheConfigurator.java:264)
>         at
> org.apache.jcs.engine.control.CompositeCacheConfigurator.parseRegion
> (CompositeCacheConfigurator.java:241)
>         at
> org.apache.jcs.engine.control.CompositeCacheConfigurator.doConfigure
> CompositeCacheConfigurator.java:136)
>         at
> org.apache.jcs.engine.control.CompositeCacheManager.configure(Compos
> teCacheManager.java:311)
>         at
> org.apache.jcs.engine.control.CompositeCacheManager.configure(Compos
> teCacheManager.java:255)
>         at
> org.apache.jcs.engine.control.CompositeCacheManager.configure(Compos
> teCacheManager.java:242)
>         at
> org.apache.jcs.engine.control.CompositeCacheManager.configure(Compos
> teCacheManager.java:191)
>         at
> org.apache.jcs.engine.control.CompositeCacheManager.getInstance(Comp
> siteCacheManager.java:119)
>         at org.apache.jcs.JCS.ensureCacheManager(JCS.java:99)
>         at org.apache.jcs.JCS.getInstance(JCS.java:64)
>         at
> com.serus.common.caching.jcs.JCSCacheFactory.getCache(JCSCacheFactor
> .java:42)
>         at
> com.serus.common.caching.CacheManager.createCache(CacheManager.java:
> 63)
>         at
> com.serus.common.caching.CacheManager.getCache(CacheManager.java:71)
>         at
> com.serus.common.caching.CacheManager.getCache(CacheManager.java:65)
>         at
> com.serus.common.caching.ProductReadCacheTest.setUp(ProductReadCache
> est.java:59)
> 

-- 
View this message in context: http://www.nabble.com/Lateral-TCPCache-issue-tf2542979.html#a7086863
Sent from the JCS - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org