This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am trying to marshal an object and it's throwing the following error.
class com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException [Ljava.lang.StackTraceElement;@c68c3 2 counts of IllegalAnnotationExceptions null.
The line thowing the error is this
JAXBContext context = JAXBContext.newInstance(Resync.class);
I have googled this error and some post say i need an empty constructor to fix this. I have tried several things and nothing seems to work. Any help is appreciated.
Main Class Snippet
Joined: Feb 27, 2008
the solution to this problem is in the Resync class
add this line of code above both get Methods for XMLGregorian Calendar fields