users@jaxb.java.net

Re: JAXB issue: java.security.Permission does not have a no-arg default constructor.

From: Malachi de Ælfweald <malachid_at_gmail.com>
Date: Tue, 29 Jul 2008 07:55:47 -0700

Have you tried using the XmlJavaTypeAdapter?

http://weblogs.java.net/blog/kohsuke/archive/2005/09/using_jaxb_20s.html

On Tue, Jul 29, 2008 at 7:46 AM, Arul Dhesiaseelan <arul_at_fluxcorp.com>wrote:

> Hello JAXB users,
>
> I am getting the following error at JAXB runtime.
>
> Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1
> counts of IllegalAnnotationExceptions
> java.security.Permission does not have a no-arg default constructor.
> this problem is related to the following location:
> at java.security.Permission
>
> My interface has the following methods:
>
> public Set<Permission> getPermissions();
> public void setPermissions(Set<Permission> permissions);
>
> How do I fix this in JAXB runtime as I do not have control over annotating
> java.security.* classes?
>
> Appreciate any help.
>
> Thank you,
> Arul
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>