java - saving twitter4J Status to MongoDB gives "twitter4j.Status is an interface, and JAXB can't handle interfaces" -


trying save list<status> mongodb (via morphia), , compile time error:

com.sun.xml.ws.spi.db.databindingexception: com.sun.xml.bind.v2.runtime.illegalannotationsexception: 1 counts of illegalannotationexceptions twitter4j.status interface, , jaxb can't handle interfaces.     problem related following location:         @ twitter4j.status         @ public java.util.list model.twitterjob.getstatuses() 

any idea? lot!

it's little complicated marshal status, because class statusjsonimpl implements status in twitter4j 3.0 protected. need override class , make visible classes.

please checkout following example detail.

https://github.com/phstudy/twitter4j_jaxb_example


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -