axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sagara Gunathunga (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (AXIS2-5113) Issue with calling a web service wherein a java.sql.Date has been used in arguments.
Date Wed, 07 Sep 2011 11:39:10 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-5113?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sagara Gunathunga  resolved AXIS2-5113.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.7.0

As mentioned used java.util.Date for xs:date but if the service method expect an argument
of java.sql.Date this modification convert java.util.Date into  java.sql.Date automatically.
However this is limited for POJOs and there is  no code generation support for  java.sql.Date.
  

Fixed in r1166128.

> Issue with calling a web service wherein a java.sql.Date has been used in arguments.
> ------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5113
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5113
>             Project: Axis2
>          Issue Type: Bug
>          Components: modules
>         Environment: Windows 7
> Netbeans 6.7.1
> Apache Tomcat
>            Reporter: Saurabh S. Pawse
>            Assignee: Sagara Gunathunga 
>            Priority: Blocker
>              Labels: axis2, java.sql.Date, webservice
>             Fix For: 1.7.0
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> 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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message