<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: tRestClient and Log4j warnings in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tRestClient-and-Log4j-warnings/m-p/2317428#M87873</link>
    <description>In the meantime, I've added a tJava component prior to the subjob that calls the tRestClient component. &amp;nbsp;In that tJava, I now have these two lines:&lt;BR /&gt;org.apache.log4j.BasicConfigurator.configure();&lt;BR /&gt;org.apache.log4j.Logger.getRootLogger().setLevel(org.apache.log4j.Level.INFO);&lt;BR /&gt;&lt;BR /&gt;The first line sets up the log4j configuration, getting rid of the WARN messages. &amp;nbsp;The second line sets the logging level to INFO, getting rid of all of the DEBUG messages that are then generated. &amp;nbsp;This will work for me, but I still don't understand why jobs created prior to a couple days ago had no issues with log4j and why new jobs since then do have these issues.&lt;BR /&gt;very strange...</description>
    <pubDate>Fri, 05 Aug 2016 22:31:52 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2016-08-05T22:31:52Z</dc:date>
    <item>
      <title>tRestClient and Log4j warnings</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestClient-and-Log4j-warnings/m-p/2317427#M87872</link>
      <description>&lt;P&gt;Hi - I'm seeing some strange behavior that I'm hoping someone can advise me on. &amp;nbsp;I have been building jobs using TOS-DI 6.1.1 for a while now. In these jobs, I have been using a tRestClient component in the same way across all jobs. &amp;nbsp;The service being called in the tRestClient is an TOS-ESB service that I've created and deployed into an TOS-ESB Runtime. &amp;nbsp;This all works great for me. &amp;nbsp;Since all of my jobs use this same service call, what I've been doing is when I create a new DI job, I start by copying and pasting the subjob that includes the tRestClient call, along with other dependent components. &amp;nbsp;&lt;BR /&gt;Anyways, this has been working just fine for me. &amp;nbsp;The jobs that I create all behave as expected. &amp;nbsp;Within the last few days, I've come across some very strange behavior. &amp;nbsp;When I create a new job (within the same Project) and export the job to be run from the command line, I'm now getting these warnings:&lt;BR /&gt;&lt;BR /&gt;log4j:WARN No appenders could be found for logger (org.apache.cxf.common.logging.LogUtils).&lt;BR /&gt;log4j:WARN Please initialize the log4j system properly.&lt;BR /&gt;log4j:WARN See &lt;A href="http://logging.apache.org/log4j/1.2/faq.html#noconfig" target="_blank" rel="nofollow noopener noreferrer"&gt;http://logging.apache.org/log4j/1.2/faq.html#noconfig&lt;/A&gt; for more info.&lt;BR /&gt;&lt;BR /&gt;I've isolated these warning as coming from my tRestClient component. &amp;nbsp;They do not appear when running the job via Studio, only when building the job and running at the command line. &amp;nbsp;What's strange about this is that jobs (again within the same project) that I created before a couple days ago all behave normally, with no warning messages. &amp;nbsp;Even if I re-export those older jobs, they continue to behave fine. &amp;nbsp;Any new jobs I create, once exported, are giving me these warning messages.&lt;BR /&gt;&lt;BR /&gt;Ultimately, I don't want to use log4j. &amp;nbsp;I feel like something in my TOS environment must have changed, but I can't seem to figure out what that may be. &amp;nbsp;Additionally, I don't understand why this issue is only surfacing with newly created jobs.&lt;BR /&gt;&lt;BR /&gt;I did find that if I add this snippet into a tJava component, that gets rid of the warnings, but then my job output spits out a ton of logging messages, which I don't want/need:&lt;BR /&gt;org.apache.log4j.BasicConfigurator.configure();&lt;BR /&gt;&lt;BR /&gt;Any thoughts or advice?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 17:26:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestClient-and-Log4j-warnings/m-p/2317427#M87872</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2016-08-05T17:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: tRestClient and Log4j warnings</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestClient-and-Log4j-warnings/m-p/2317428#M87873</link>
      <description>In the meantime, I've added a tJava component prior to the subjob that calls the tRestClient component. &amp;nbsp;In that tJava, I now have these two lines:&lt;BR /&gt;org.apache.log4j.BasicConfigurator.configure();&lt;BR /&gt;org.apache.log4j.Logger.getRootLogger().setLevel(org.apache.log4j.Level.INFO);&lt;BR /&gt;&lt;BR /&gt;The first line sets up the log4j configuration, getting rid of the WARN messages. &amp;nbsp;The second line sets the logging level to INFO, getting rid of all of the DEBUG messages that are then generated. &amp;nbsp;This will work for me, but I still don't understand why jobs created prior to a couple days ago had no issues with log4j and why new jobs since then do have these issues.&lt;BR /&gt;very strange...</description>
      <pubDate>Fri, 05 Aug 2016 22:31:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestClient-and-Log4j-warnings/m-p/2317428#M87873</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2016-08-05T22:31:52Z</dc:date>
    </item>
  </channel>
</rss>

