<?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: tstatscatcher in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tstatscatcher/m-p/2362298#M126463</link>
    <description>Thanks John. Null Pointer error got resloved. 
&lt;BR /&gt;I have attached tMSSqlConnection, but table was not able to read from connection. 
&lt;BR /&gt;When I hard coded connection parameter,it worked. 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
    <pubDate>Thu, 19 May 2016 09:11:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-05-19T09:11:48Z</dc:date>
    <item>
      <title>tstatscatcher</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tstatscatcher/m-p/2362296#M126461</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I am trying to load jobname,Job execution time,job Stauts in database table using tstatscatcher along with some other values. Flow for loading these details shown below:&lt;BR /&gt;&lt;A href="https://community.talend.com/legacyfs/online/313468/blob.png" target="_blank" rel="noopener"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MFI2.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128905i55526F9662ADB925/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MFI2.png" alt="0683p000009MFI2.png" /&gt;&lt;/span&gt; &lt;/A&gt;&lt;BR /&gt;&lt;STRONG&gt;coding of tjavarow:&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;try {&lt;BR /&gt;&lt;BR /&gt;if(input_row.pid.equals(null))&lt;BR /&gt;output_row.pid = null;&lt;BR /&gt;else&lt;BR /&gt;output_row.pid = StringHandling.BTRIM(input_row.pid);&lt;BR /&gt;&lt;BR /&gt;if (Relational.ISNULL(input_row.moment))&lt;BR /&gt;output_row.moment = null;&lt;BR /&gt;else&lt;BR /&gt;output_row.moment = input_row.moment;&lt;BR /&gt;&lt;BR /&gt;if (Relational.ISNULL(input_row.job))&lt;BR /&gt;output_row.job = "notnull";&lt;BR /&gt;else&lt;BR /&gt;output_row.job = input_row.job;&lt;BR /&gt;&lt;BR /&gt;if (Relational.ISNULL(input_row.message))&lt;BR /&gt;output_row.message = "notnull";&lt;BR /&gt;else&lt;BR /&gt;output_row.message = input_row.message;&lt;BR /&gt;&lt;BR /&gt;if (Relational.ISNULL(input_row.duration))&lt;BR /&gt;&amp;nbsp;output_row.duration = &amp;nbsp;0L;&lt;BR /&gt;else&lt;BR /&gt;output_row.duration = input_row.duration;&lt;BR /&gt;&lt;BR /&gt;if (Relational.ISNULL((Integer) globalMap.get("tMSSqlOutput_2_NB_LINE_INSERTED")))&lt;BR /&gt;output_row.Target_row_count = 0;&lt;BR /&gt;else&lt;BR /&gt;output_row.Target_row_count = (Integer) globalMap.get("tMSSqlOutput_2_NB_LINE_INSERTED");&lt;BR /&gt;&lt;BR /&gt;if (Relational.ISNULL((Integer) globalMap.get("tCassandraInput_2_NB_LINE")))&lt;BR /&gt;output_row.src_row_count = 0;&lt;BR /&gt;else&lt;BR /&gt;output_row.src_row_count = (Integer) globalMap.get("tCassandraInput_2_NB_LINE");&lt;BR /&gt;&lt;BR /&gt;if (Relational.ISNULL((Integer) globalMap.get("tMSSqlOutput_1_NB_LINE_INSERTED")))&lt;BR /&gt;output_row.reject_row_count = 0;&lt;BR /&gt;else&lt;BR /&gt;output_row.reject_row_count = (Integer) globalMap.get("tMSSqlOutput_1_NB_LINE_INSERTED");&lt;BR /&gt;&lt;BR /&gt;if (Relational.ISNULL(context.batch_Id))&lt;BR /&gt;output_row.batch_Id = 0;&lt;BR /&gt;else&lt;BR /&gt;output_row.batch_Id = context.batch_Id;&lt;BR /&gt;&lt;BR /&gt;} catch (Exception e)&lt;BR /&gt;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp; System.out.println("Null value");&lt;BR /&gt;&amp;nbsp;}&lt;BR /&gt;&lt;BR /&gt;While runing this job, I am getting below error but rows are getting inserted in target table with job status as failure.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Error:&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;[statistics] connecting to socket on port 4064&lt;BR /&gt;[statistics] connected&lt;BR /&gt;Exception in component tMSSqlOutput_5&lt;BR /&gt;&lt;STRONG&gt;java.lang.NullPointerException&lt;/STRONG&gt;&lt;BR /&gt;at rsa_dev.job_vault2_ent_ev_agcy_new_0_1.job_Vault2_Ent_Ev_Agcy_New.tStatCatcher_1Process(job_Vault2_Ent_Ev_Agcy_New.java:9656)&lt;BR /&gt;at rsa_dev.job_vault2_ent_ev_agcy_new_0_1.job_Vault2_Ent_Ev_Agcy_New.runJobInTOS(job_Vault2_Ent_Ev_Agcy_New.java:10649)&lt;BR /&gt;at rsa_dev.job_vault2_ent_ev_agcy_new_0_1.job_Vault2_Ent_Ev_Agcy_New.main(job_Vault2_Ent_Ev_Agcy_New.java:10258)&lt;BR /&gt;[FATAL]: rsa_dev.job_vault2_ent_ev_agcy_new_0_1.job_Vault2_Ent_Ev_Agcy_New - tMSSqlOutput_5 null&lt;BR /&gt;[WARN ]: com.datastax.driver.core.FrameCompressor - Cannot find Snappy class, you should make sure the Snappy library is in the classpath if you intend to use it. Snappy compression will not be available for the protocol.&lt;BR /&gt;[WARN ]: com.datastax.driver.core.FrameCompressor - Cannot find LZ4 class, you should make sure the LZ4 library is in the classpath if you intend to use it. LZ4 compression will not be available for the protocol.&lt;BR /&gt;[statistics] disconnected&lt;BR /&gt;Job job_Vault2_Ent_Ev_Agcy_New ended at 14:15 18/05/2016. [exit code=1]&lt;BR /&gt;&lt;BR /&gt;Also, I tried loading this output into excel file instead of table and loading table from this excel, its giving same error.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Data in excel file is below:&lt;/STRONG&gt;&lt;BR /&gt;&lt;A href="https://community.talend.com/legacyfs/online/313468/blob_20160518-0723.png" target="_blank" rel="noopener"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MFIk.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151284i0C053EE6CFFE59C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MFIk.png" alt="0683p000009MFIk.png" /&gt;&lt;/span&gt; &lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Could anyone please tell me, why I am getting null pointer exception error and its solution.&lt;BR /&gt;&lt;BR /&gt;Is there exist any global variable contain value of job execution time, job status?&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Pradanya&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 15:21:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tstatscatcher/m-p/2362296#M126461</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-18T15:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: tstatscatcher</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tstatscatcher/m-p/2362297#M126462</link>
      <description>likely something in your tMSSqlOutput is null when it shouldnt be&amp;nbsp;
&lt;BR /&gt;
&lt;BR /&gt;if youre using context to store connection parameters check if those are null. If you've got "use existing connection" checked and dont have a tMSSqlConnection component in the job this can also cause the issue.&amp;nbsp;</description>
      <pubDate>Wed, 18 May 2016 22:39:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tstatscatcher/m-p/2362297#M126462</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-18T22:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: tstatscatcher</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tstatscatcher/m-p/2362298#M126463</link>
      <description>Thanks John. Null Pointer error got resloved. 
&lt;BR /&gt;I have attached tMSSqlConnection, but table was not able to read from connection. 
&lt;BR /&gt;When I hard coded connection parameter,it worked. 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 19 May 2016 09:11:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tstatscatcher/m-p/2362298#M126463</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-19T09:11:48Z</dc:date>
    </item>
  </channel>
</rss>

