WebService DateTime value is not parsed to Date.

04 Dec '13, 06:04 PM
8,702 Views
Forum Forum Starter - Level 2

Hello,

I have came across the next problem.

I am developing a web service and I have declared a parameter to get a date. This parameter is called "createdOn" and I have declared it as "dateTime".

I have a few actions before to create a register with this value when it throws this error:

04 Dec 2013 16:49:43,965  ERROR [http-nio-8080-exec-2]  (com.webratio.units.operation.rtx.db.CreateUnitService_$$_javassist_11:72) - [D7A9FFCE89709C6A67AC032453271D97][miu1j][opm7j][miu3j][opm3x][miu6x][opm4x][miu8x][opm1][cru1]Could not execute service

 org.apache.commons.beanutils.ConversionException: String must be in JDBC format [yyyy-MM-dd HH:mm:ss.fffffffff] to create a java.sql.Timestamp

The table file is "timestamp".

The request XML is like this:

...

<createdOn>2009-07-10T12:40Z</createdOn>

...

I thought that my "Solicit Unit" would parse this param to "Date" but it doesn't.

The "Time Unit" doesn't really help. It throws this error:

04 Dec 2013 17:46:58,501  ERROR [http-nio-8080-exec-8]  (com.webratio.units.utility.rtx.TimeUnitService_$$_javassist_5:72) - [B750EB9EB268697CA2A12A2828D43B5E][tmu1j]Could not parse input value
 java.text.ParseException: Unparseable date: "2009-07-10T12:40Z"
 
So, what could be the best way to face this?
 
Thanks in advance!

 
x 0
Follow
Answer Answer at this question and get points!
No answers yet
Answer at this question and get points!

Related questions

Access wsdl in https Can not get generate and run option for DataService Project Cannot invoke method selectSingleNode() on null object Can't generate and run database or start tomcat server! CelsiusToFahrenheit Example com.webratio.rtx.RTXException: An error occurred dispatching the SOAP message Could not create service Custom Unit and AJAX / SOAP Description: Unknown tag 'wr:LinkResource' Exception REST Post request Exposing SOAP Web SERVICE on port different from 80 Generation options problem Getting started with Web Services How can I invoke a Rest Web Service having dynamic parameters? How to change smtp port invoking a webservice using REST java.lang.NullPointerException No cloud accounts available No database on my cloud account Parameters order in a webservice request Problema generando la logica de un proyecto Problemas al invocar webservice Properties of the XSD Resource (File) Publish a web service publish web service for storing information in PostgreSQL DB following XSD Resource Sync DataService Project with Mobile Project usuarios y grupos WebRatio and MySQL WebRatio Mobile Platform Community edition - Restful request Web service provider newline problem web service request using XSD Web service - Synchronize XSD When stars web ratio between dofollow and nofollow backlink has affected? When using web services, what kind authentication is used? which of these three models is closer to webratio/ifml way of creating web applications XML Out Unit and Soap Request Response Unit XML Schema Definition Support XML Schema Definition Support