Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5113

Issue with calling a web service wherein a java.sql.Date has been used in arguments.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 1.7.0
    • modules
    • Windows 7
      Netbeans 6.7.1
      Apache Tomcat

    Description

      Wsdl fragment:

      • <xs:complexType name="IdentificationDTO">
      • <xs:sequence>
        <xs:element minOccurs="0" name="expiryDate" nillable="true" type="xs:date" />
        <xs:element minOccurs="0" name="identificationNumber" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="issueDate" nillable="true" type="xs:date" />

      Exception:
      java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
      at org.apache.axis2.databinding.utils.BeanUtil.getPropertyQnameList(BeanUtil.java:265)
      at org.apache.axis2.databinding.utils.BeanUtil.getPullParser(BeanUtil.java:67)
      at org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.processProperties(ADBXMLStreamReaderImpl.java:994)
      at org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.next(ADBXMLStreamReaderImpl.java:850)
      at org.apache.axis2.databinding.utils.reader.WrappingXMLStreamReader.next(WrappingXMLStreamReader.java:49)
      at org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.next(ADBXMLStreamReaderImpl.java:853)
      at org.apache.axis2.util.StreamWrapper.next(StreamWrapper.java:71)
      at org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuilder.java:681)
      at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:214)
      at org.apache.axiom.om.impl.llom.OMSerializableImpl.build(OMSerializableImpl.java:78)
      at org.apache.axiom.om.impl.llom.OMElementImpl.build(OMElementImpl.java:722)
      at org.apache.axiom.om.impl.llom.OMElementImpl.detach(OMElementImpl.java:700)
      at org.apache.axiom.om.impl.llom.OMNodeImpl.setParent(OMNodeImpl.java:105)
      at org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:296)
      at org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:212)
      at org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:104)
      at org.apache.axis2.rpc.receivers.RPCUtil.processResponseAsDocLitWrapped(RPCUtil.java:437)
      at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:138)
      at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
      at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
      at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
      at org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:135)
      at org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:130)
      at org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:825)
      at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:271)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.axis2.databinding.utils.BeanUtil.getPropertyQnameList(BeanUtil.java:146)
      ... 41 more
      Caused by: java.lang.IllegalArgumentException
      at java.sql.Date.getHours(Date.java:143)
      ... 46 more

      Apparently the exception is being thrown when the expiryDate is being processed, which is of type java.sql.Date.

      Attachments

        Activity

          People

            sagara Sagara Gunathunga
            saurabhp Saurabh S. Pawse
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified