You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Florian Pinel (JIRA)" <de...@tuscany.apache.org> on 2010/09/15 22:19:35 UTC

[jira] Created: (TUSCANY-3679) EMF 2.5 Upgrade for Tuscany SDO

EMF 2.5 Upgrade for Tuscany SDO
-------------------------------

                 Key: TUSCANY-3679
                 URL: https://issues.apache.org/jira/browse/TUSCANY-3679
             Project: Tuscany
          Issue Type: New Feature
          Components: Java SDO Implementation
    Affects Versions: Java-SDO-1.1
            Reporter: Florian Pinel


Elio Damaggio and myself have upgraded EMF to version 2.5 in the Java SDO implementation. I will attach the updated code.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TUSCANY-3679) EMF 2.5 Upgrade for Tuscany SDO

Posted by "ant elder (JIRA)" <de...@tuscany.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-3679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12916060#action_12916060 ] 

ant elder commented on TUSCANY-3679:
------------------------------------

I've committed this to a new branch at https://svn.apache.org/repos/asf/tuscany/sdo-java/branches/emf-2.5/

I get several test failures when trying to build this, not sure why, are there any other things I need to update?

I can't find EMF 2.5 in a maven repo so I've downloaded it and installed the jars in my local repo using the download at: http://www.eclipse.org/downloads/download.php?file=/modeling/emf/emf/downloads/drops/2.5.0/R200906151043/emf-xsd-SDK-2.5.0.zip 

I have updated the SDO top level pom.xml to update the emfVersion property and to use Java 1.5:

C:\Tuscany\SVN\sdo-trunk>svn diff pom.xml
Index: pom.xml
===================================================================
--- pom.xml     (revision 1002493)
+++ pom.xml     (working copy)
@@ -65,7 +65,7 @@

     <properties>
         <specVersion>2.1</specVersion>
-        <emfVersion>2.2.3</emfVersion>
+        <emfVersion>2.5</emfVersion>
         <sdo.version>${version}</sdo.version>
     </properties>

@@ -148,8 +148,8 @@
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <configuration>
-                    <source>1.4</source>
-                    <target>1.4</target>
+                    <source>1.5</source>
+                    <target>1.5</target>
                 </configuration>
             </plugin>
             <plugin>

The test fails I see are:

Failed tests:
  testLoad(org.apache.tuscany.sdo.test.XSDQNameTestCase)

Tests in error:
  testXMLStreamHelper(org.apache.tuscany.sdo.test.XMLLoadOptionsTestCase)
  test(org.apache.tuscany.sdo.test.osgi.OSGiTestCase)
  testLoad(org.apache.tuscany.sdo.test.XMLStreamHelperTestCase)

Tests run: 205, Failures: 1, Errors: 3, Skipped: 0

Looking at one of those, XMLLoadOptionstestCase the error is:

Test set: org.apache.tuscany.sdo.test.XMLLoadOptionsTestCase
-------------------------------------------------------------------------------
Tests run: 5, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.031 sec <<< FAILURE!
testXMLStreamHelper(org.apache.tuscany.sdo.test.XMLLoadOptionsTestCase)  Time elapsed: 0 sec  <<< ERROR!
java.lang.RuntimeException: java.lang.NullPointerException
	at org.apache.tuscany.sdo.helper.XMLStreamHelperImpl.loadDocument(XMLStreamHelperImpl.java:144)
	at org.apache.tuscany.sdo.helper.XMLStreamHelperImpl.loadObject(XMLStreamHelperImpl.java:94)
	at org.apache.tuscany.sdo.helper.XMLStreamHelperImpl.loadObject(XMLStreamHelperImpl.java:98)
	at org.apache.tuscany.sdo.test.XMLLoadOptionsTestCase.testXMLStreamHelper(XMLLoadOptionsTestCase.java:186)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at junit.framework.TestCase.runTest(TestCase.java:168)
	at junit.framework.TestCase.runBare(TestCase.java:134)
	at junit.framework.TestResult$1.protect(TestResult.java:110)
	at junit.framework.TestResult.runProtected(TestResult.java:128)
	at junit.framework.TestResult.run(TestResult.java:113)
	at junit.framework.TestCase.run(TestCase.java:124)
	at junit.framework.TestSuite.runTest(TestSuite.java:232)
	at junit.framework.TestSuite.run(TestSuite.java:227)
	at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:76)
	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
	at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
