<?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: Exception in thread &amp;quot;main&amp;quot; java.lang.NoClassDefFoundError in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2318423#M143723</link>
    <description>&lt;P&gt;I found the issue. When we build jobs, we always use the same target folder (D:\Deployment) for the compiled jobs, even when we built jobs from different projects. That means that all these jobs from different projects shared the D:\Deployment\lib folder.  So what happened was that every now and then we re-built a job that altered the D:\Deployment\lib\routines.jar and that broke job #2 that was expecting to find someting from that jar that was not there. As a fix we will build jobs to project-specific sub-folders from now on so that the libraries go to different folders e.g. D:\Deployment\LEGAL\lib and D:\Deployment\HR\lib&lt;/P&gt;</description>
    <pubDate>Wed, 04 May 2022 17:46:56 GMT</pubDate>
    <dc:creator>MPT</dc:creator>
    <dc:date>2022-05-04T17:46:56Z</dc:date>
    <item>
      <title>Exception in thread "main" java.lang.NoClassDefFoundError</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2318418#M143718</link>
      <description>&lt;P&gt;&lt;I&gt;Edit: We're using Open Studio 7.3.1&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have an issue  where we run a job every 10 minutes and it occasionally fails with error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Exception in thread "main" java.lang.NoClassDefFoundError: routines/system/RunStat&amp;nbsp;&lt;UL&gt;&lt;LI&gt;at dataintegration.absencesandholidaystotable_1_2. AbsencesAndHolidaysToTable.&amp;lt;init (AbsencesAndHolidaysToTable.java:267)&lt;/LI&gt;&lt;LI&gt;at dataintegration.absencesandholidaystotable_1_2. AbsencesAndHolidaysToTable. main(AbsencesAndHolidaysToTable.java:8925)&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Caused by: java.lang.ClassNotFoundException: routines.system.RunStat&lt;UL&gt;&lt;LI&gt;at java.net.URLClassLoader.findClass(Unknown Source)&lt;/LI&gt;&lt;LI&gt;at java.lang.ClassLoader.loadClass(Unknown Source)&lt;/LI&gt;&lt;LI&gt;at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)&lt;/LI&gt;&lt;LI&gt;at java.lang.ClassLoader.loadClass(Unknown Source)&lt;/LI&gt;&lt;LI&gt;... 2 more&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is difficult to investigate, because it is seemingly random: the job might work at 10:00, 10:10. 10:20 and at fail at 10:30 with the above error, then work again when executed at 10:40. It does not fail daily, but weekly. Usually only once before working again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would image a lock issue should not happen as these are shared libraries right? but we can't figure out what the cause is. &lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:00:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2318418#M143718</guid>
      <dc:creator>MPT</dc:creator>
      <dc:date>2024-11-15T23:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in thread "main" java.lang.NoClassDefFoundError</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2318419#M143719</link>
      <description>&lt;P&gt;@Mikael Toivonen​, which version of studio are you using? I found one same issue had been reported on &lt;A href="https://jira.talendforge.org/browse/TDI-5801" alt="https://jira.talendforge.org/browse/TDI-5801" target="_blank"&gt;Bugtracker&lt;/A&gt;, it is better to create a new jira issue for R&amp;amp;D team to investigate it. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 07:22:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2318419#M143719</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-15T07:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in thread "main" java.lang.NoClassDefFoundError</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2318420#M143720</link>
      <description>&lt;P&gt;The class is not available in Java Classpath.&lt;/P&gt;&lt;P&gt;You might be running your program using the jar command and class was not defined in the manifest file's ClassPath attribute.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 10:12:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2318420#M143720</guid>
      <dc:creator>DWyman1649849953</dc:creator>
      <dc:date>2022-04-15T10:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in thread "main" java.lang.NoClassDefFoundError</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2318421#M143721</link>
      <description>&lt;P&gt;We're using Open Studio 7.3.1. I edited that to the opening post too.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 18:56:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2318421#M143721</guid>
      <dc:creator>MPT</dc:creator>
      <dc:date>2022-04-15T18:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in thread "main" java.lang.NoClassDefFoundError</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2318422#M143722</link>
      <description>&lt;P&gt;We have a Windows task scheduler executing this locally deployed job every 10 minutes. The job functions properly for days - until it doesn't. So the class is in the classpath when be build and deploy the job as a self-executable package. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I will look into if some process of ours might modify the classpath without us realizing it and "sabotaging" the execution of this other job.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 19:03:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2318422#M143722</guid>
      <dc:creator>MPT</dc:creator>
      <dc:date>2022-04-15T19:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in thread "main" java.lang.NoClassDefFoundError</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2318423#M143723</link>
      <description>&lt;P&gt;I found the issue. When we build jobs, we always use the same target folder (D:\Deployment) for the compiled jobs, even when we built jobs from different projects. That means that all these jobs from different projects shared the D:\Deployment\lib folder.  So what happened was that every now and then we re-built a job that altered the D:\Deployment\lib\routines.jar and that broke job #2 that was expecting to find someting from that jar that was not there. As a fix we will build jobs to project-specific sub-folders from now on so that the libraries go to different folders e.g. D:\Deployment\LEGAL\lib and D:\Deployment\HR\lib&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 17:46:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2318423#M143723</guid>
      <dc:creator>MPT</dc:creator>
      <dc:date>2022-05-04T17:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in thread "main" java.lang.NoClassDefFoundError</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2318424#M143724</link>
      <description>&lt;P&gt;@Mikael Toivonen​, thanks for sharing the solution, it is a good clue. &lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 02:28:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2318424#M143724</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-05T02:28:17Z</dc:date>
    </item>
  </channel>
</rss>

