Thanks to the help on the forum I've been able to continue to narrow down my
issue. It's not a network issue. The debug output below shows that jgroups is
connecting and creating a cluster (viewAccepted()). But then it complains
about my class Log. This is not a log4j class or a logger of any kind... just
a POJO:
32344 [Thread-17] INFO org.jboss.cache.TreeCache - viewAccepted():
[192.168.1.101:3621|1] [192.168.1.101:3621, 192.168.1.103:1580]
| 32391 [Thread-17] INFO org.jboss.cache.TreeCache - locking the tree to
return the in-memory (transient) state
| 32500 [Thread-17] ERROR org.jboss.cache.TreeCache - failed getting the
in-memory (transient) state
| java.io.NotSerializableException: reger.Log
| at java.io.ObjectOutputStream.writeObject0(Unknown Source)
| at java.io.ObjectOutputStream.writeArray(Unknown Source)
| at java.io.ObjectOutputStream.writeObject0(Unknown Source)
| at java.io.ObjectOutputStream.writeObject(Unknown Source)
| at java.util.HashMap.writeObject(Unknown Source)
I've annotated it in much the same way as I have a number of other POJOs that
seem to be accepted by TreeCacheAOP. But this Log class always kicks out the
NotSerializableException. It implements an interface, which prompted my
question about how to annotate interfaces... and whether I even need to if I
annotate all of the implementing classes manually.
The only thing I can find potentially complex about Log is that one of its
properties is an array (fields). But it's an array defined by an interface...
in other words FieldType is an interface.
@Cacheable
| public class Log implements NestedNavItem {
|
| private int logid;
| private FieldType[] fields = new FieldType[0];
|
| ...
|
| }
So I annotated all classes that implement FieldType as @Cacheable. And I've
done the same for NestedNavItem. No luck yet.
If a class isn't annotated TreeCacheAOP will try to serialize it, correct? So
maybe the issue is that aopc isn't able to properly annotate Log which
eventually causes my cache to fail.
Grasping at straws a bit here... but I'm sure I'll figure it out! Thanks for
any help you can offer.
Best,
Joe
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3916261#3916261
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916261
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user