I have been having a problem with insertion of a date/time string in the format dd-MM-yyyy HH:mm (java format) into an Oracle 10g database.
Generating the insert adaptor service using webMethods developer, I have the Oracle date field mapped to jdbc date field. The input to the service is a string of the above format.
I remember battling with similar issues. Some considerations:
Are you certain of your oracle table data type?
What data type do you tell the adapter to use? In the insert tab, the following works for us:JDBC type (top): TIMESTAMP, Input field type (bottom): java.util.date (changed from default java.sql.timestamp if I remember correctly)
Did you select jdbc filed type java.lang.String…
Also try this format dd-MMM-yyyy HH:mm:ss if not ask your ORA team in what format are they expecting and change it accordingly using via date Format service.
Hi Kasinath,
I have faced to similar issues recently, If you are using mapping String to Date type(String to Date) we have service available in WMPublic folder. If you are mapping to a timestamp type try using this format: dd-MMM-yy hh.mm.ss.SSSSSS a. Oracle understands this format.
If you need more information, i will help you.
thanks & regards,
vijay
com.wm.pkg.art.error.DetailedServiceException: [ART.117.4002] Adapter Runtime (Adapter Service): Unable to invoke adapter service dao:callROCreateSimul.
ClassCast Exception for field: V_MATURITY. Error: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Date
thanks for the update.
The fields to change the type is not available this is an adapter type Store Procedure with signature, i don’t know if it is normal.
can you try to convert the java.lang.String to a java.util.Date and then assign this date to the adapter?
Hopefully the java.util.Date can be converted to the java.sql.Date.