hmm , I found the problem
I will fix that soon , till that rather than taking Date object can u pls
rename that to take Calendar object , that should work
pls create a JIRA so that I will definitely fix that.
Thanks,
Deepal
................................................................
~Future is Open~
----- Original Message -----
From: "Anders Syvertsen" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, January 26, 2006 5:22 PM
Subject: [axis2-0.94] - Problem serializing dateTime types??
Hi, just deployed my service and started to test it.
Seems to me that axis2 has problems deserializing the request, and
responses with an axisfault message.
Tried to write some text to std out first thing in my method, but no text
is written to my console. This indicates that the request
never "reaches" the method implementation..
My service is:
public String getResultsetsNewerThan(String authUserName, String
authPassword, int wizardId, Date minimumDate) throws AxisFault
The request is:
<?xml version="1.0" encoding="UTF-8" ?>
- <#> <soapenv:Envelope xmlns:q0="*http://org.apache.axis2/xsd*"
xmlns:xsd="*http://www.w3.org/2001/XMLSchema*"
xmlns:soapenv="*http://schemas.xmlsoap.org/soap/envelope/*"
xmlns:xsi="*http://www.w3.org/2001/XMLSchema-instance*">
- <#> <soapenv:Body>
- <#> <q0:getResultsetsNewerThanRequest>
<q0:authUserName>[EMAIL PROTECTED]</q0:authUserName>
<q0:authPassword>anders</q0:authPassword>
<q0:wizardId>125</q0:wizardId>
<q0:minimumDate>2006-01-26T10:35:31.816Z</q0:minimumDate>
</q0:getResultsetsNewerThanRequest>
</soapenv:Body>
</soapenv:Envelope>
.. and the response is..
- <#> <soapenv:Envelope
xmlns:soapenv="*http://schemas.xmlsoap.org/soap/envelope/*">
<soapenv:Header />
- <#> <soapenv:Body>
- <#> <soapenv:Fault>
<faultcode>Client</faultcode>
<faultstring>null; nested exception is:
java.lang.ClassCastException</faultstring>
<faultactor>http://myAxisServer/role/default</faultactor>
- <#> <detail>
<soapenv:Exception>org.apache.axis2.AxisFault: null; nested exception is:
java.lang.ClassCastException at
org.apache.axis2.AxisFault.makeFault(AxisFault.java:254) at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:118)
at
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:331) at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:274)
at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:150)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source) Caused by:
java.lang.ClassCastException at
org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:129)
at
org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:314)
at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.processRequest(RPCMessageReceiver.java:124)
at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:96)
... 20 more</soapenv:Exception>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
I have no idea why that ClassCastException is provoced, but my feeling
says that it got to be that Date minimumDate parameter that troubles
things.. all my other services that use only Strings and primitives in the
method signature works..
Regards, Anders !