Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
MGjergji1654699655
Contributor II
Contributor II

Need to exclude slf4j-log4j12-1.7.25.jar from being imported.

I get the following error when running a job:

talend IllegalStateException: Detected both log4j-over-slf4j.jar AND bound slf4j-log4j12.jar on the class path, preempting StackOverflowError. See also http://www.slf4j.org/codes.html# log4jDelegationLoop for more details.

I need

log4j-over-slf4j.jar and I don't know how slf4j-log4j12.jar gets imported.

Labels (2)
3 Replies
Anonymous
Not applicable

Can you give us a bit more detail on this please? What product are you using? Have you modified the modules? (https://help.talend.com/r/en-US/8.0/installation-guide-open-studio-for-data-quality-mac/installing-external-modules)

 

Do you have any screenshots of when this happens?

MGjergji1654699655
Contributor II
Contributor II
Author

Starting job substitute_delivery_bill_cn46 at 11:23 09/06/2022.

Null value will be used for context parameter cFileSize: For input string: ""

Null value will be used for context parameter cDate: Unparseable date: ""

[statistics] connecting to socket on port 3602

[statistics] connected

SLF4J: Class path contains multiple SLF4J bindings.

SLF4J: Found binding in [jar:file:/D:/Tools/Talend-7.3.1/talend/configuration/.m2/repository/org/slf4j/slf4j-log4j12/1.7.25/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]

SLF4J: Found binding in [jar:file:/D:/Tools/Talend-7.3.1/talend/configuration/.m2/repository/org/talend/libraries/logback-classic-1.1.7/6.0.0/logback-classic-1.1.7-6.0.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]

SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

SLF4J: Detected both log4j-over-slf4j.jar AND bound slf4j-log4j12.jar on the class path, preempting StackOverflowError. 

SLF4J: See also http://www.slf4j.org/codes.html#log4jDelegationLoop for more details.

Exception in thread "main" java.lang.ExceptionInInitializerError

at org.slf4j.impl.StaticLoggerBinder.<init>(StaticLoggerBinder.java:72)

at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:45)

at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150)

at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)

at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:412)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:357)

at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:155)

at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:132)

at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:273)

at org.apache.http.conn.ssl.AbstractVerifier.<init>(AbstractVerifier.java:61)

at org.apache.http.conn.ssl.AllowAllHostnameVerifier.<init>(AllowAllHostnameVerifier.java:44)

at org.apache.http.conn.ssl.AllowAllHostnameVerifier.<clinit>(AllowAllHostnameVerifier.java:46)

at org.apache.http.conn.ssl.SSLConnectionSocketFactory.<clinit>(SSLConnectionSocketFactory.java:146)

at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.getDefaultRegistry(PoolingHttpClientConnectionManager.java:114)

at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.<init>(PoolingHttpClientConnectionManager.java:121)

at ch.ecmind.talend.enaio.redline.client.RedlineClient.<init>(RedlineClient.java:58)

at local_project.substitute_delivery_bill_cn46_0_1.substitute_delivery_bill_cn46.enaioRedConnection_1Process(substitute_delivery_bill_cn46.java:2019)

at local_project.substitute_delivery_bill_cn46_0_1.substitute_delivery_bill_cn46.tPrejob_1Process(substitute_delivery_bill_cn46.java:1944)

at local_project.substitute_delivery_bill_cn46_0_1.substitute_delivery_bill_cn46.runJobInTOS(substitute_delivery_bill_cn46.java:24969)

at local_project.substitute_delivery_bill_cn46_0_1.substitute_delivery_bill_cn46.main(substitute_delivery_bill_cn46.java:24515)

Caused by: java.lang.IllegalStateException: Detected both log4j-over-slf4j.jar AND bound slf4j-log4j12.jar on the class path, preempting StackOverflowError. See also http://www.slf4j.org/codes.html#log4jDelegationLoop for more details.

at org.slf4j.impl.Log4jLoggerFactory.<clinit>(Log4jLoggerFactory.java:54)

... 20 more

[statistics] disconnected

[statistics] disconnected

 

Job substitute_delivery_bill_cn46 ended at 11:24 09/06/2022. [Exit code = 1]

 

The logging component I'm using that needs log4j-over-slf4j.

0695b00000RjyNXAAZ.png 

 

MGjergji1654699655
Contributor II
Contributor II
Author

https://ecmind.ch/post/2020/2020-07-08-talend-logging/

Do you think that there is a workaround here?