resthub / resthub-spring-stack

RESThub Spring stack
http://resthub.org/spring-stack.html
Other
121 stars 66 forks source link

Fix findAll (XML serialization) function in GenericController/GenericServiceBasedControllerImpl #74

Closed jvillanti closed 10 years ago

jvillanti commented 12 years ago

After refactoring, the function "findAll" in GenericController/GenericServiceBasedControllerImpl mapped onto "/" (paged response of entities) is no longer working (involved : org.resthub.web.response.PageResponse)

Stacktrace :

[com.sun.istack.internal.SAXException2: class org.resthub.toto.model.Sample nor any of its super class is known to this context.
javax.xml.bind.JAXBException: class org.resthub.toto.model.Sample nor any of its super class is known to this context.]
sdeleuze commented 12 years ago

We now use Jackson XML serialization, but XML version of findAll is broken. The related bug that should be fixed is https://github.com/FasterXML/jackson-dataformat-xml/issues/6

sdeleuze commented 12 years ago

Waiting for Jackson 2.1, it will fix this issue

sdeleuze commented 12 years ago

Jackson 2.1 will not support root non wrapped values, so we should use plain arrays instead of collections for the moment

houssemba commented 10 years ago

Problem fixed by upgrading to the last version. (fixed on Jackson 2.3.0)

bmeurant commented 10 years ago

Good news ! I will soon check and release some related tests in order to close this issue.

Thank you for raising this point.