<?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>article Some libraries are deleted when a Job is executed in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Some-libraries-are-deleted-when-a-Job-is-executed/ta-p/2151500</link>
    <description>&lt;DIV class="talend-tkb-migrated-content"&gt;&lt;DIV class="lia-message-template-content-zone"&gt; 
 &lt;H2&gt;Symptoms&lt;/H2&gt; 
 &lt;P&gt;You may get the following error when trying to execute a task in Job Conductor:&lt;/P&gt; 
 &lt;PRE&gt;Exception in thread "main" java.lang.NoClassDefFoundError&lt;/PRE&gt; 
 &lt;P&gt;This is because the required Job libraries are missing. The following are two possible causes of this error:&lt;/P&gt; 
 &lt;UL&gt;&lt;LI&gt;The Job script is not exported completely.&lt;/LI&gt;&lt;LI&gt;The Job script is exported completely and deployed to the Job Server correctly. The Job works fine the first time, but the Job fails the second or subsequent time. Some required libraries are deleted.&lt;/LI&gt;&lt;/UL&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;H2&gt;Procedure&lt;/H2&gt; 
 &lt;H3&gt;For the first cause&lt;/H3&gt; 
 &lt;P&gt;Re-generate the Job script and redeploy it to the Job Server.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;H3&gt;For the second cause&lt;/H3&gt; 
 &lt;P&gt;There have been many Jobs deployed to the Job Server. There is a property in the Job Server to set the maximum number of cached libraries to keep. If the total number of libraries exceeds this value, some of the libraries will be deleted. To increase the value of this property to prevent this problem, follow these steps:&lt;/P&gt; 
 &lt;OL&gt;&lt;LI&gt; &lt;P&gt;Go to &lt;STRONG&gt;&lt;EM&gt;Job Server installation dir&lt;/EM&gt;/conf/&lt;/STRONG&gt;, open the &lt;STRONG&gt;TalendJobServer.properties&lt;/STRONG&gt; file, and edit the following property:&lt;/P&gt; &lt;PRE&gt;org.talend.remote.jobserver.commons.config.JobServerConfiguration.MAX_OLD_LIBS=300&lt;/PRE&gt; &lt;P&gt;Change the property to a bigger value, for example:&lt;/P&gt; &lt;PRE&gt;org.talend.remote.jobserver.commons.config.JobServerConfiguration.MAX_OLD_LIBS=350&lt;/PRE&gt; &lt;/LI&gt;&lt;LI&gt; &lt;P&gt;Save the file and restart Job Server.&lt;/P&gt; &lt;/LI&gt;&lt;LI&gt; &lt;P&gt;In the Job Conductor, regenerate the task and redeploy it to the Job Server.&lt;/P&gt; &lt;/LI&gt;&lt;/OL&gt; 
&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 09 Feb 2024 18:22:49 GMT</pubDate>
    <dc:creator>TalendSolutionExpert</dc:creator>
    <dc:date>2024-02-09T18:22:49Z</dc:date>
    <item>
      <title>Some libraries are deleted when a Job is executed</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Some-libraries-are-deleted-when-a-Job-is-executed/ta-p/2151500</link>
      <description>&lt;DIV class="talend-tkb-migrated-content"&gt;&lt;DIV class="lia-message-template-content-zone"&gt; 
 &lt;H2&gt;Symptoms&lt;/H2&gt; 
 &lt;P&gt;You may get the following error when trying to execute a task in Job Conductor:&lt;/P&gt; 
 &lt;PRE&gt;Exception in thread "main" java.lang.NoClassDefFoundError&lt;/PRE&gt; 
 &lt;P&gt;This is because the required Job libraries are missing. The following are two possible causes of this error:&lt;/P&gt; 
 &lt;UL&gt;&lt;LI&gt;The Job script is not exported completely.&lt;/LI&gt;&lt;LI&gt;The Job script is exported completely and deployed to the Job Server correctly. The Job works fine the first time, but the Job fails the second or subsequent time. Some required libraries are deleted.&lt;/LI&gt;&lt;/UL&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;H2&gt;Procedure&lt;/H2&gt; 
 &lt;H3&gt;For the first cause&lt;/H3&gt; 
 &lt;P&gt;Re-generate the Job script and redeploy it to the Job Server.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;H3&gt;For the second cause&lt;/H3&gt; 
 &lt;P&gt;There have been many Jobs deployed to the Job Server. There is a property in the Job Server to set the maximum number of cached libraries to keep. If the total number of libraries exceeds this value, some of the libraries will be deleted. To increase the value of this property to prevent this problem, follow these steps:&lt;/P&gt; 
 &lt;OL&gt;&lt;LI&gt; &lt;P&gt;Go to &lt;STRONG&gt;&lt;EM&gt;Job Server installation dir&lt;/EM&gt;/conf/&lt;/STRONG&gt;, open the &lt;STRONG&gt;TalendJobServer.properties&lt;/STRONG&gt; file, and edit the following property:&lt;/P&gt; &lt;PRE&gt;org.talend.remote.jobserver.commons.config.JobServerConfiguration.MAX_OLD_LIBS=300&lt;/PRE&gt; &lt;P&gt;Change the property to a bigger value, for example:&lt;/P&gt; &lt;PRE&gt;org.talend.remote.jobserver.commons.config.JobServerConfiguration.MAX_OLD_LIBS=350&lt;/PRE&gt; &lt;/LI&gt;&lt;LI&gt; &lt;P&gt;Save the file and restart Job Server.&lt;/P&gt; &lt;/LI&gt;&lt;LI&gt; &lt;P&gt;In the Job Conductor, regenerate the task and redeploy it to the Job Server.&lt;/P&gt; &lt;/LI&gt;&lt;/OL&gt; 
&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Feb 2024 18:22:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Some-libraries-are-deleted-when-a-Job-is-executed/ta-p/2151500</guid>
      <dc:creator>TalendSolutionExpert</dc:creator>
      <dc:date>2024-02-09T18:22:49Z</dc:date>
    </item>
  </channel>
</rss>

