Raymond Feng:
Thanks a lot;
It works very well. Also it answer another question I have asked
about how to load xml to static sdo.
---------------
Raymond Feng At 2010-1-6 13:57 said
Hi,
It seems that the HelperContext is not set up for the thread context
classloader. Can you try to add the following code?
HelperContext defaultHelperContext =
HelperProvider.getDefaultContext();
test.choice.ChoiceFactory.INSTANCE.register(defaultHelperContext);
It works on my test.
Thanks,
Raymond
--------------------------------------------------
From: "ext2" <[email protected]>
Sent: Tuesday, January 05, 2010 8:15 PM
To: <[email protected]>; <[email protected]>
Subject: Why cannot un-serialize a static sdo object from a
ObjectInputStream?
> Hi:
> When I un-serialize a static sdo object from ObjectInputStream, I
> got a dynamic sdo object;
> It's a surprise , and will cause some potential problem, etc, when I
> use static sdo with RMI.
> Does any one knows the reason , Or Where I use the static sdo
> un-correctly?
> My test program is very simple, it just serialize a static sdo to a
> byte[] and un-serialize from the byte[]; For convenience, the test
> program,
> schema, ant build to generate static sdo is attached in the mail.
>
> Thanks for any suggestion
>
>
>