2014-10-15 4 views
0

Mule의 DataMapper 스크립트에서 dataformat 변환을 사용하고 있습니다.Mule DataMapper의 DateTimeFormatter

dateTimeFormatter = new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss"); 

output.Date_of_Rate_Float__c = (isnull(input.Date_of_Rate_Float) ? null : dateTimeFormatter.format(input.Date_of_Rate_Float)); 

매핑을 저장하려고 할 때. 오류 아래에 있습니다.

Root Exception stack trace: 
org.apache.commons.beanutils.ConversionException: DateConverter does not support default String to 'Date' conversion. 
at org.apache.commons.beanutils.converters.DateTimeConverter.toDate(DateTimeConverter.java:468) 

그러나 dateTimeFormatter를 제거하면 오류가 발생하지 않습니다. dateconversion을 사용해야하는데,이를 해결할 다른 방법이 있습니까?

미리 감사드립니다.

답변

0

날짜 데이터 형식을 문자열으로 지정하고 날짜 형식을 지정하려고했습니다. 날짜 데이터 형식을 DATETIME으로 변경하고 변환하십시오.

관련 문제