Hi,
I am working on a JPA marshalling bridge using a custom marshaller definition.
My invocations work well using JAX-RS invocations, so the server de/marshalling is OK.
Only on the client I get now a :
java.lang.RuntimeException: no marshalling definition available for type:at.tfr.aero2.client.model.Parent
org.jboss.errai.marshalling.client.util.MarshallUtil.getMarshaller(MarshallUtil.java:131)
org.jboss.errai.marshalling.client.util.EncDecUtil.arrayMarshall(EncDecUtil.java:50)
org.jboss.errai.marshalling.client.marshallers.AbstractCollectionMarshaller.doMarshall(AbstractCollectionMarshaller.java:36)
org.jboss.errai.marshalling.client.marshallers.AbstractCollectionMarshaller.doMarshall(AbstractCollectionMarshaller.java:1)
org.jboss.errai.marshalling.client.marshallers.AbstractBackReferencingMarshaller.marshall(AbstractBackReferencingMarshaller.java:55)
org.jboss.errai.marshalling.client.marshallers.AbstractBackReferencingMarshaller.marshall(AbstractBackReferencingMarshaller.java:36)
org.jboss.errai.marshalling.client.marshallers.ErraiProtocolEnvelopeMarshaller.marshall(ErraiProtocolEnvelopeMarshaller.java:99)
org.jboss.errai.marshalling.client.protocols.ErraiProtocol.encodePayload(ErraiProtocol.java:40)
Is ist necessary to provide Marshalling classes also on client side, if I want to use simple Java marshalling on client side?
I am using reflection and CDI heavily in my marshallers, which is not avaliable at client side, so that would not work.
Can you give me a poimter, what I could have done wrong when setting up the Marshaller?
My EntityMappingDefinition is attached, please help.
Thanks,
Thomas
Sorry, found it:
1. in MappingDefinition() doNotGenerate was set to true - default by IDE :-/
2. I should not set the ClientMarshallerClass manually