You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Sathija Pavuluri <sp...@EmprisaNetworks.com> on 2007/01/30 18:50:56 UTC
[Axis2] RPCMessageReceiver deserialize error when Date is null
Hi,
I thought Date issues with RPCMessageReceiver might've been fixed, but not this one maybe.
When my service returns an object that contains a java.util.Date field whose value is null,
the deserializer throws as exception about bad date format.
I am using Axis2 1.1.1. Works fine when the date value is non-null though.
Here is the exception stack trace:
java.lang.NumberFormatException: badDateTime00
at org.apache.axis2.databinding.typemapping.SimpleTypeMapper.makeCalendar(SimpleTypeMapper.java:214)
at org.apache.axis2.databinding.typemapping.SimpleTypeMapper.getSimpleTypeObject(SimpleTypeMapper.java:95)
at org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:291)
at org.apache.axis2.databinding.utils.BeanUtil.processObject(BeanUtil.java:557)
at org.apache.axis2.databinding.utils.BeanUtil.ProcessElement(BeanUtil.java:507)
at org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:446)
at org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:97)
at com.emprisa.ena.ws.client.DeviceServiceStub.getConfiguration(DeviceServiceStub.java:50)
at com.emprisa.ena.ws.DeviceServiceTest.testGetConfiguration(DeviceServiceTest.java:56)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Thanks,
Sathija.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2] RPCMessageReceiver deserialize error when Date is null
Posted by Deepal Jayasinghe <de...@opensource.lk>.
Hi Sathija ;
Pls help me to re-create the issue.
Thanks
Deepal
>Hi,
>
>I thought Date issues with RPCMessageReceiver might've been fixed, but not this one maybe.
>When my service returns an object that contains a java.util.Date field whose value is null,
>the deserializer throws as exception about bad date format.
>I am using Axis2 1.1.1. Works fine when the date value is non-null though.
>
>Here is the exception stack trace:
>
> java.lang.NumberFormatException: badDateTime00
> at org.apache.axis2.databinding.typemapping.SimpleTypeMapper.makeCalendar(SimpleTypeMapper.java:214)
> at org.apache.axis2.databinding.typemapping.SimpleTypeMapper.getSimpleTypeObject(SimpleTypeMapper.java:95)
> at org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:291)
> at org.apache.axis2.databinding.utils.BeanUtil.processObject(BeanUtil.java:557)
> at org.apache.axis2.databinding.utils.BeanUtil.ProcessElement(BeanUtil.java:507)
> at org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:446)
> at org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:97)
> at com.emprisa.ena.ws.client.DeviceServiceStub.getConfiguration(DeviceServiceStub.java:50)
> at com.emprisa.ena.ws.DeviceServiceTest.testGetConfiguration(DeviceServiceTest.java:56)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
>
>Thanks,
>Sathija.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
>
>
--
Thanks,
Deepal
................................................................
"The highest tower is built one brick at a time"
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2] RPCMessageReceiver deserialize error when Date is null
Posted by Sathija Pavuluri <sp...@EmprisaNetworks.com>.
Kinichiro, Deepal,
Actually my issue is related more with the datetime problem described in
http://issues.apache.org/jira/browse/AXIS2-1883 which was linked to AXIS2-1745 that Kinichiro mentioned.
I have been using Axis2 1.1.1 release.
Will get the latest nightly and try the fix.
Thanks,
Sathija.
> Hi,
>
> Did you try current latest nightly ?
> I think this issue was resolved by AXIS2-1745, after 1.1.1 release.
> http://issues.apache.org/jira/browse/AXIS2-1745
>
> kinichiro
>
> --- Sathija Pavuluri <sp...@EmprisaNetworks.com> wrote:
>
>> Hi,
>>
>> I thought Date issues with RPCMessageReceiver might've been fixed,
>> but not this one maybe.
>> When my service returns an object that contains a java.util.Date
>> field whose value is null,
>> the deserializer throws as exception about bad date format.
>> I am using Axis2 1.1.1. Works fine when the date value is non-null
>> though.
>>
>> Here is the exception stack trace:
>>
>> java.lang.NumberFormatException: badDateTime00
>> at
>>
> org.apache.axis2.databinding.typemapping.SimpleTypeMapper.makeCalendar(SimpleTypeMapper.java:214)
>> at
>>
> org.apache.axis2.databinding.typemapping.SimpleTypeMapper.getSimpleTypeObject(SimpleTypeMapper.java:95)
>> at
>>
> org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:291)
>> at
>>
> org.apache.axis2.databinding.utils.BeanUtil.processObject(BeanUtil.java:557)
>> at
>>
> org.apache.axis2.databinding.utils.BeanUtil.ProcessElement(BeanUtil.java:507)
>> at
>>
> org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:446)
>> at
>>
> org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:97)
>> at
>>
> com.emprisa.ena.ws.client.DeviceServiceStub.getConfiguration(DeviceServiceStub.java:50)
>> at
>>
> com.emprisa.ena.ws.DeviceServiceTest.testGetConfiguration(DeviceServiceTest.java:56)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>> Method)
>> at
>>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at
>>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>
>>
>> Thanks,
>> Sathija.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
>
>
>
> ____________________________________________________________________________________
> Finding fabulous fares is fun.
> Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains.
> http://farechase.yahoo.com/promo-generic-14795097
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2] RPCMessageReceiver deserialize error when Date is null
Posted by Kinichiro Inoguchi <in...@yahoo.com>.
Hi,
Did you try current latest nightly ?
I think this issue was resolved by AXIS2-1745, after 1.1.1 release.
http://issues.apache.org/jira/browse/AXIS2-1745
kinichiro
--- Sathija Pavuluri <sp...@EmprisaNetworks.com> wrote:
> Hi,
>
> I thought Date issues with RPCMessageReceiver might've been fixed,
> but not this one maybe.
> When my service returns an object that contains a java.util.Date
> field whose value is null,
> the deserializer throws as exception about bad date format.
> I am using Axis2 1.1.1. Works fine when the date value is non-null
> though.
>
> Here is the exception stack trace:
>
> java.lang.NumberFormatException: badDateTime00
> at
>
org.apache.axis2.databinding.typemapping.SimpleTypeMapper.makeCalendar(SimpleTypeMapper.java:214)
> at
>
org.apache.axis2.databinding.typemapping.SimpleTypeMapper.getSimpleTypeObject(SimpleTypeMapper.java:95)
> at
>
org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:291)
> at
>
org.apache.axis2.databinding.utils.BeanUtil.processObject(BeanUtil.java:557)
> at
>
org.apache.axis2.databinding.utils.BeanUtil.ProcessElement(BeanUtil.java:507)
> at
>
org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:446)
> at
>
org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:97)
> at
>
com.emprisa.ena.ws.client.DeviceServiceStub.getConfiguration(DeviceServiceStub.java:50)
> at
>
com.emprisa.ena.ws.DeviceServiceTest.testGetConfiguration(DeviceServiceTest.java:56)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
>
> Thanks,
> Sathija.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
____________________________________________________________________________________
Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains.
http://farechase.yahoo.com/promo-generic-14795097
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org