How to correct "factory already defined" error

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

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?

Moderator

Re: How to correct "factory already defined" error

Hello,

Could you please post your job design screenshots on forum which will be helpful for us to address your issue?

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.
Moderator

Re: How to correct "factory already defined" error

Hello,

We have upgraded Amazon Redshift JDBC Driver since 7.0.1.

Could you please let us know if this issue still repro on v 7.0.1?

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.

15TH OCTOBER, COUNTY HALL, LONDON

Join us at the Community Lounge.

Register Now

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch