does not have a no-arg default constructor

does not have a no-arg default constructor

javax.ws.rs.WebApplicationException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
com.javahonk.model.Person does not have a no-arg default constructor.
this problem is related to the following location:

  • Solution: As you see in the exception details it says default constructor is missing. This happened to me while working with XML processing. To fix this issue I had to create default constructor in my model class.

For more information plesase see JAX-B documentation here

Leave a Reply

Your email address will not be published. Required fields are marked *