cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Zavizionov" <alexey.zavizio...@gmail.com>
Subject Interceptor has thrown exception: IllegalArgumentException in XMLGregorianCalendarImpl
Date Thu, 18 Sep 2008 15:05:21 GMT
Hello list,

I have an exception when getting method with Date parameter:
        Date date = Calendar.getInstance().getTime();
        String ticketOrder = ticket.getTicket("1", "2", date, "3");

====================================================
Sep 18, 2008 4:44:21 PM org.apache.cxf.phase.PhaseInterceptorChain
doIntercept
INFO: Interceptor has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault:
        at
org.apache.cxf.aegis.databinding.ElementDataReader.read(ElementDataReader.java:66)
        at
org.apache.cxf.aegis.databinding.ElementDataReader.read(ElementDataReader.java:39)
        at
org.apache.cxf.binding.soap.interceptor.SoapHeaderInterceptor.handleMessage(SoapHeaderInterceptor.java:101)
        at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
        at
org.apache.cxf.transport.MultipleEndpointObserver.onMessage(MultipleEndpointObserver.java:86)
        at
org.apache.cxf.transport.local.LocalConduit$1$1.run(LocalConduit.java:132)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.IllegalArgumentException:
        at
com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl$Parser.parseBigInteger(XMLGregorianCalendarImpl.java:2854)
        at
com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl$Parser.parse(XMLGregorianCalendarImpl.java:2747)
        at
com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl.<init>(XMLGregorianCalendarImpl.java:440)
        at
com.sun.org.apache.xerces.internal.jaxp.datatype.DatatypeFactoryImpl.newXMLGregorianCalendar(DatatypeFactoryImpl.java:224)
        at
org.apache.cxf.aegis.util.date.XsDateTimeFormat.parseObject(XsDateTimeFormat.java:80)
        at java.text.Format.parseObject(Format.java:219)
        at
org.apache.cxf.aegis.type.basic.DateTimeType.readObject(DateTimeType.java:54)
        at
org.apache.cxf.aegis.AegisXMLStreamDataReader.read(AegisXMLStreamDataReader.java:82)
        at
org.apache.cxf.aegis.AegisElementDataReader.read(AegisElementDataReader.java:50)
        at
org.apache.cxf.aegis.databinding.ElementDataReader.read(ElementDataReader.java:64)
        ... 6 more
====================================================

Service's simple interface has the method code:
====================================================
  @WebMethod(operationName = "getTicket", action = "urn:GetTicket")
  @WebResult(name = "Ticket")
  public String getTicket(@WebParam(name = "departing", header = true)
String departing,
      @WebParam(name = "arriving", header = true) String arriving,
      @WebParam(name = "departureDate", header = true) Date departureDate,
      @WebParam(name = "passenger", header = true) String passenger) ;
====================================================

Regards,
Alexey.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message