-
1. Re: Problem with Jackson demarshalling.
htfv Nov 15, 2012 7:22 AM (in response to htfv)BTW, I tried to replace List<TranslationDto> with TranslationDto[] and I get exception during compilation:
[ERROR] org.jboss.errai.marshalling.client.api.exceptions.MarshallingException: no marshaller for type: [Lcom.brandmaker.languagecenter.ui.rest.shared.dto.TranslationDto; [ERROR] at org.jboss.errai.marshalling.rebind.api.impl.defaultjava.DefaultJavaMappingStrategy$1.getMarshaller(DefaultJavaMappingStrategy.java:176) [ERROR] at org.jboss.errai.marshalling.rebind.MarshallerGeneratorFactory.addMarshaller(MarshallerGeneratorFactory.java:313) [ERROR] at org.jboss.errai.marshalling.rebind.MarshallerGeneratorFactory.generateMarshallers(MarshallerGeneratorFactory.java:296) [ERROR] at org.jboss.errai.marshalling.rebind.MarshallerGeneratorFactory._generate(MarshallerGeneratorFactory.java:268) [ERROR] at org.jboss.errai.marshalling.rebind.MarshallerGeneratorFactory.generate(MarshallerGeneratorFactory.java:142) [ERROR] at org.jboss.errai.marshalling.rebind.MarshallersGenerator._generate(MarshallersGenerator.java:271) [ERROR] at org.jboss.errai.marshalling.rebind.MarshallersGenerator.generateMarshallerBootstrapper(MarshallersGenerator.java:249) [ERROR] at org.jboss.errai.marshalling.rebind.MarshallersGenerator.generate(MarshallersGenerator.java:234) ...
Are arrays not supported?
For info: this is GWT 2.5.0 and Errai 2.1.1.Final. Had the same errors with GWT 2.5.0-rc2 and Errai 2.1.0.Final.
-
2. Re: Problem with Jackson demarshalling.
csa Nov 15, 2012 5:26 PM (in response to htfv)1 of 1 people found this helpfulHi Aliaksei,
The latter (the array-specific problem) was a simple bug in our marshaller generator. It's fixed now in the latest 2.2.0-SNAPSHOT. See https://issues.jboss.org/browse/ERRAI-435.
I understand what causes the problem with @MapsTo and List<T> when using Jackson. I am working on a solution.
Thanks for reporting these issues,
Christian
-
3. Re: Problem with Jackson demarshalling.
csa Nov 15, 2012 10:02 PM (in response to csa)OK the first problem (using @MapsTo with Lists) is fixed now as well in the latest 2.2.0-SNAPSHOTs: https://issues.jboss.org/browse/ERRAI-436
Cheers,
Christian
-
4. Re: Problem with Jackson demarshalling.
htfv Nov 16, 2012 3:42 AM (in response to csa)Thanks for the quick response. I was going to try RestyGWT but now it works with Errai.
Any chances to get https://issues.jboss.org/browse/ERRAI-414 fixed?
Regards,
Aliaksei
-
5. Re: Problem with Jackson demarshalling.
csa Nov 16, 2012 10:04 AM (in response to htfv)Hi,
Yes we will fix ERRAI-414. In fact, I wanted to do it for a while now, but it might require some breaking changes, which is why it will probably be in Errai 3.
Cheers,
Christian