Hi Sebastian,

I've added "lineWidth" and "usingEncodedAttributeStyle" properties to 
EmfRepresentation to facilitate XMI writing configuration. Checked in SVN trunk!

Best regards,
Jerome
--
http://www.restlet.org
http://twitter.com/#!/jlouvel


-----Message d'origine-----
De : Sebastien Schneider [mailto:[email protected]] 
Envoyé : mardi 20 septembre 2011 18:39
À : [email protected]
Objet : NPE using Restlet 2.1m7 with EMF extension

Hello,

I tried to use Restlet v2.1m7 with a simple ecore model and the emf extension. 
An NPE is thrown by EMF when serializing my model instance in
XML:
Caused by: java.lang.NullPointerException
     at
org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.getHREF(XMLHelperImpl.java:814)
     ....

This exception is caused by the OPTION_USE_ENCODED_ATTRIBUTE_STYLE save option 
set to true in the createEmfResource method of the EmfRepresentation class. If 
I remove this flag, it works fine.
What is the good usage in this case ? Do I have to overwrite the 
createEmfResource in my proper Representation to set flags accordingly to my 
model ?

Thank you for your time and for this nice Restlet framework.

Best regards,
Sebastien Schneider.

__________________________
Notre adresse de messagerie évolue pour plus de simplicité vers : 
[email protected]. La racine @ifpenergiesnouvelles.fr reste néanmoins active. 

Our e-mail address is changing to [email protected]. Nevertheless, 
messages sent to the domain @ifpenergiesnouvelles.fr will still be delivered.  

Ce message (et toutes ses pièces jointes éventuelles) est confidentiel et 
établi à l'intention exclusive de ses destinataires. Toute utilisation de ce 
message non conforme à sa destination, toute diffusion ou toute publication, 
totale ou partielle, est interdite, sauf autorisation expresse. IFP Energies 
nouvelles décline toute responsabilité au titre de ce message.
This message and any attachments (the message) are confidential and intended 
solely for the addressees. Any unauthorised use or dissemination is prohibited. 
IFP Energies nouvelles should not be liable for this message.

Visitez notre site Web / Visit our web site : www.ifpenergiesnouvelles.fr / 
www.ifpenergiesnouvelles.com __________________________

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2842267

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2842284

Reply via email to