jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Smuts, Aaron" <Aaron.Sm...@travelocity.com>
Subject RE: Serializing question about JCS in a Lateral Cache config
Date Wed, 31 Aug 2005 21:23:56 GMT
No.  The lateral sends objects.  It doesn't just issue remove requests
by default.

I'm not sure the configuration option to issue removes instead of
requests is exposed.

I will expose it tomorrow if it isn't already.

I'm also working on a way to plugin a serializer, so if you wanted to
use xstream, which doesn't require that your objects implement
serializable, then you could.

Aaron

> -----Original Message-----
> From: Zabel, Ian [mailto:IZabel@cirqit.com]
> Sent: Wednesday, August 31, 2005 5:12 PM
> To: 'jcs-users@jakarta.apache.org'
> Subject: Serializing question about JCS in a Lateral Cache config
> 
> We have figured out through trial and error that all objects put into
the
> JCS cache must implement Serializable.
> 
> But, we are receiving a few odd Serialization exceptions that are
> confusing.
> They seem to be related to the lateral cache trying to send our
objects to
> the other servers in the cluster. Note: We do not have that feature
> enabled,
> as far as I can tell (see cache.ccf at the end of this message).
> 
> So, in my understanding of the lateral cache, the only broadcasts
should
> be
> the keys that have been removed or updated. This is our desired
behavior.
> The cache should not be serializing our objects and sending them
across
> the
> cluster.
> 
> The only objects we are putting into the cache are
CqtRFQEstimateCollector
> and CqtEstimateEvent (both are Serializable). The objects mentioned in
> these
> stacktraces (CqtRFQSpecQuote, CqtSupplierQuoteKey and ItcMoney) are
> objects
> that are held within the CqtRFQEstimateCollector object, and are not
> Serializable. These exceptions do not make sense to me, since JCS
> shouldn't
> even be trying to serialize these objects. Before I go ahead and start
> modifying more objects, I just wanted to make sure I'm doing things
right.
> 
> Thanks,
> Ian.
> 
> Here are the exceptions we are repeatedly receiving:
> 
> ERROR [Thread-83] (LateralTCPListener.java:477) - Unexpected
exception.
> java.io.WriteAbortedException: writing aborted;
> java.io.NotSerializableException:
com.cirqit.core.quotes.CqtRFQSpecQuote
> 	at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1303)
> 	at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
> 	at java.util.LinkedList.readObject(LinkedList.java:776)
> 	at sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source)
> 	at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Im
> pl
> .java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at
> java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:919)
> 	at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1813)
> 	at
>
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713
)
> 	at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
> 	at
>
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
> 	at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
> 	at
>
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713
)
> 	at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
> 	at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
> 	at java.util.LinkedList.readObject(LinkedList.java:776)
> 	at sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source)
> 	at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Im
> pl
> .java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at
> java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:919)
> 	at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1813)
> 	at
>
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713
)
> 	at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
> 	at
>
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
> 	at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
> 	at
>
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713
)
> 	at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
> 	at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
> 	at java.util.LinkedList.readObject(LinkedList.java:776)
> 	at sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source)
> 	at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Im
> pl
> .java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at
> java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:919)
> 	at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1813)
> 	at
>
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713
)
> 	at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
> 	at
>
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
> 	at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
> 	at
>
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713
)
> 	at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
> 	at
>
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
> 	at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
> 	at
>
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713
)
> 	at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
> 	at
>
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
> 	at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
> 	at
>
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713
)
> 	at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
> 	at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
> 	at
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPListener$Connectio
nH
> an
> dler.run(LateralTCPListener.java:444)
> 	at
>
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecuto
r.
> ja
> va:727)
> 	at java.lang.Thread.run(Thread.java:595)
> Caused by: java.io.NotSerializableException:
> com.cirqit.core.quotes.CqtRFQSpecQuote
> 	at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
> 	at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
> 	at java.util.LinkedList.writeObject(LinkedList.java:755)
> 	at sun.reflect.GeneratedMethodAccessor329.invoke(Unknown Source)
> 	at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Im
> pl
> .java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at
>
java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890)
> 	at
>
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333)
> 	at
>
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1
28
> 4)
> 	at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
> 	at
>
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:13
69
> )
> 	at
>
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
> 	at
>
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1
28
> 4)
> 	at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
> 	at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
> 	at java.util.LinkedList.writeObject(LinkedList.java:755)
> 	at sun.reflect.GeneratedMethodAccessor329.invoke(Unknown Source)
> 	at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Im
> pl
> .java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at
>
java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890)
> 	at
>
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333)
> 	at
>
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1
28
> 4)
> 	at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
> 	at
>
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:13
69
> )
> 	at
>
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
> 	at
>
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1
28
> 4)
> 	at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
> 	at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
> 	at java.util.LinkedList.writeObject(LinkedList.java:755)
> 	at sun.reflect.GeneratedMethodAccessor329.invoke(Unknown Source)
> 	at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Im
> pl
> .java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at
>
java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890)
> 	at
>
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333)
> 	at
>
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1
28
> 4)
> 	at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
> 	at
>
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:13
69
> )
> 	at
>
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
> 	at
>
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1
28
> 4)
> 	at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
> 	at
>
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:13
69
> )
> 	at
>
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
> 	at
>
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1
28
> 4)
> 	at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
> 	at
>
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:13
69
> )
> 	at
>
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
> 	at
>
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1
28
> 4)
> 	at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
> 	at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
> 	at
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPSender.send(Latera
lT
> CP
> Sender.java:196)
> 	at
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPService.update(Lat
er
> al
> TCPService.java:114)
> 	at
>
org.apache.jcs.auxiliary.lateral.LateralCache.update(LateralCache.java:9
3)
> 	at
> org.apache.jcs.engine.CacheAdaptor.handlePut(CacheAdaptor.java:86)
> 	at
>
org.apache.jcs.engine.CacheEventQueue$PutEvent.doRun(CacheEventQueue.jav
a:
> 65
> 2)
> 	at
>
org.apache.jcs.engine.CacheEventQueue$AbstractCacheEvent.run(CacheEventQ
ue
> ue
> .java:567)
> 	at
>
org.apache.jcs.engine.CacheEventQueue$QProcessor.run(CacheEventQueue.jav
a:
> 53
> 7)
> ERROR [Thread-80] (LateralTCPListener.java:477) - Unexpected
exception.
> java.io.WriteAbortedException: writing aborted;
> java.io.NotSerializableException:
com.cirqit.core.quotes.CqtRFQSpecQuote
> 	at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1303)
> 	at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
> 	at java.util.LinkedList.readObject(LinkedList.java:776)
> 	at sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source)
> 	at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Im
> pl
> .java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at
> java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:919)
> 	at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1813)
> 	at
>
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713
)
> 	at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
> 	at
>
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
> 	at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
> 	at
>
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713
)
> 	at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
> 	at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
> 	at java.util.LinkedList.readObject(LinkedList.java:776)
> 	at sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source)
> 	at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Im
> pl
> .java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at
> java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:919)
> 	at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1813)
> 	at
>
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713
)
> 	at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
> 	at
>
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
> 	at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
> 	at
>
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713
)
> 	at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
> 	at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
> 	at java.util.LinkedList.readObject(LinkedList.java:776)
> 	at sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source)
> 	at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Im
> pl
> .java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at
> java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:919)
> 	at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1813)
> 	at
>
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713
)
> 	at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
> 	at
>
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
> 	at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
> 	at
>
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713
)
> 	at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
> 	at
>
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
> 	at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
> 	at
>
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713
)
> 	at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
> 	at
>
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
> 	at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
> 	at
>
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713
)
> 	at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
> 	at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
> 	at
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPListener$Connectio
nH
> an
> dler.run(LateralTCPListener.java:444)
> 	at
>
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecuto
r.
> ja
> va:732)
> 	at java.lang.Thread.run(Thread.java:595)
> Caused by: java.io.NotSerializableException:
> com.cirqit.core.quotes.CqtRFQSpecQuote
> 	at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
> 	at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
> 	at java.util.LinkedList.writeObject(LinkedList.java:755)
> 	at sun.reflect.GeneratedMethodAccessor329.invoke(Unknown Source)
> 	at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Im
> pl
> .java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at
>
java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890)
> 	at
>
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333)
> 	at
>
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1
28
> 4)
> 	at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
> 	at
>
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:13
69
> )
> 	at
>
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
> 	at
>
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1
28
> 4)
> 	at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
> 	at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
> 	at java.util.LinkedList.writeObject(LinkedList.java:755)
> 	at sun.reflect.GeneratedMethodAccessor329.invoke(Unknown Source)
> 	at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Im
> pl
> .java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at
>
java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890)
> 	at
>
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333)
> 	at
>
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1
28
> 4)
> 	at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
> 	at
>
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:13
69
> )
> 	at
>
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
> 	at
>
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1
28
> 4)
> 	at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
> 	at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
> 	at java.util.LinkedList.writeObject(LinkedList.java:755)
> 	at sun.reflect.GeneratedMethodAccessor329.invoke(Unknown Source)
> 	at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Im
> pl
> .java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at
>
java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890)
> 	at
>
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333)
> 	at
>
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1
28
> 4)
> 	at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
> 	at
>
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:13
69
> )
> 	at
>
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
> 	at
>
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1
28
> 4)
> 	at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
> 	at
>
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:13
69
> )
> 	at
>
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
> 	at
>
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1
28
> 4)
> 	at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
> 	at
>
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:13
69
> )
> 	at
>
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
> 	at
>
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1
28
> 4)
> 	at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
> 	at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
> 	at
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPSender.send(Latera
lT
> CP
> Sender.java:196)
> 	at
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPService.update(Lat
er
> al
> TCPService.java:114)
> 	at
>
org.apache.jcs.auxiliary.lateral.LateralCache.update(LateralCache.java:9
3)
> 	at
> org.apache.jcs.engine.CacheAdaptor.handlePut(CacheAdaptor.java:86)
> 	at
>
org.apache.jcs.engine.CacheEventQueue$PutEvent.doRun(CacheEventQueue.jav
a:
> 65
> 2)
> 	at
>
org.apache.jcs.engine.CacheEventQueue$AbstractCacheEvent.run(CacheEventQ
ue
> ue
> .java:567)
> 	at
>
org.apache.jcs.engine.CacheEventQueue$QProcessor.run(CacheEventQueue.jav
a:
> 53
> 7)
> 
> DEBUG [Thread-77] (LateralTCPListener.java:236) - handleRemove>
> cacheName=CqtRFQEstimateCollector, key=61103-1
> ERROR [Thread-77] (LateralTCPListener.java:477) - Unexpected
exception.
> java.io.WriteAbortedException: writing aborted;
> java.io.NotSerializableException: com.itc.util.ItcMoney
> 	at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1303)
> 	at
>
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
> 	at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
> 	at
>
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713
)
> 	at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
> 	at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
> 	at java.util.LinkedList.readObject(LinkedList.java:776)
> 	at sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source)
> 	at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Im
> pl
> .java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at
> java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:919)
> 	at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1813)
> 	at
>
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713
)
> 	at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
> 	at
>
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
> 	at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
> 	at
>
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713
)
> 	at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
> 	at
>
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
> 	at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
> 	at
>
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713
)
> 	at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
> 	at
>
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
> 	at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
> 	at
>
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713
)
> 	at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
> 	at
>
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
> 	at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
> 	at
>
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713
)
> 	at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
> 	at
>
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
> 	at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
> 	at
>
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713
)
> 	at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
> 	at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
> 	at
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPListener$Connectio
nH
> an
> dler.run(LateralTCPListener.java:444)
> 	at
>
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecuto
r.
> ja
> va:727)
> 	at java.lang.Thread.run(Thread.java:595)
> Caused by: java.io.NotSerializableException: com.itc.util.ItcMoney
> 	at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
> 	at
>
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:13
69
> )
> 	at
>
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
> 	at
>
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1
28
> 4)
> 	at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
> 	at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
> 	at java.util.LinkedList.writeObject(LinkedList.java:755)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:
> 39
> )
> 	at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Im
> pl
> .java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at
>
java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890)
> 	at
>
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333)
> 	at
>
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1
28
> 4)
> 	at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
> 	at
>
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:13
69
> )
> 	at
>
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
> 	at
>
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1
28
> 4)
> 	at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
> 	at
>
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:13
69
> )
> 	at
>
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
> 	at
>
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1
28
> 4)
> 	at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
> 	at
>
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:13
69
> )
> 	at
>
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
> 	at
>
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1
28
> 4)
> 	at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
> 	at
>
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:13
69
> )
> 	at
>
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
> 	at
>
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1
28
> 4)
> 	at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
> 	at
>
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:13
69
> )
> 	at
>
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
> 	at
>
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1
28
> 4)
> 	at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
> 	at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
> 	at
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPSender.send(Latera
lT
> CP
> Sender.java:200)
> 	at
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPService.update(Lat
er
> al
> TCPService.java:105)
> 	at
>
org.apache.jcs.auxiliary.lateral.LateralCache.update(LateralCache.java:9
3)
> 	at
> org.apache.jcs.engine.CacheAdaptor.handlePut(CacheAdaptor.java:86)
> 	at
>
org.apache.jcs.engine.CacheEventQueue$PutEvent.doRun(CacheEventQueue.jav
a:
> 65
> 2)
> 	at
>
org.apache.jcs.engine.CacheEventQueue$AbstractCacheEvent.run(CacheEventQ
ue
> ue
> .java:567)
> 	at
>
org.apache.jcs.engine.CacheEventQueue$QProcessor.run(CacheEventQueue.jav
a:
> 53
> 7)
> 
> 
> 
> DEBUG [Thread-77] (LateralTCPListener.java:210) - handlePut>
> cacheName=CqtEstimateEvent, key=61103-1
> ERROR [Thread-72] (LateralTCPListener.java:477) - Unexpected
exception.
> java.lang.ClassCastException: cannot assign instance of
> com.cirqit.core.quotes.CqtSupplierQuoteKey to field
> com.cirqit.core.estimates.CqtEstimateEvent.status of type
> com.cirqit.core.headers.CqtStatus in instance of
> com.cirqit.core.estimates.CqtEstimateEvent
> 	at
>
java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamC
la
> ss
> .java:1977)
> 	at
>
java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1157)
> 	at
>
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1918)
> 	at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
> 	at
>
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713
)
> 	at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
> 	at
>
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
> 	at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
> 	at
>
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713
)
> 	at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
> 	at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
> 	at java.util.LinkedList.readObject(LinkedList.java:776)
> 	at sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source)
> 	at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Im
> pl
> .java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at
> java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:919)
> 	at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1813)
> 	at
>
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713
)
> 	at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
> 	at
>
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
> 	at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
> 	at
>
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713
)
> 	at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
> 	at
>
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
> 	at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
> 	at
>
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713
)
> 	at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
> 	at
>
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
> 	at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
> 	at
>
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713
)
> 	at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
> 	at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
> 	at
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPListener$Connectio
nH
> an
> dler.run(LateralTCPListener.java:444)
> 	at
>
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecuto
r.
> ja
> va:732)
> 	at java.lang.Thread.run(Thread.java:595)
> 
> 
> 
> 
> 
> Cache.ccf:
> 
> # DEFAULT CACHE REGION
> 
> jcs.default=LTCP
>
jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttribut
es
> jcs.default.cacheattributes.MaxObjects=1000
>
jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory
.l
> ru
> .LRUMemoryCache
> 
> # PRE-DEFINED CACHE REGIONS
> 
> jcs.region.CqtRFQEstimateCollector=LTCP
>
jcs.region.CqtRFQEstimateCollector.cacheattributes=org.apache.jcs.engine
.C
> om
> positeCacheAttributes
> jcs.region.CqtRFQEstimateCollector.cacheattributes.MaxObjects=500
>
jcs.region.CqtRFQEstimateCollector.cacheattributes.MemoryCacheName=org.a
pa
> ch
> e.jcs.engine.memory.lru.LRUMemoryCache
>
jcs.region.CqtRFQEstimateCollector.cacheattributes.UseMemoryShrinker=tru
e
>
jcs.region.CqtRFQEstimateCollector.cacheattributes.MaxMemoryIdleTimeSeco
nd
> s=
> 3600
>
jcs.region.CqtRFQEstimateCollector.cacheattributes.ShrinkerIntervalSecon
ds
> =6
> 0
> jcs.region.CqtRFQEstimateCollector.cacheattributes.MaxSpoolPerRun=250
>
jcs.region.CqtRFQEstimateCollector.elementattributes=org.apache.jcs.engi
ne
> .E
> lementAttributes
> jcs.region.CqtRFQEstimateCollector.elementattributes.IsEternal=false
> 
> jcs.region.CqtEstimateEvent=LTCP
>
jcs.region.CqtEstimateEvent.cacheattributes=org.apache.jcs.engine.Compos
it
> eC
> acheAttributes
> jcs.region.CqtEstimateEvent.cacheattributes.MaxObjects=500
>
jcs.region.CqtEstimateEvent.cacheattributes.MemoryCacheName=org.apache.j
cs
> .e
> ngine.memory.lru.LRUMemoryCache
> jcs.region.CqtEstimateEvent.cacheattributes.UseMemoryShrinker=true
>
jcs.region.CqtEstimateEvent.cacheattributes.MaxMemoryIdleTimeSeconds=360
0
> jcs.region.CqtEstimateEvent.cacheattributes.ShrinkerIntervalSeconds=60
> jcs.region.CqtEstimateEvent.cacheattributes.MaxSpoolPerRun=250
>
jcs.region.CqtEstimateEvent.elementattributes=org.apache.jcs.engine.Elem
en
> tA
> ttributes
> jcs.region.CqtEstimateEvent.elementattributes.IsEternal=false
> 
> # AVAILABLE AUXILIARY CACHES
> 
>
#jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache
Fa
> ct
> ory
>
#jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.Index
ed
> Di
> skCacheAttributes
> #jcs.auxiliary.DC.attributes.DiskPath=g:/dev/jcs/raf
> #jcs.auxiliary.DC.attributes.maxKeySize=100000
> 
>
jcs.auxiliary.LTCP=org.apache.jcs.auxiliary.lateral.LateralCacheFactory
>
jcs.auxiliary.LTCP.attributes=org.apache.jcs.auxiliary.lateral.LateralCa
ch
> eA
> ttributes
> jcs.auxiliary.LTCP.attributes.TransmissionTypeName=TCP
> jcs.auxiliary.LTCP.attributes.TcpListenerPort=1118
> jcs.auxiliary.LTCP.attributes.PutOnlyMode=true
> jcs.auxiliary.LTCP.attributes.UdpDiscoveryAddr=228.5.6.8
> jcs.auxiliary.LTCP.attributes.UdpDiscoveryPort=6780
> jcs.auxiliary.LTCP.attributes.UdpDiscoveryEnabled=true

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


Mime
View raw message