1

I need to serialize a object with jaxb. This object contain :

    private Map<String, List<Interface>> d;

When i serialize this object, I obtain this exception : IllegalAnnotationExceptions java.util.List is an interface, and JAXB can't handle interfaces

How to resolve this exception ? use xmladapter (but how) ? Thx for your help.

Ankur Lathi
  • 7,636
  • 5
  • 37
  • 49
  • Yes you will need an `XmlAdapter`. Here is a link to help you get started: blog.bdoughan.com/2010/07/xmladapter-jaxbs-secret-weapon.html – bdoughan Jan 21 '14 at 13:17

0 Answers0