Hi,
I'm getting often ClassCastExceptions when using the LateralCache.
I don't know why, but JCS seems to change simple String fields
to a thing called LateralElementDescriptor.
What can I do?
Thanks,
Florian.
**** Error Mo Okt 30 13:15:47 CET 2006 1162210547045 ---
[org.apa
che.jcs.auxiliary.lateral.socket.tcp.LateralTCPListener] Unexpected
exception. Closing conneciton java.lang.ClassCastException: cannot
assign instance of
org.apache.jcs.auxiliary.lateral.LateralElementDescriptor to field
de.br.aroona.wetterdaten.vo.StationDataContainerVO.stationNameUser of
type java.lang.String in instance of
de.br.aroona.wetterdaten.vo.StationDataContainerVO
**** Error Mo Okt 30 13:15:47 CET 2006 1162210547045 ---
at
java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.
java:1885)
**** Error Mo Okt 30 13:15:47 CET 2006 1162210547045 ---
at java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1076)
**** Error Mo Okt 30 13:15:47 CET 2006 1162210547045 ---
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1851)
**** Error Mo Okt 30 13:15:47 CET 2006 1162210547045 ---
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
**** Error Mo Okt 30 13:15:47 CET 2006 1162210547045 ---
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
**** Error Mo Okt 30 13:15:47 CET 2006 1162210547045 ---
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
**** Error Mo Okt 30 13:15:47 CET 2006 1162210547045 ---
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
**** Error Mo Okt 30 13:15:47 CET 2006 1162210547045 ---
at java.util.HashMap.readObject(HashMap.java:1006)
**** Error Mo Okt 30 13:15:47 CET 2006 1162210547045 ---
at sun.reflect.GeneratedMethodAccessor163.invoke(Unknown Source)
**** Error Mo Okt 30 13:15:47 CET 2006 1162210547045 ---
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.
java:25)
**** Error Mo Okt 30 13:15:47 CET 2006 1162210547045 ---
at java.lang.reflect.Method.invoke(Method.java:324)
**** Error Mo Okt 30 13:15:47 CET 2006 1162210547045 ---
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:838)
**** Error Mo Okt 30 13:15:47 CET 2006 1162210547045 ---
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1746)
**** Error Mo Okt 30 13:15:47 CET 2006 1162210547045 ---
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
**** Error Mo Okt 30 13:15:47 CET 2006 1162210547045 ---
....stack trace CROPPED after 15 lines.
# DEFAULT CACHE REGION
jcs.default=DC,LTCP
#jcs.default=DC
jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.default.cacheattributes.MaxObjects=1000
jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.default.elementattributes.IsEternal=false
jcs.default.elementattributes.IsLateral=false
# Aroona Cache Region
#jcs.region.aroonaCache=DC
jcs.region.aroonaCache=DC,LTCP
jcs.region.aroonaCache.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.region.aroonaCache.cacheattributes.UseMemoryShrinker=true
jcs.region.aroonaCache.cacheattributes.MaxMemoryIdleTimeSeconds=3600
jcs.region.aroonaCache.cacheattributes.ShrinkerIntervalSeconds=60
jcs.region.aroonaCache.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.region.aroonaCache.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.region.aroonaCache.elementattributes.IsEternal=false
jcs.region.aroonaCache.elementattributes.MaxLifeSeconds=900
#jcs.region.aroonaCache.elementattributes.MaxLifeSeconds=10
jcs.region.aroonaCache.elementattributes.IdleTime=1800
jcs.region.aroonaCache.elementattributes.IsSpool=true
jcs.region.aroonaCache.elementattributes.IsRemote=false
jcs.region.aroonaCache.elementattributes.IsLateral=true
# Top-News Cache Region
#jcs.region.topNewsCache=DC
jcs.region.topNewsCache=DC,LTCP
jcs.region.topNewsCache.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.region.topNewsCachecacheattributes.UseMemoryShrinker=true
jcs.region.topNewsCache.cacheattributes.MaxMemoryIdleTimeSeconds=3600
jcs.region.topNewsCache.cacheattributes.ShrinkerIntervalSeconds=60
jcs.region.topNewsCache.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.region.topNewsCache.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.region.topNewsCache.elementattributes.IsEternal=false
jcs.region.topNewsCache.elementattributes.MaxLifeSeconds=300
jcs.region.topNewsCache.elementattributes.IdleTime=1800
jcs.region.topNewsCache.elementattributes.IsSpool=true
jcs.region.topNewsCache.elementattributes.IsRemote=false
jcs.region.topNewsCache.elementattributes.IsLateral=true
# Diskcache
jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory
jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes
jcs.auxiliary.DC.attributes.DiskPath=/tmp/JCS/cache-live1
# Verteilter Cache
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
#Achtung: hier den Namen des aktuellen Server austragen!!!
jcs.auxiliary.LTCP.attributes.TcpServers=atg-live-1:9810,atg-live-2:8810,atg-live-2:9810,atg-live-3:8810,atg-live-3:9810,atg-live-4:8810,atg-live-4:9810,atg-live-5:8810,atg-live-5:9810,atg-live-6:8810,atg-live-6:9810
jcs.auxiliary.LTCP.attributes.TcpListenerPort=8810
jcs.auxiliary.LTCP.attributes.PutOnlyMode=false
################## THREAD POOL CONFIGURATION ###################
# Default thread pool config
thread_pool.default.boundarySize=2000
thread_pool.default.maximumPoolSize=150
thread_pool.default.minimumPoolSize=4
thread_pool.default.keepAliveTime=350000
#RUN ABORT WAIT BLOCK DISCARDOLDEST
thread_pool.default.whenBlockedPolicy=RUN
thread_pool.default.startUpSize=4
# Default Cache Event Queue thread pool config, used by auxiliaries
thread_pool.cache_event_queue.useBoundary=false
#thread_pool.cache_event_queue.boundarySize=2000
#thread_pool.cache_event_queue.maximumPoolSize=10
thread_pool.cache_event_queue.minimumPoolSize=5
thread_pool.cache_event_queue.keepAliveTime=3500
#thread_pool.cache_event_queue.whenBlockedPolicy=RUN
thread_pool.cache_event_queue.startUpSize=5
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]