Bug 182830 - org.eclipse.ohf.stem.tests.core throws exceptions
Summary: org.eclipse.ohf.stem.tests.core throws exceptions
Status: CLOSED INVALID
Alias: None
Product: STEM
Classification: Technology
Component: Internal (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P4 normal (vote)
Target Milestone: ---   Edit
Assignee: Stefan Edlund CLA
QA Contact: Daniel Ford CLA
URL:
Whiteboard:
Keywords: test
Depends on:
Blocks:
 
Reported: 2007-04-17 17:16 EDT by Daniel Ford CLA
Modified: 2010-12-07 17:50 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Ford CLA 2007-04-17 17:16:12 EDT
This gets thrown when a test "model" is serialized.  It is added to the Resource but the complaint says it isn't.

org.eclipse.emf.ecore.resource.Resource$IOWrappedException: The object '"null"
1 models
1 graphs
1edge decorators
' is not contained in a resource.
	at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.endSave(XMLSaveImpl.java:287)
	at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.save(XMLSaveImpl.java:251)
	at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doSave(XMLResourceImpl.java:205)
	at org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(ResourceImpl.java:1253)
	at org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(ResourceImpl.java:964)
	at org.eclipse.ohf.stem.tests.util.TestUtil.serializeIdentifiable(TestUtil.java:479)
	at org.eclipse.ohf.stem.core.model.tests.ModelTest.testSerializeDeserialize(ModelTest.java:890)
	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 junit.framework.TestCase.runTest(TestCase.java:164)
	at junit.framework.TestCase.runBare(TestCase.java:130)
	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:120)
	at junit.framework.TestSuite.runTest(TestSuite.java:230)
	at junit.framework.TestSuite.run(TestSuite.java:225)
	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
	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: org.eclipse.emf.ecore.xmi.DanglingHREFException: The object '"null"
1 models
1 graphs
1edge decorators
' is not contained in a resource.
	at org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.handleDanglingHREF(XMLHelperImpl.java:701)
	at org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.getURIFragment(XMLHelperImpl.java:685)
	at org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.getIDREF(XMLHelperImpl.java:694)
	at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveIDRefMany(XMLSaveImpl.java:1894)
	at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLSaveImpl.java:1246)
	at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XMLSaveImpl.java:2578)
	at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.writeTopObject(XMLSaveImpl.java:631)
	at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.traverse(XMLSaveImpl.java:562)
	at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.save(XMLSaveImpl.java:237)
	... 23 more
Comment 1 Daniel Ford CLA 2007-12-19 10:45:36 EST
This is in the test  testSerializeDeserialize(), the issue is explained in the comments for that test.  Not really clear if there is anything to worry about here.  It seems like it is just a problem of getting the configuration correctly set up for the test.  I'm dropping the priority.
Comment 2 James Kaufman CLA 2010-03-30 16:14:00 EDT
Is this still true?
Comment 3 James Kaufman CLA 2010-12-07 17:50:41 EST
This bug is no longer valid
Comment 4 James Kaufman CLA 2010-12-07 17:50:53 EST
close