Robbie,
 I have a fix for this exception, but I still have some work to do before
the code is stable.  I can create an updated patch to handle removing this
exception.  I won't do that until you ask,  as  I'm hoping I can fix the
other issues first.
Regards, Kelvin.

On 06/09/06, Robbie Minshall (JIRA) <[email protected]> wrote:

    [
http://issues.apache.org/jira/browse/TUSCANY-153?page=comments#action_12432955]

Robbie Minshall commented on TUSCANY-153:
-----------------------------------------

LOADING SIMPLE CHANGE SUMMARY

When I attempt to load the simple change summary contained within the fix
I get an exception when loading the XML.  I will look into the causes
tomorrow when I have more time but if you have any insights that would be
great.

        public static final String CHANGESUMMARY_SIMPLE_XSD =
"/simpleWithChangeSummary.xsd";
        public static final String CHANGESUMMARY_SIMPLE_XML =
"/simplechangesummary.xml";
. . . .
                        // define simple Type
                        XSDHelper.INSTANCE.define
(getClass().getResourceAsStream(
                                        CHANGESUMMARY_SIMPLE_XSD), null);

                        // get a DataObject
                        DataObject simple = XMLHelper.INSTANCE.load(

                                        
getClass().getResourceAsStream(CHANGESUMMARY_SIMPLE_XML))
                                        .getRootObject();

--->
java.lang.ExceptionInInitializerError
        at
org.apache.tuscany.sdo.model.impl.ModelFactoryImpl.createDocumentRoot(
ModelFactoryImpl.java:313)
        at org.apache.tuscany.sdo.model.impl.ModelFactoryImpl.createGen(
ModelFactoryImpl.java:106)
        at org.apache.tuscany.sdo.model.impl.ModelFactoryImpl.create(
ModelFactoryImpl.java:120)
        at org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.createObject(
XMLHelperImpl.java:784)
        at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObject(
XMLHandler.java:1938)
        at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createDocumentRoot(
XMLHandler.java:1214)
        at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType(
XMLHandler.java:1152)
        at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(
XMLHandler.java:1234)
        at org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(
XMLHandler.java:872)
        at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(
XMLHandler.java:854)
        at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(
XMLHandler.java:626)
        at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown
Source)
        at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
        at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown
Source)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
        at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
        at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown
Source)
        at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
Source)
        at javax.xml.parsers.SAXParser.parse(Unknown Source)
        at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(
XMLLoadImpl.java:264)
        at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(
XMLResourceImpl.java:666)
        at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.load(
XMLResourceImpl.java:634)
        at org.apache.tuscany.sdo.helper.XMLDocumentImpl.load(
XMLDocumentImpl.java:235)
        at org.apache.tuscany.sdo.helper.XMLDocumentImpl.load(
XMLDocumentImpl.java:213)
        at org.apache.tuscany.sdo.helper.XMLHelperImpl.load(
XMLHelperImpl.java:72)
        at org.apache.tuscany.sdo.helper.XMLHelperImpl.load(
XMLHelperImpl.java:66)
        at
org.apache.tuscany.sdo.test.DataObjectChangeSummaryTestCase.testObtainChangeSummaryFromSimple
(DataObjectChangeSummaryTestCase.java:174)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at junit.framework.TestCase.runTest(TestCase.java:154)
        at junit.framework.TestCase.runBare(TestCase.java:127)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(
JUnit3TestReference.java:128)
        at org.eclipse.jdt.internal.junit.runner.TestExecution.run(
TestExecution.java:38)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:460)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:673)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(
RemoteTestRunner.java:386)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(
RemoteTestRunner.java:196)
Caused by: java.lang.ClassCastException:
org.apache.tuscany.sdo.impl.AttributeImpl
        at
org.apache.tuscany.sdo.model.impl.ModelPackageImpl.getBaseDataGraphType_ChangeSummary
(ModelPackageImpl.java:1488)
        at org.apache.tuscany.sdo.model.impl.ModelPackageImpl$Literals
.<clinit>(ModelPackageImpl.java:3666)
        ... 45 more



> ChangeSummary on root data object not supported
> -----------------------------------------------
>
>                 Key: TUSCANY-153
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-153
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Implementation
>    Affects Versions: Java-Mx
>            Reporter: Kevin Williams
>             Fix For: Java-Mx
>
>         Attachments: do_cs_2.patch, tuscany153.jar
>
>
> The RDB DAS intends to produce data graphs without using a DataGraph
instance and this requires us to attach a change history to the root
DataObject.  It seems that this capability is not yet implemented.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Best Regards
Kelvin Goodson

Reply via email to