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 : 
prenom....@ifpen.fr. La racine @ifpenergiesnouvelles.fr reste néanmoins active. 

Our e-mail address is changing to firstname.surn...@ifpen.fr. 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

Reply via email to