You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Frank Budinsky (JIRA)" <tu...@ws.apache.org> on 2006/04/24 16:16:06 UTC

[jira] Resolved: (TUSCANY-214) Build break in sdo/impl - test case org.apache.tuscany.sdo.test.DefineTypeTestCase - revision r396374.

     [ http://issues.apache.org/jira/browse/TUSCANY-214?page=all ]
     
Frank Budinsky resolved TUSCANY-214:
------------------------------------

    Resolution: Fixed

I committed a fix in revision 396560. Since I don't have access to a Linux machine, I can't be certain what the problem was, but from the symptoms, it looks very much like the infamous INSTANCE problem. I'm speculating that the tests run in a different order (or something like that) on Linux which caused the metadata from an earlier test to interfere with the metadata of the OpenType test - but only when running on Linux. The fix I committed is to use a proper scoped XMLHelper instead of XMLHelper.INSTANCE.

Please let me know if this fixes the problem. If not, I need more information about what exactly is going on in the Linux environment.

Thanks,
Frank.

> Build break in sdo/impl - test case org.apache.tuscany.sdo.test.DefineTypeTestCase - revision r396374.
> ------------------------------------------------------------------------------------------------------
>
>          Key: TUSCANY-214
>          URL: http://issues.apache.org/jira/browse/TUSCANY-214
>      Project: Tuscany
>         Type: Bug

>   Components: Java SDO Implementation
>  Environment: Linux
>     Reporter: Jean-Sebastien Delfino
>     Priority: Blocker

>
> Build break in sdo/impl - test case org.apache.tuscany.sdo.test.DefineTypeTestCase - revision 396374.
> Here's the surefire log:
> -------------------------------------------------------------------------------
> Battery: org.apache.tuscany.sdo.test.DefineTypeTestCase
> -------------------------------------------------------------------------------
> Tests run: 6, Failures: 0, Errors: 1, Time elapsed: 0.067 sec
> testDefineOpenType(org.apache.tuscany.sdo.test.DefineTypeTestCase)  Time elapsed: 0.002 sec  <<< ERROR!
> [ stdout ] ---------------------------------------------------------------
> [ stderr ] ---------------------------------------------------------------
> [ stacktrace ] -----------------------------------------------------------
> java.lang.ClassCastException: The feature 'openStockQuote's type 'OpenQuote' does not permit a value of type 'OpenQuote'
>         at org.eclipse.emf.ecore.impl.EStructuralFeatureImpl$BasicFeatureMapEntry.validate(EStructuralFeatureImpl.java:2843)
>         at org.eclipse.emf.ecore.util.FeatureMapUtil.createEntry(FeatureMapUtil.java:146)
>         at org.eclipse.emf.ecore.util.BasicFeatureMap.createEntry(BasicFeatureMap.java:94)
>         at org.eclipse.emf.ecore.util.BasicFeatureMap.set(BasicFeatureMap.java:1051)
>         at org.eclipse.emf.ecore.util.FeatureMapUtil$FeatureValue.set(FeatureMapUtil.java:1150)
>         at org.eclipse.emf.ecore.impl.EStructuralFeatureImpl$InternalSettingDelegateFeatureMapDelegator.dynamicSet(EStructuralFeatureImpl.java:1401)
>         at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicSet(BasicEObjectImpl.java:648)
>         at org.apache.tuscany.sdo.impl.DynamicDataObjectImpl.eDynamicSet(DynamicDataObjectImpl.java:147)
>         at org.apache.tuscany.sdo.impl.DataObjectImpl.eSet(DataObjectImpl.java:1439)
>         at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(BasicEObjectImpl.java:604)
>         at org.apache.tuscany.sdo.helper.XMLDocumentImpl.save(XMLDocumentImpl.java:192)
>         at org.apache.tuscany.sdo.helper.XMLHelperImpl.save(XMLHelperImpl.java:104)
>         at org.apache.tuscany.sdo.helper.XMLHelperImpl.save(XMLHelperImpl.java:99)
>         at org.apache.tuscany.sdo.test.DefineTypeTestCase.testDefineOpenType(DefineTypeTestCase.java:531)
>         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:585)
>         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 junit.framework.TestSuite.runTest(TestSuite.java:208)
>         at junit.framework.TestSuite.run(TestSuite.java:203)
>         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:585)
>         at org.apache.maven.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.java:242)
>         at org.apache.maven.surefire.battery.JUnitBattery.execute(JUnitBattery.java:216)
>         at org.apache.maven.surefire.Surefire.executeBattery(Surefire.java:215)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:163)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
>         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:585)
>         at org.apache.maven.surefire.SurefireBooter.runTestsInProcess(SurefireBooter.java:285)
>         at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:201)
>         at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:366)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:432)         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530)         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>         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:585)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

-- 
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