users@jaxb.java.net

Urgent Problem with generated class: JAXBElement does not have a no-arg default constructor.

From: VanIngen, Erik (FIPS) <"VanIngen,>
Date: Tue, 28 Dec 2010 16:58:55 +0100

Dear JAXB,

I have an urgent problem with a JAXB XJC generated class. Using the generated class does give this exception:

com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
javax.xml.bind.JAXBElement does not have a no-arg default constructor.
        this problem is related to the following location:
                at javax.xml.bind.JAXBElement
                at org.opensdmx.domain.v2_1.message.GenericData

The problem is documented by a unittest in this Maven project:
https://opensdmx.svn.sourceforge.net/svnroot/opensdmx/trunk/opensdmx-domain-21

What can I do to solve this problem? Do you need more information in order to understand the problem?

Kind Regards,
Erik