<?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 runs in Windows, but deployed on Linux gives null pointer in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Job-runs-in-Windows-but-deployed-on-Linux-gives-null-pointer/m-p/2309213#M80449</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LNluAAG"&gt;@pfacto&lt;/A&gt;&amp;nbsp;,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I think there is no problem with where you deploy the job. Check your tmap, expression you wrote.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Your output has some null records. Write your expression filters accordingly, if you used some.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I suggest you to use tlogrow , you get the clear idea.!&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;Prabuj&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;/* Don't forget to give Kudos */&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jun 2019 07:09:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-06-28T07:09:18Z</dc:date>
    <item>
      <title>Job runs in Windows, but deployed on Linux gives null pointer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Job-runs-in-Windows-but-deployed-on-Linux-gives-null-pointer/m-p/2309211#M80447</link>
      <description>&lt;P&gt;Hello community,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I've got a job which runs fine on my local Windows environment, but when deployed as a standalone job on a Linux server it throws a null pointer exception.&lt;/P&gt; 
&lt;PRE&gt;Exception in component tDBOutput_2 (import_tlm)
java.lang.NullPointerException
        at uk_energy_market.import_tlm_1_0.import_tlm.tDBInput_2Process(import_tlm.java:1515)
        at uk_energy_market.import_tlm_1_0.import_tlm.tFileFetch_1Process(import_tlm.java:828)
        at uk_energy_market.import_tlm_1_0.import_tlm.runJobInTOS(import_tlm.java:7454)
        at uk_energy_market.import_tlm_1_0.import_tlm.main(import_tlm.java:7259)&lt;/PRE&gt; 
&lt;P&gt;The line it throws the exception on is:&lt;/P&gt; 
&lt;PRE&gt;java.sql.PreparedStatement pstmt_tDBOutput_2 = conn_tDBOutput_2.prepareStatement(insert_tDBOutput_2);&lt;/PRE&gt; 
&lt;P&gt;I'm using a MySQL database, screenshot attached.&lt;/P&gt; 
&lt;P&gt;Any ideas what could be the cause if this exception?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="import_tlm_1.0.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5mm.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135600iD5E10B6739D74B83/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5mm.png" alt="0683p000009M5mm.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;Pierre&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:26:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Job-runs-in-Windows-but-deployed-on-Linux-gives-null-pointer/m-p/2309211#M80447</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T05:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Job runs in Windows, but deployed on Linux gives null pointer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Job-runs-in-Windows-but-deployed-on-Linux-gives-null-pointer/m-p/2309212#M80448</link>
      <description>Hi Pierre 
&lt;BR /&gt;Using a tpreJob to ensure tDBConnection component is always executed first. eg:
&lt;BR /&gt;tPrejob--oncomponentok--tDBConnection
&lt;BR /&gt;
&lt;BR /&gt;other subjobs.
&lt;BR /&gt;
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 28 Jun 2019 04:17:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Job-runs-in-Windows-but-deployed-on-Linux-gives-null-pointer/m-p/2309212#M80448</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-28T04:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Job runs in Windows, but deployed on Linux gives null pointer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Job-runs-in-Windows-but-deployed-on-Linux-gives-null-pointer/m-p/2309213#M80449</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LNluAAG"&gt;@pfacto&lt;/A&gt;&amp;nbsp;,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I think there is no problem with where you deploy the job. Check your tmap, expression you wrote.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Your output has some null records. Write your expression filters accordingly, if you used some.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I suggest you to use tlogrow , you get the clear idea.!&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;Prabuj&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;/* Don't forget to give Kudos */&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 07:09:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Job-runs-in-Windows-but-deployed-on-Linux-gives-null-pointer/m-p/2309213#M80449</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-28T07:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Job runs in Windows, but deployed on Linux gives null pointer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Job-runs-in-Windows-but-deployed-on-Linux-gives-null-pointer/m-p/2309214#M80450</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;I would go by Shong's approach in this scenario since the issue says that the data is not getting connection parameters. So if you are using any connection components, you need to make sure that they are tagged to the PreJob Section using tPreJob Component.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;Also please close the connection in PostJob section so that unnecessary connections are not in open state which will reduce the DB throughput.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 23:11:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Job-runs-in-Windows-but-deployed-on-Linux-gives-null-pointer/m-p/2309214#M80450</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-28T23:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Job runs in Windows, but deployed on Linux gives null pointer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Job-runs-in-Windows-but-deployed-on-Linux-gives-null-pointer/m-p/2309215#M80451</link>
      <description>&lt;P&gt;Thanks guys, this solved it!&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jun 2019 10:54:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Job-runs-in-Windows-but-deployed-on-Linux-gives-null-pointer/m-p/2309215#M80451</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-30T10:54:11Z</dc:date>
    </item>
  </channel>
</rss>

