Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366147 - UnsupportedOperationException when serializing models with AttributeValueXhtml
Summary: UnsupportedOperationException when serializing models with AttributeValueXhtml
Status: RESOLVED FIXED
Alias: None
Product: MDT.RMF
Classification: Modeling
Component: Reqif-1.0 (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P2 critical (vote)
Target Milestone: 0.5.0   Edit
Assignee: Mark Broerkens CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-09 03:47 EST by Mark Broerkens CLA
Modified: 2012-11-14 16:49 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Broerkens CLA 2011-12-09 03:47:44 EST
When writing models that contain AttributeValueXhtml objects, the serialization throws an UnsupportedOperationException. 

Failure Trace:

java.lang.UnsupportedOperationException
	at org.eclipse.rmf.reqif10.impl.AttributeValueXhtmlImpl.getTheOriginalValue(AttributeValueXhtmlImpl.java:216)
	at org.eclipse.rmf.reqif10.impl.AttributeValueXhtmlImpl.eIsSet(AttributeValueXhtmlImpl.java:431)
	at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eIsSet(BasicEObjectImpl.java:1247)
	at org.eclipse.emf.ecore.util.EContentsEList$FeatureIteratorImpl.hasNext(EContentsEList.java:407)
	at org.eclipse.rmf.emf.ecore.converter.EObjectConverter.doConvert(EObjectConverter.java:140)
	at org.eclipse.rmf.emf.ecore.converter.EObjectConverter.doConvert(EObjectConverter.java:141)
	at org.eclipse.rmf.emf.ecore.converter.EObjectConverter.doConvert(EObjectConverter.java:141)
	at org.eclipse.rmf.emf.ecore.converter.EObjectConverter.doConvert(EObjectConverter.java:141)
	at org.eclipse.rmf.emf.ecore.converter.EObjectConverter.convert(EObjectConverter.java:120)
	at org.eclipse.rmf.reqif10.resource.ReqIf1ResourceImpl.convertRifEcore2RifXML(ReqIf1ResourceImpl.java:201)
	at org.eclipse.rmf.reqif10.resource.ReqIf1ResourceImpl.save(ReqIf1ResourceImpl.java:186)
Comment 1 Mark Broerkens CLA 2012-04-12 20:35:22 EDT
fixed with commit 3e3829ca63eb7e022913315df0f4e377938c25d8
http://git.eclipse.org/gitroot/rmf/org.eclipse.rmf.git

the seriaization mechanism and the metamodel have been reworked completely