| [News.eclipse.modeling.mddi] Re: Problems with custom resources |
Hello Stefan,
Thanks,
Sébastien
Stefan Dellmuth wrote:
First, I have to thank you! The patch helped a lot!
But, after some more programming, I have a new problem (which is not a bug, I suppose): I want to send an EMF model over the bus, but in order to load the model, a custom resource implementation is necessary.
Of course the DefaultSerializer doesn't know about the custom resource implementation, which leads to errors during deserialization:
9954 [Thread-4] ERRORorg.eclipse.mddi.modelbus.adapter.infrastructure.serialize.emf_xmi.DefaultModelSerializer
- org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Class 'Testmodell' not found.(file:///C:/Programme/Eclipse/workspace/ModelBus%20Test/rsc/xml/TestModel2.xml,
2, 173)org.eclipse.mddi.modelbus.adapter.infrastructure.serialize.emf_xmi.DefaultModelSerializer
9954 [Thread-4] ERROR
- Resource with URI rsc/xml/TestModel2.xml is null.org.eclipse.mddi.modelbus.adapter.infrastructure.transport.ws.DefaultWsInvocationReceiver
(This error is repeated for each model element)
10135 [Thread-4] ERROR
- An error occured during invocation process
As a consequence, an empty Vector arrives at the receiver.
Is there a possibility:
1) to register my resource somehow? I tried with ModelBusResourceSet and GlobalResourceRegistry, but without success.
2) to "configure" the DefaultSerializer so that it can user the custom resource?
Best regards, Stefan Dellmuth