[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ecf-dev] SharedObject API Problem: Serialization Problem when adding TransactionSharedObject
- From: Jan Novacek <jannvck@xxxxxxxxxxxxxx>
- Date: Sun, 5 Sep 2010 02:46:31 +0200
- Delivered-to: firstname.lastname@example.org
- Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=m/+UmIuZxZFBYYuNXPwcipROV3/XJgyZloCTDAS/7qjf6MP2MWPKhnfiXVmQmm9B3P EB55sE7k+5XGDRKy0r+B3FCM8ytXFPpFa1/EEHtJmMg0VhZ3Eej62ciN0cswO9ldwUlI 7DlI/f0iPZyA7TNEo4EPFu/msVgjr+tgI0ngE=
I'm working with the SharedObject API and ran into a Problem.
I understand how to use the API when implementing a class which extends from BaseSharedObject
and implemented an shared object as described in the wiki.
It is all fine and works right as it should! by the way: Nice work guys :)
Then, I derived my class from TransactionSharedObject and set it up according to
I can not see any differences except that a timeout is set in the Primary and that the
EventProcessor is added in initialize() in TransactionSharedObject.
Anyway, when I am trying to add the shared object, I get an exception:
"org.eclipse.ecf.core.sharedobject.SharedObjectAddAbortException: SharedObjectCommitEvent could not be sent"
Setting a breakpoint in TwoPhaseCommitEventProcessor.sendCommit() revealed that Serialization failed:
"java.io.NotSerializableException: shared object messageSharedObjectCommitEvent[StringID[SharedObjID];null] not serializable"
I do not understand this, because the shared object class implements Serializable and serialization obviously worked before.
I have also removed all attributes from this class to test the basic mechanism, but still no luck.
Have I done something wrong in using TransactionSharedObject?