Java serialization and deserialization of data graphs and data objects  are not 
supported yet. I don't recommend you utilize this feature now.
  
  Fuhwei

Paul Tomsic <[EMAIL PROTECTED]> wrote:  i can't seem to serialize a dataobject 
w/o first
having a datagraph on the dataobject.

i did find the following:

http://issues.apache.org/jira/browse/TUSCANY-22

I'm getting the same stack trace that's listed in that
jira posting.  
Is there a way around this?

Here's my code:

---------------
        DataGraph dataGraph =
SDOUtil.createDataGraph();
        DataObject errorList =
dataGraph.createRootObject(TEST_NAMESPACE, "foo");
        errorList.setString("bar", "alpha");
        errorList.setString("baz", "bravo");
        File tmpFile = new
File(System.getProperty("java.io.tmpdir") +
"/foo.xml");
        FileOutputStream fos = new
FileOutputStream(tmpFile);
        ObjectOutputStream out = new
ObjectOutputStream(fos);
        out.writeObject(errorList);
        out.close();

---------------

thx


Reply via email to