我是JCS的新手,目前正在尝试配置JCS ver 1.3 Remote辅助。
我的客户端和服务器cache.ccf几乎等同于samples provided here。
请注意,我的服务器配置为在localhost:1104上运行。
我的客户端启动的那一刻,服务器日志开始抛出以下错误。 不确定配置有什么问题。任何帮助将不胜感激。
INFO: Constructed cache with name [cacherepl] and cache attributes [ useLateral = true, useRemote = true, useDisk = true, maxObjs = 100, maxSpoolPerRun = -1, diskUsagePattern = 0 ]
Jun 10, 2014 3:13:31 PM org.apache.jcs.auxiliary.remote.server.RemoteCacheServer get
SEVERE: Problem getting listeners.
java.lang.NullPointerException
at java.util.StringTokenizer.<init>(StringTokenizer.java:199)
at java.util.StringTokenizer.<init>(StringTokenizer.java:221)
at org.apache.jcs.engine.control.CompositeCacheConfigurator.parseRegion(CompositeCacheConfigurator.java:321)
at org.apache.jcs.engine.control.CompositeCacheConfigurator.parseRegion(CompositeCacheConfigurator.java:283)
at org.apache.jcs.engine.control.CompositeCacheManager.getCache(CompositeCacheManager.java:448)
at org.apache.jcs.engine.control.CompositeCacheManager.getCache(CompositeCacheManager.java:387)
at org.apache.jcs.engine.control.CompositeCacheManager.getCache(CompositeCacheManager.java:374)
at org.apache.jcs.auxiliary.remote.server.RemoteCacheServer.getCacheListeners(RemoteCacheServer.java:174)
at org.apache.jcs.auxiliary.remote.server.RemoteCacheServer.get(RemoteCacheServer.java:508)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
at sun.rmi.transport.Transport$1.run(Transport.java:177)
at sun.rmi.transport.Transport$1.run(Transport.java:174)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:173)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553)