huuanh1987 / facebook-java-api

Automatically exported from code.google.com/p/facebook-java-api
0 stars 0 forks source link

facebookXmlRestClient.getResponsePOJO() fails because initJaxbSupport() is never called #190

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
A call to facebookXmlRestClient.getResponsePOJO() returns null because
ExtensibleClient.JAXB_CONTEXT is null. This is caused by the fact that
ExtensibleClient.initJaxbSupport() is not called in the ExtensibleClient
constructor. It is called when we are constructing a FacebookJaxbRestClient
however.

Original issue reported on code.google.com by adriaan....@gmail.com on 9 Apr 2009 at 7:56

GoogleCodeExporter commented 8 years ago
That's by design. We don't want to start up the JAXB engine unless it's going 
to be used.
In the "composition" branch, issues like this are solved. However, unless some 
beta
testers come forward who want a type-safe JAXB api (rather than everything just
returning Object) then the "composition" branch will never get into production.

Original comment by david.j....@googlemail.com on 9 Apr 2009 at 1:36