[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[News.eclipse.modeling.mddi] Getting a NullPointerException during Deserialization

Hi!

My name is Stefan Dellmuth. I'm from Germany and I'm using Eclipse MDDi for my project thesis. I have the following problem. I've created a simple ECore model that I want to send over the ModelBus. I flatten the model with the correspondig ModelUtil method and then call my service. The serialization just works fine and the SOAP request contains all my model elements. But during deserialization, before even one line of code of my service implementation is called, I get the following exception:

java.lang.NullPointerException
at org.eclipse.mddi.modelbus.adapter.infrastructure.serialize.emf_xmi.DefaultModelSerializer.dereference(DefaultModelSerializer.java:215)
at org.eclipse.mddi.modelbus.adapter.infrastructure.transport.marshal.ws.DefaultMarshaler.unmarshallSingleValue(DefaultMarshaler.java:281)
at org.eclipse.mddi.modelbus.adapter.infrastructure.transport.marshal.ws.DefaultMarshaler.unmarshal(DefaultMarshaler.java:231)
at org.eclipse.mddi.modelbus.adapter.infrastructure.transport.marshal.ws.DefaultMarshaler.unmarshal(DefaultMarshaler.java:482)
at org.eclipse.mddi.modelbus.adapter.infrastructure.transport.server.ws.DefaultWsInvocationReceiver.readRequest(DefaultWsInvocationReceiver.java:130)
at org.eclipse.mddi.modelbus.adapter.infrastructure.transport.server.ws.DefaultWsInvocationReceiver.process(DefaultWsInvocationReceiver.java:89)
at org.eclipse.mddi.modelbus.adapter.infrastructure.transport.server.ws.ProviderEndPoint.execute(ProviderEndPoint.java:186)
at org.eclipse.mddi.modelbus.adapter.infrastructure.transport.server.ws.EndPointManagerImpl.execute(EndPointManagerImpl.java:67)
at org.eclipse.mddi.modelbus.adapter.infrastructure.transport.server.ws.axis.SimpleModelBusServer$MBAxisServer.invoke(SimpleModelBusServer.java:161)
at org.apache.axis.transport.http.SimpleAxisWorker.execute(SimpleAxisWorker.java:428)
at org.apache.axis.transport.http.SimpleAxisWorker.run(SimpleAxisWorker.java:155)
at java.lang.Thread.run(Unknown Source)


I looked a little bit into the ModelBus code, but I couldn't grasp the problem. Why is this exception thrown? Is something wrong with my model or am I missing something important?

Best regards,
Stefan Dellmuth