[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[News.eclipse.modeling.mddi] Problems with custom resources
|
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] ERROR
org.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)
9954 [Thread-4] ERROR
org.eclipse.mddi.modelbus.adapter.infrastructure.serialize.emf_xmi.DefaultModelSerializer
- Resource with URI rsc/xml/TestModel2.xml is null.
(This error is repeated for each model element)
10135 [Thread-4] ERROR
org.eclipse.mddi.modelbus.adapter.infrastructure.transport.ws.DefaultWsInvocationReceiver
- 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