Caused by: java.lang.NullPointerException
	at org.xml.sax.helpers.AttributesImpl.getValue(AttributesImpl.java:286)
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleSchemaLocation(XMLHandler.java:859)
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:985)
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:712)
	at org.apache.tuscany.sdo.util.resource.SDOXMLResourceImpl$SDOXMLLoadImpl$XmlHandler.startElement(SDOXMLResourceImpl.java:491)
	at org.apache.tuscany.sdo.util.StAX2SAXAdapter.handleStartElement(StAX2SAXAdapter.java:162)
	at org.apache.tuscany.sdo.util.StAX2SAXAdapter.parse(StAX2SAXAdapter.java:111)
	at org.apache.tuscany.sdo.util.resource.SDOXMLResourceImpl$SDOXMLLoadImpl$1.run(SDOXMLResourceImpl.java:567)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.apache.tuscany.sdo.util.resource.SDOXMLResourceImpl$SDOXMLLoadImpl.load(SDOXMLResourceImpl.java:565)
	at org.apache.tuscany.sdo.util.resource.SDOXMLResourceImpl.load(SDOXMLResourceImpl.java:710)
	at org.apache.tuscany.sdo.helper.XMLDocumentImpl.load(XMLDocumentImpl.java:255)
	at org.apache.tuscany.sdo.helper.XMLStreamHelperImpl.loadDocument(XMLStreamHelperImpl.java:135)
	... 26 more



> EMF 2.5 Upgrade for Tuscany SDO
> -------------------------------
>
>                 Key: TUSCANY-3679
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3679
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SDO Implementation
>    Affects Versions: Java-SDO-1.1
>            Reporter: Florian Pinel
>         Attachments: tuscany-sdo-impl.zip, tuscany-sdo-impl.zip
>
>
> Elio Damaggio and myself have upgraded EMF to version 2.5 in the Java SDO implementation. I will attach the updated code.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (TUSCANY-3679) EMF 2.5 Upgrade for Tuscany SDO

Posted by "Florian Pinel (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-3679?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Florian Pinel updated TUSCANY-3679:
-----------------------------------

    Attachment: tuscany-sdo-impl.zip

2nd file: same project using whitespaces instead of tabs for indentation

> EMF 2.5 Upgrade for Tuscany SDO
> -------------------------------
>
>                 Key: TUSCANY-3679
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3679
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SDO Implementation
>    Affects Versions: Java-SDO-1.1
>            Reporter: Florian Pinel
>         Attachments: tuscany-sdo-impl.zip, tuscany-sdo-impl.zip
>
>
> Elio Damaggio and myself have upgraded EMF to version 2.5 in the Java SDO implementation. I will attach the updated code.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TUSCANY-3679) EMF 2.5 Upgrade for Tuscany SDO

Posted by "ant elder (JIRA)" <de...@tuscany.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-3679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12910044#action_12910044 ] 

ant elder commented on TUSCANY-3679:
------------------------------------

One issue with this is that your eclipse settings are preserving tab characters whereas the tuscany svn code only uses spaces and that means its difficult to see what the code changes are because a diff shows zillions of lines changed due to all the tab characters. Is there any chance you could change your eclipse settings to match tuscanys (in preferences - code style - formatter and then in the Indentation page set Tab policy to be spaces only)?

> EMF 2.5 Upgrade for Tuscany SDO
> -------------------------------
>
>                 Key: TUSCANY-3679
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3679
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SDO Implementation
>    Affects Versions: Java-SDO-1.1
>            Reporter: Florian Pinel
>         Attachments: tuscany-sdo-impl.zip
>
>
> Elio Damaggio and myself have upgraded EMF to version 2.5 in the Java SDO implementation. I will attach the updated code.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (TUSCANY-3679) EMF 2.5 Upgrade for Tuscany SDO

Posted by "Florian Pinel (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-3679?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Florian Pinel updated TUSCANY-3679:
-----------------------------------

    Attachment: tuscany-sdo-impl.zip

tuscany-sdo-impl eclipse project

> EMF 2.5 Upgrade for Tuscany SDO
> -------------------------------
>
>                 Key: TUSCANY-3679
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3679
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SDO Implementation
>    Affects Versions: Java-SDO-1.1
>            Reporter: Florian Pinel
>         Attachments: tuscany-sdo-impl.zip
>
>
> Elio Damaggio and myself have upgraded EMF to version 2.5 in the Java SDO implementation. I will attach the updated code.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.