我最近升级到ODI 5.5.1和Java 1.7。由于这样做,我无法使用tSalesforceOutputBulkExec对salesforce执行批量处理。 尝试运行作业时,我始终收到以下异常消息。
Starting job TestBulk at 10:50 13/08/2014.
[statistics] connecting to socket on port 3438
[statistics] connected
Exception in thread "main" java.lang.IllegalAccessError: tried to access method com.sforce.async.BatchRequest.loadBatchInfo(Ljava/io/InputStream;)Lcom/sforce/async/BatchInfo; from class com.sforce.async.BulkConnection
at com.sforce.async.BulkConnection.createBatchFromStreamImpl(BulkConnection.java:154)
at com.sforce.async.BulkConnection.createBatchFromStream(BulkConnection.java:131)
at org.talend.salesforceBulk.SalesforceBulkAPI.createBatch(SalesforceBulkAPI.java:369)
at org.talend.salesforceBulk.SalesforceBulkAPI.createBatchesFromCSVFile(SalesforceBulkAPI.java:355)
at org.talend.salesforceBulk.SalesforceBulkAPI.executeBulk(SalesforceBulkAPI.java:122)
at prototyping.testbulk_0_1.TestBulk.tSalesforceInput_1Process(TestBulk.java:2180)
at prototyping.testbulk_0_1.TestBulk.runJobInTOS(TestBulk.java:2522)
at prototyping.testbulk_0_1.TestBulk.main(TestBulk.java:2368)
[statistics] disconnected
Job TestBulk ended at 10:50 13/08/2014. [exit code=1]
该异常似乎发生在作为talend构建的一部分提供的wsc.jar中,但它来自salesforce提供并托管在https://code.google.com/p/sfdc-wsc/downloads/list上的开源软件包
我不确定我看到的问题是在wsc jar中还是在我的设置中。 有没有人看过或解决过这个问题? 我应该替换wsc.jar文件,如果是这样,这是正确的jar替换OS_DI-Win32-r118616-V5.5.1 \ plugins \ org.talend.designer.components.localprovider_5.5.1.r118616 \ components \ tSalesforceBulkExec \ wsc。罐