This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer (Exam 1Z0-830) Java SE 17 Developer (Exam 1Z0-829) Programmer’s Guide and have Khalid Mughal and Vasily Strelnikov on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Invalid set of fields set for XMLGregorianCa

 
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi I am getting following exception while use this code.can any body pls guide me how to fix this problem?

Exception occurred....com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregor
ianCalendarImpl#getXMLSchemaType() :Invalid set of fields set for XMLGregorianCalendar




DatatypeFactory df = null;
try {
df = DatatypeFactory.newInstance();
}
catch (DatatypeConfigurationException ex1) {
}

try
{
XMLGregorianCalendar xmlCalendar = df.newXMLGregorianCalendar();//here getting exception....
System.out.println("calendar"+ xmlCalendar);

}
catch (Exception e)
{
System.out.println("Exception occurred...."+ e.getMessage());
}
 
reply
    Bookmark Topic Watch Topic
  • New Topic