org.jetel.exception.JetelRuntimeException:插入csv文件时记录:mule esb

时间:2015-02-03 08:59:02

标签: salesforce mule mule-studio mule-component

我将csv文件记录插入salesforce帐户。 我可以成功地将数据插入到salesfore中,但是出现了以下错误

ERROR 2015-02-03 14:21:39,709 [WatchDog_0] org.jetel.graph.runtime.SingleThreadWatchDog: Component [CSV READER:DATA_READER0] finished with status ERROR.
 Parsing error: Unexpected end of file in record 1, field 1 ("test_c"), metadata "report__c"; value: '<Raw record data is not available, please turn on verbose mode.>'
ERROR 2015-02-03 14:21:39,710 [WatchDog_0] org.jetel.graph.runtime.SingleThreadWatchDog: Error details:
org.jetel.exception.JetelRuntimeException: Component [CSV READER:DATA_READER0] finished with status ERROR.

我使用了以下流程..

File->DataMapper->salesforce

<flow name="flow1" doc:name="flow1">
        <file:inbound-endpoint path="path" responseTimeout="10000" doc:name="File" connector-ref="File"/>
        <data-mapper:transform config-ref="CSV_To_List_report__c_" doc:name="CSV To List&lt;report__c&gt;"/>
        <sfdc:create-bulk config-ref="salesforce" type="report__c" doc:name="Salesforce">
            <sfdc:objects ref="#[payload]"/>
        </sfdc:create-bulk>
        <logger message="Final #[payload]" level="INFO" doc:name="Logger"/>
</flow>

csv文件格式

25,36,45,25.36,15.20
27,88,56.25,66.33,25

解决方案是什么?

还有一个问题 在salesforce之后,我想使用java组件。我怎么能使用thta? 如果我使用java组件,那么它会给我以下错误

1. Failed to find entry point for component, the following resolvers tried but failed: [
ReflectionEntryPointResolver: Could not find entry point on: "com.org.Status" with arguments: "{class java.lang.String}"
MethodHeaderPropertyEntryPointResolver: The required property "method" is not set on the event
AnnotatedEntryPointResolver: Component: com.org.Status@8f5673 doesn't have any annotated methods, skipping.
CallableEntryPointResolver: Object "com.org.Status@8f5673" does not implement required interface "interface org.mule.api.lifecycle.Callable"

由于

1 个答案:

答案 0 :(得分:0)

我解决了两个问题。我使用了幂等滤波器和我的变压器只调用一次

 <idempotent-message-filter idExpression="#[payload.state]" doc:name="Idempotent Message"/>