• Post Reply Bookmark Topic Watch Topic
  • New Topic

Invalid set of fields set for XMLGregorianCa  RSS feed

 
Graham Thorpe
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
  • 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());
}
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!