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!

Scott

 

 

Here is a simple layout and error:

2018-03-10_simpleJob.png

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

3 REPLIES
Moderator

Re: How to correct "factory already defined" error

Hello,

Does this issue repro when you use tRedShiftOutput component instead?

Best regards

Sabrina

--
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)

 

Using:

 tRedshiftInput --> tRedshiftOutput  = no error

 tSalesforceGetUpdated --> tRedshiftOutput = factory already defined error

2018-03-11_21-55-06.png

 tSalesforceInput --> tRedshiftOutput = factory already defined error

2018-03-11_22-01-08.png

 

One Star

Re: How to correct "factory already defined" error

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