Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-22

Errors serializing an SDO2 graph

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • Java-SDO-M2
    • None
    • 2/2 EMF integration build

    Description

      I am having a problem with serialization of an SDO2 datagraph

      Using java serialization (ObjectOutputStream.writeObject()), I receive the following exception:

      java.lang.UnsupportedOperationException
      at org.eclipse.emf.common.util.ECollections$EmptyUnmodifiableEList.add(ECollections.java:638)
      at org.eclipse.emf.ecore.resource.impl.ResourceImpl.setTrackingModification(ResourceImpl.java:1212)
      at org.apache.tuscany.sdo.impl.DataGraphImpl.getWriteReplacement(DataGraphImpl.java:740)
      at org.apache.tuscany.sdo.impl.DataGraphImpl.getWriteReplacement(DataGraphImpl.java:766)
      at org.apache.tuscany.sdo.impl.DataObjectImpl.writeReplace(DataObjectImpl.java:113)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:615)
      at java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:1059)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1063)
      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:324)
      at org.apache.tuscany.das.rdb.test.SerializationTests.testReadandSerialize(SerializationTests.java:69)

      Note, the same test case works with SDO 1 and is currently available in SVN (org.apache.tuscany.das.rdb.test.SerializationTests)

      Attachments

        Activity

          People

            Unassigned Unassigned
            bdaniel Brent Daniel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: