axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jayachandra Sekhara Rao Sunkara (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Commented: (AXIS-1481) No deserializer for dateTime
Date Wed, 14 Dec 2005 06:39:47 GMT
    [ http://issues.apache.org/jira/browse/AXIS-1481?page=comments#action_12360396 ] 

Jayachandra Sekhara Rao Sunkara commented on AXIS-1481:
-------------------------------------------------------

Hi Dominik and Antonio,

I see some basic difference in the reported problem by Antonio and the test case tcpmon.log
by Dominik. In the former the dateTime value is coming as soapenc:dateTime while in the later
it is coming as xsd:dateTime. I believe the DateSerializer or CalendarSerializer in Axis1.x
are for xsd:dateTime xml type and may be not for soapenc:dateTime xmltype, that could be the
reason why in Dominik case things succeeded while for Antonio they failed. Somehow if by a
work around one can send xsd:dateTime as the xml type for oracle date from the server then
the problem can be resolved. For this I'd suggest that Antonio can remove in his deploy.wsdd
the encodingStyle attribute for the RecordSet typeMapping

   <typeMapping
        xmlns:ns="http://localhost:8080/dservice/ws.xsd/dservice"
        qname="ns:RecordSet"
        type="java:localhost.dservice.ws_xsd.dservice.RecordSet"
        serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
        deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"                 <<
REMOVE THIS LINE AND TRY
      />

Thanks
Jayachandra

> No deserializer for  dateTime
> -----------------------------
>
>          Key: AXIS-1481
>          URL: http://issues.apache.org/jira/browse/AXIS-1481
>      Project: Apache Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: 1.2 Beta
>     Reporter: Antonio Tambaro
>     Assignee: Dominik Kacprzak
>     Priority: Minor
>  Attachments: AXIS-1481.tar.gz, axis1_2TojaxRPC.zip, dservice.wsdl
>
> When I try to make a sql-select that retrieve columns of the oracle-datatype "DATE",
I get the following stacktrace:
> (If I fire a select-statement without columns of DATE, it works well)
> SCHWERWIEGEND: No deserializer for java.lang.Object
> 28.07.2004 17:21:51 org.apache.axis.client.Call invoke
> SCHWERWIEGEND: Exception:
> org.xml.sax.SAXException: No deserializer for {http://schemas.xmlsoap.org/soap/encoding/}dateTime
> 	at org.apache.axis.encoding.DeserializerImpl.onStartElement(DeserializerImpl.java:456)
> 	at org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:396)
> 	at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:1014)
> 	at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:159)
> 	at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1050)
> 	at org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:372)
> 	at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:1014)
> 	at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:159)
> 	at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1050)
> 	at org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:372)
> 	at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:1014)
> 	at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:159)
> 	at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1050)
> 	at org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:372)
> 	at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:1014)
> 	at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:159)
> 	at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1050)
> 	at org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:372)
> 	at org.apache.axis.encoding.ser.BeanDeserializer.startElement(BeanDeserializer.java:130)
> 	at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:1014)
> 	at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:159)
> 	at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1050)
> 	at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:196)
> 	at org.apache.axis.message.RPCElement.getParams(RPCElement.java:310)
> 	at org.apache.axis.client.Call.invoke(Call.java:2381)
> 	at org.apache.axis.client.Call.invoke(Call.java:2280)
> 	at org.apache.axis.client.Call.invoke(Call.java:1741)
> 	at org.opencube.www.wsdl.dservice.dservice.DataSourceServiceBindingStub.executeQuery(DataSourceServiceBindingStub.java:351)
> 	at ConnectToOMSTest.main(ConnectToOMSTest.java:51)
> AxisFault
>  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>  faultSubcode: 
>  faultString: org.xml.sax.SAXException: No deserializer for {http://schemas.xmlsoap.org/soap/encoding/}dateTime
>  faultActor: 
>  faultNode: 
>  faultDetail: 
> ...
> I used the wsdl2java to generate the stubs.
> Have anyone a solution for my problem?
> Bye Antonio.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message