Four Stars

How to correct "factory already defined" error

Once upgraded to 6.5.1, any existing job or new job (even in new project) that I create with more than one 'Redshift' component, I receive the "Error: Factory already defined".


I cannot find anything online and trial and error has yielded no results.


Thanks in advance for any ideas!




Here is a simple layout and error:


[statistics] connecting to socket on port 3928
[statistics] connected
Exception in thread "main" java.lang.Error: factory already defined
at Source)
at org.talend.daikon.runtime.RuntimeUtil.registerMavenUrlHandler(
at org.talend.daikon.runtime.RuntimeUtil.<clinit>(
at org.talend.components.api.component.runtime.JarRuntimeInfo.<clinit>(
at org.talend.components.salesforce.SalesforceDefinition.getCommonRuntimeInfo(
at org.talend.components.salesforce.tsalesforceinput.TSalesforceInputDefinition.getRuntimeInfo(
at talend651.sf_direct_test_0_1.sf_direct_test.tSalesforceInput_1Process(
at talend651.sf_direct_test_0_1.sf_direct_test.tRedshiftRow_1Process(
at talend651.sf_direct_test_0_1.sf_direct_test.runJobInTOS(
at talend651.sf_direct_test_0_1.sf_direct_test.main(
[statistics] disconnected


Re: How to correct "factory already defined" error


Does this issue repro when you use tRedShiftOutput component instead?

Best regards


Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Four Stars

Re: How to correct "factory already defined" error

Thanks for the reply!

Yes it does, if input is from a Salesforce component.

It seems to be tied to using a Salesforce component and a Redshift component in the same job.

(it worked without issue in 6.3.1)



 tRedshiftInput --> tRedshiftOutput  = no error

 tSalesforceGetUpdated --> tRedshiftOutput = factory already defined error


 tSalesforceInput --> tRedshiftOutput = factory already defined error



One Star

Re: How to correct "factory already defined" error

I'm having same issue, using Talend Community 6.5, any luck resolving?