jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerome.pic...@mpsa.com
Subject problem : Lateral Cache TCP
Date Thu, 24 Jun 2004 13:55:22 GMT




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.CompositeCacheAttributes
jcs.region.TEST.cacheattributes.MaxObjects=1000
jcs.region.TEST.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache

# simple Lateral TCP auxiliary
jcs.auxiliary.LTCP=org.apache.jcs.auxiliary.lateral.LateralCacheFactory
jcs.auxiliary.LTCP.attributes=org.apache.jcs.auxiliary.lateral.LateralCacheAttributes
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(LateralTCPSender.java:127)
[java]     at
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPSender.<init>(LateralTCPSender.java:104)
[java]     at
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPService.<init>(LateralTCPService.java:72)
[java]     at
org.apache.jcs.auxiliary.lateral.LateralCacheManager.<init>(LateralCacheManager.java:141)
[java]     at
org.apache.jcs.auxiliary.lateral.LateralCacheManager.getInstance(LateralCacheManager.java:97)
[java]     at
org.apache.jcs.auxiliary.lateral.LateralCacheFactory.createCache(LateralCacheFactory.java:96)
[java]     at
org.apache.jcs.engine.control.CompositeCacheConfigurator.parseAuxiliary(CompositeCacheConfigurator.java
[java]     at
org.apache.jcs.engine.control.CompositeCacheConfigurator.parseRegion(CompositeCacheConfigurator.java:25
[java]     at
org.apache.jcs.engine.control.CompositeCacheConfigurator.parseRegion(CompositeCacheConfigurator.java:19
[java]     at
org.apache.jcs.engine.control.CompositeCacheConfigurator.parseRegions(CompositeCacheConfigurator.java:1
[java]     at
org.apache.jcs.engine.control.CompositeCacheConfigurator.doConfigure(CompositeCacheConfigurator.java:11
[java]     at
org.apache.jcs.engine.control.CompositeCacheManager.configure(CompositeCacheManager.java:207)
[java]     at
org.apache.jcs.engine.control.CompositeCacheManager.configure(CompositeCacheManager.java:190)
[java]     at
org.apache.jcs.engine.control.CompositeCacheManager.configure(CompositeCacheManager.java:148)
[java]     at
org.apache.jcs.engine.control.CompositeCacheManager.getInstance(CompositeCacheManager.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.java:39)
[java]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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


Mime
View raw message