<?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: Job Automation - Java NoClassDefFoundError in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Job-Automation-Java-NoClassDefFoundError/m-p/2345493#M113010</link>
    <description>&lt;P&gt;I might be wrong, but the symptoms you were describing usually point to user permission issues.&lt;/P&gt;</description>
    <pubDate>Fri, 31 May 2019 11:22:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-05-31T11:22:53Z</dc:date>
    <item>
      <title>Job Automation - Java NoClassDefFoundError</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Job-Automation-Java-NoClassDefFoundError/m-p/2345490#M113007</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;Need some input and help from the community please.&lt;BR /&gt;&lt;BR /&gt;I am using&amp;nbsp;Talend Open Studio&amp;nbsp;Version: 7.1.1 for ESB to help with some workflow, integration and automation.&lt;BR /&gt;&lt;BR /&gt;I have a job that builds a database for phone call analytics for a contact center. The job currently makes use of an QueueMetrics API to poll and get the data for processing via tRestClient, does different data transforms, sorting, aggregating etc. Once it has everything, it pushes the transformed data into a database and reporting can then be done from there.&lt;BR /&gt;&lt;BR /&gt;The process works, the data gets retrieved, transformed and moved where we want it. And all is well. Except...&lt;BR /&gt;&lt;BR /&gt;If I run the job manually on my Windows 10 PC with Talend ESB, it works.&lt;BR /&gt;&lt;BR /&gt;If I build the job, load it onto a linux box (centos 7) and run it manually from there using the *.sh script, it works fine.&lt;BR /&gt;&lt;BR /&gt;But the minute I try and use a cron schedule to run the job on centos to complete the automation portion, it fails, and for the life of me I am unable to see or understand why it fails.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;P&gt;If the job is triggered via cron, then I get:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;Getting callstats from 2019-05-30 to 2019-05-31
[statistics] disconnected
[statistics] disconnected
[statistics] disconnected
[statistics] disconnected
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/PropertyException
        at old_di.reality_ivr_report_0_1.Reality_IVR_Report.tRESTClient_2Process(Reality_IVR_Report.java:8321)
        at old_di.reality_ivr_report_0_1.Reality_IVR_Report.tRESTClient_1Process(Reality_IVR_Report.java:2986)
        at old_di.reality_ivr_report_0_1.Reality_IVR_Report.tJava_1Process(Reality_IVR_Report.java:19717)
        at old_di.reality_ivr_report_0_1.Reality_IVR_Report.tDBConnection_1Process(Reality_IVR_Report.java:23738)
        at old_di.reality_ivr_report_0_1.Reality_IVR_Report.runJobInTOS(Reality_IVR_Report.java:24013)
        at old_di.reality_ivr_report_0_1.Reality_IVR_Report.main(Reality_IVR_Report.java:23833)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.PropertyException
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
        ... 6 more&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;But if I manually run the job, either on Windows 10, or directly via terminal on centos, it works perfectly. Adds the data, sends the required mails etc.&lt;BR /&gt;&lt;BR /&gt;I have checked the java paths and installs, reinstalled java (re/se/jdk), tried both oracle java and OpenJava distros, and still can't get the job to run on a schedule.&lt;BR /&gt;&lt;BR /&gt;Manually, fine, via cron, no go.&lt;BR /&gt;&lt;BR /&gt;Any input, suggestions or help would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:41:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Job-Automation-Java-NoClassDefFoundError/m-p/2345490#M113007</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T05:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Job Automation - Java NoClassDefFoundError</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Job-Automation-Java-NoClassDefFoundError/m-p/2345491#M113008</link>
      <description>&lt;P&gt;I suspect that this is because of the user configuration of the user crontab uses (I believe that is root by default). Have you tried specifying a user for cron to use?&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 10:06:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Job-Automation-Java-NoClassDefFoundError/m-p/2345491#M113008</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-31T10:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Job Automation - Java NoClassDefFoundError</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Job-Automation-Java-NoClassDefFoundError/m-p/2345492#M113009</link>
      <description>&lt;P&gt;Hmmm, no I haven't actually.&lt;BR /&gt;&lt;BR /&gt;I have only been running it in and running it on root. But, I do think you have a point. Let me dig into this first.&lt;BR /&gt;&lt;BR /&gt;This might just be the pointer that I was missing.&lt;BR /&gt;&lt;BR /&gt;Will provide feedback soon.&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 11:14:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Job-Automation-Java-NoClassDefFoundError/m-p/2345492#M113009</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-31T11:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Job Automation - Java NoClassDefFoundError</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Job-Automation-Java-NoClassDefFoundError/m-p/2345493#M113010</link>
      <description>&lt;P&gt;I might be wrong, but the symptoms you were describing usually point to user permission issues.&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 11:22:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Job-Automation-Java-NoClassDefFoundError/m-p/2345493#M113010</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-31T11:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Job Automation - Java NoClassDefFoundError</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Job-Automation-Java-NoClassDefFoundError/m-p/2345494#M113011</link>
      <description>&lt;P&gt;Spot on.&lt;BR /&gt;&lt;BR /&gt;So, this system is used for a variety of different setups and staging at the moment.&lt;BR /&gt;&lt;BR /&gt;Subsequently, it has multiple versions of java on it as well allowing me to move and test different jobs and applications as well as migrated them to see if everything works as planned etc.&lt;BR /&gt;&lt;BR /&gt;Cron use the CentOS default Java&lt;BR /&gt;&lt;BR /&gt;java version "10.0.1" 2018-04-17&lt;BR /&gt;Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)&lt;BR /&gt;Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)&lt;BR /&gt;&lt;BR /&gt;And some of the jobs use Java8.&lt;BR /&gt;&lt;BR /&gt;Even though the path variables have been updated, cron still runs on java version 10 which breaks the job in this case.&lt;BR /&gt;&lt;BR /&gt;Updated the actual job script with the version I want it to use, which basically changes the cron path for the time period in which the job is actually executed, and then release back (for our other tasks and applications) once done.&lt;BR /&gt;&lt;BR /&gt;Thanks. I knew I was missing something silly.&lt;BR /&gt;&lt;BR /&gt;BTW. I had a look at my Windows 10 PC and saw that I am still using Java 8 on there as well at the moment. It has been stable and working fine. Will Talend ESB be ok with a migration to Java 10/11/12?&lt;BR /&gt;&lt;BR /&gt;Last install doc I saw mentioned that the requirement is/was 8. But I haven't found anything listing that it is compatible with 9 and up.&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 12:19:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Job-Automation-Java-NoClassDefFoundError/m-p/2345494#M113011</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-31T12:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Job Automation - Java NoClassDefFoundError</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Job-Automation-Java-NoClassDefFoundError/m-p/2345495#M113012</link>
      <description>&lt;P&gt;For v7.1 only 8 is supported. This will not change for this version. However, newer versions of Talend will support the newer versions of Java. Keep in mind the Java LTS (Long term support) versions as something to pay attention to. I believe the next LTS version after 8 is 11.&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 13:15:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Job-Automation-Java-NoClassDefFoundError/m-p/2345495#M113012</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-31T13:15:50Z</dc:date>
    </item>
  </channel>
</rss>

