JBoss Community

javax.xml.bind.UnmarshalException occured with XMLGregorianCalendar

created by Huong Hoang in JBoss Web Services - View the full discussion

Hi, our web service has a simple type with xsd:gYear, when generate to java class, it become XMLGregorianCalendar type. We deployed to Jboss AS 5.1. When we test ws in soapUI - for the scenario year is not entered, we expect to get the application error code something like year is invalid.. however we got fault exception javax.xml.bind.UnmarshalException with linked exception:[java.lang.IllegalArgumentException: ...

 

The version we deployed to WebSphere AS is working fine - if no year entered we got the error code we set in the application.

 

Your help is appreciated.

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community