jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Smuts <aasm...@wisc.edu>
Subject RE: problem : Lateral Cache TCP
Date Thu, 24 Jun 2004 23:40:04 GMT
The server is started in another cache automatically if the region is
configured to use the lateral cache.

Aaron

> -----Original Message-----
> From: jerome.picard@mpsa.com [mailto:jerome.picard@mpsa.com]
> Sent: Thursday, June 24, 2004 8:55 AM
> To: Turbine JCS Users List
> Subject: problem : Lateral Cache TCP
> 
> 
> 
> 
> 
> Hello,
> 
> When I use the Lateral Cache with TCP, I obtain an exception.
> 
> The LTCP Server may be not running ?
> 
> How to run the LTCP Server ?
> 
> Have you an idea ?
> 
> Thanks.
> 
> This is my "Cache.ccf" file.
> 
> jcs.region.TEST=LTCP
>
jcs.region.TEST.cacheattributes=org.apache.jcs.engine.CompositeCacheAttr
ib
> utes
> jcs.region.TEST.cacheattributes.MaxObjects=1000
>
jcs.region.TEST.cacheattributes.MemoryCacheName=org.apache.jcs.engine.me
mo
> ry.lru.LRUMemoryCache
> 
> # simple Lateral TCP auxiliary
>
jcs.auxiliary.LTCP=org.apache.jcs.auxiliary.lateral.LateralCacheFactory
>
jcs.auxiliary.LTCP.attributes=org.apache.jcs.auxiliary.lateral.LateralCa
ch
> eAttributes
> jcs.auxiliary.LTCP.attributes.TransmissionTypeName=TCP
> jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1111
> jcs.auxiliary.LTCP.attributes.TcpListenerPort=1110
> jcs.auxiliary.LTCP.attributes.PutOnlyMode=true
> 
> This is the exception.
> 
> [java] Could not create sender to [localhost:1111] -- Socket is null
> [java] Failure, lateral instance will use zombie service
> [java] java.io.IOException: Socket is null
> [java]     at
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPSender.init(Latera
lT
> CPSender.java:127)
> [java]     at
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPSender.<init>(Late
ra
> lTCPSender.java:104)
> [java]     at
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPService.<init>(Lat
er
> alTCPService.java:72)
> [java]     at
>
org.apache.jcs.auxiliary.lateral.LateralCacheManager.<init>(LateralCache
Ma
> nager.java:141)
> [java]     at
>
org.apache.jcs.auxiliary.lateral.LateralCacheManager.getInstance(Lateral
Ca
> cheManager.java:97)
> [java]     at
>
org.apache.jcs.auxiliary.lateral.LateralCacheFactory.createCache(Lateral
Ca
> cheFactory.java:96)
> [java]     at
>
org.apache.jcs.engine.control.CompositeCacheConfigurator.parseAuxiliary(
Co
> mpositeCacheConfigurator.java
> [java]     at
>
org.apache.jcs.engine.control.CompositeCacheConfigurator.parseRegion(Com
po
> siteCacheConfigurator.java:25
> [java]     at
>
org.apache.jcs.engine.control.CompositeCacheConfigurator.parseRegion(Com
po
> siteCacheConfigurator.java:19
> [java]     at
>
org.apache.jcs.engine.control.CompositeCacheConfigurator.parseRegions(Co
mp
> ositeCacheConfigurator.java:1
> [java]     at
>
org.apache.jcs.engine.control.CompositeCacheConfigurator.doConfigure(Com
po
> siteCacheConfigurator.java:11
> [java]     at
>
org.apache.jcs.engine.control.CompositeCacheManager.configure(CompositeC
ac
> heManager.java:207)
> [java]     at
>
org.apache.jcs.engine.control.CompositeCacheManager.configure(CompositeC
ac
> heManager.java:190)
> [java]     at
>
org.apache.jcs.engine.control.CompositeCacheManager.configure(CompositeC
ac
> heManager.java:148)
> [java]     at
>
org.apache.jcs.engine.control.CompositeCacheManager.getInstance(Composit
eC
> acheManager.java:93)
> [java]     at org.apache.jcs.JCS.ensureCacheManager(JCS.java:97)
> [java]     at org.apache.jcs.JCS.getInstance(JCS.java:63)
> [java]     at inet.psa.test.ClientCache.example(ClientCache.java:21)
> [java]     at inet.psa.test.ClientCache.main(ClientCache.java:39)
> [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
> [java]     at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:
> 39)
> [java]     at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Im
> pl.java:25)
> [java]     at java.lang.reflect.Method.invoke(Method.java:324)
> [java]     at
> org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:196)
> [java]     at
>
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:133)
> [java]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:661)
> [java]     at
> org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:168)
> [java]     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:77)
> [java]     at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
> [java]     at org.apache.tools.ant.Task.perform(Task.java:364)
> [java]     at org.apache.tools.ant.Target.execute(Target.java:301)
> [java]     at
org.apache.tools.ant.Target.performTasks(Target.java:328)
> [java]     at
> org.apache.tools.ant.Project.executeTarget(Project.java:1215)
> [java]     at
> org.apache.tools.ant.Project.executeTargets(Project.java:1063)
> [java]     at org.apache.tools.ant.Main.runBuild(Main.java:632)
> [java]     at org.apache.tools.ant.Main.startAnt(Main.java:183)
> [java]     at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
> [java]     at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
> 
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
turbine-jcs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
turbine-jcs-user-help@jakarta.apache.org


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


Mime
View raw message