Date exception in Task Search

When I search using Search Tasks on a Date field in the Business Data, with java.util.Date Term the search Task web service is throwing the following exception:

com.webMethods.portal.bizPolicy.BizException: [POP.001.0002] A “com.webMethods.caf.common.CommonException” occurred with the Message “Unable to convert data type “java.util.GregorianCalendar” to “java.util.Date”” )

I’m not sure why this conversion is taking place, when my input is a java.util.Data?

Copying Alex’ post to this topic as it got accidently posted somewhere else:

I think this is a bug in the remote searchTask() service. I have seen that java.util.Date gets transferred to the server as GregorianCalendar and probably is not getting properly converted back.

Said that you will need to file an SR to get this addressed.

Meanwhile to overcome this you can try instead java.util.Date to pass an epoch number of milliseconds instead e.g. java.util.Date.getTime(). I think it will be able to convert millis to Date when searching for mathching tasks

Alex

Thanks,
Thomas