Getting runtime Log4j error/warning from job

Seven Stars

Getting runtime Log4j error/warning from job



I am getting below log4j error/warning while running my job, but job is running fine (data is loading).

Please help me to resolve this problem.

Notice: I am not using any XML file/operations in the job.






log4j:WARN Fatal parsing error 1 and column 1
log4j:WARN Premature end of file.
log4j:ERROR Could not parse url [file:/E:/Talend%20OS/TOS_DI-20161216_1026-V6.3.1/TOS_DI-20161216_1026-V6.3.1/workspace/.Java/target/classes/log4j.xml].
org.xml.sax.SAXParseException; systemId: file:/E:/Talend%20OS/TOS_DI-20161216_1026-V6.3.1/TOS_DI-20161216_1026-V6.3.1/workspace/.Java/target/classes/log4j.xml; lineNumber: 1; columnNumber: 1; Premature end of file.
    at Source)
    at Source)
    at org.apache.log4j.xml.DOMConfigurator$2.parse(
    at org.apache.log4j.xml.DOMConfigurator.doConfigure(
    at org.apache.log4j.xml.DOMConfigurator.doConfigure(
    at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(
    at org.apache.log4j.LogManager.<clinit>(
    at org.slf4j.impl.Log4jLoggerFactory.getLogger(
    at org.slf4j.LoggerFactory.getLogger(
    at org.slf4j.LoggerFactory.getLogger(
    at org.talend.components.salesforce.runtime.SalesforceSourceOrSink.<clinit>(
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at threeirp_56.copy_of_initial_purge_ctn_0_1.Copy_of_Initial_Purge_CTN.tSalesforceInput_1Process(
    at threeirp_56.copy_of_initial_purge_ctn_0_1.Copy_of_Initial_Purge_CTN.tWarn_5Process(
    at threeirp_56.copy_of_initial_purge_ctn_0_1.Copy_of_Initial_Purge_CTN.tWarn_1Process(
    at threeirp_56.copy_of_initial_purge_ctn_0_1.Copy_of_Initial_Purge_CTN.tSetProxy_1Process(
    at threeirp_56.copy_of_initial_purge_ctn_0_1.Copy_of_Initial_Purge_CTN.tWarn_4Process(
    at threeirp_56.copy_of_initial_purge_ctn_0_1.Copy_of_Initial_Purge_CTN.runJobInTOS(
    at threeirp_56.copy_of_initial_purge_ctn_0_1.Copy_of_Initial_Purge_CTN.main(



Re: Getting runtime Log4j error/warning from job


Have you ever changed Log4j.xml in your studio in project setting-->Log4j?

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.

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

How to deploy Talend Jobs as Docker images to Amazon, Azure and Google Cloud reg...

Learn how to deploy Talend Jobs as Docker images to Amazon, Azure and Google Cloud registries


Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables


Talend API Services Publish to Talend Cloud

Learn how to publish your API Services to Talend Cloud

Watch Now

Cloud Data Warehouse Trends for 2019

Find out aboutCloud Data Warehouse Trends for 2019