<?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: Get error line from java code in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Get-error-line-from-java-code/m-p/2339337#M107491</link>
    <description>&lt;P&gt;As &lt;A href="https://community.qlik.com/s/profile/0053p000007LMrOAAW"&gt;@Dijke&lt;/A&gt;&amp;nbsp;I don't think its really possible. The only (painful) way I can think of is to encapsulate each transformations as a separate try/catch section where you can also capture the column name in question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 May 2018 16:31:02 GMT</pubDate>
    <dc:creator>David_Beaty</dc:creator>
    <dc:date>2018-05-23T16:31:02Z</dc:date>
    <item>
      <title>Get error line from java code</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-error-line-from-java-code/m-p/2339330#M107484</link>
      <description>&lt;P&gt;hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for one help, for example, I have tjavarow component and I am writing a piece of code suppose 500 lines of code. If some error occurs, like, Null pointer exception, I am not understanding where/on which line is failing.&lt;/P&gt;&lt;P&gt;I want to print the code line where error occurred. How to print that code line?&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 21:44:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-error-line-from-java-code/m-p/2339330#M107484</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-22T21:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get error line from java code</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-error-line-from-java-code/m-p/2339331#M107485</link>
      <description>&lt;P&gt;implement this code :&lt;/P&gt;
&lt;PRE&gt;try{&lt;BR /&gt; //your crazy stuff&lt;BR /&gt;&lt;BR /&gt;}catch (Exception e){&lt;BR /&gt;  .... e.getLineNumber();&lt;BR /&gt;}&lt;/PRE&gt;
&lt;P&gt;should do the trick, adjust for your own way.&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 22:34:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-error-line-from-java-code/m-p/2339331#M107485</guid>
      <dc:creator>Jesperrekuh</dc:creator>
      <dc:date>2018-05-22T22:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Get error line from java code</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-error-line-from-java-code/m-p/2339332#M107486</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LMrOAAW"&gt;@Dijke&lt;/A&gt;&amp;nbsp;I don't want line number, I can get thru StackTrace as well. I am looking for the help, where I will get code which causes failure.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Is there any way get the code which causes failure.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;e.g. If you get null pointer exception or some other error, then you can't figure out which column having issue and where it is failing in custom code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 01:17:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-error-line-from-java-code/m-p/2339332#M107486</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-23T01:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get error line from java code</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-error-line-from-java-code/m-p/2339333#M107487</link>
      <description>&lt;P&gt;I doubt its possible...&amp;nbsp;it has to do with java OO and compiler kernel mem allocation.&lt;/P&gt;&lt;P&gt;So within components like tMap they incorporate by catching these nullpointers.&amp;nbsp;&lt;BR /&gt;try and catch ... is the way to do things in java.&amp;nbsp;&amp;nbsp;&lt;A title="Java Exception class" href="https://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html#getCause()" target="_self" rel="nofollow noopener noreferrer"&gt;Java Exception class&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There's something with HashMap in the Exception class, but never used it... I assume something with keep track of memallocation... but no idea!&lt;/P&gt;&lt;P&gt;Would love to hear if you succeed...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Good Luck!&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 02:23:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-error-line-from-java-code/m-p/2339333#M107487</guid>
      <dc:creator>Jesperrekuh</dc:creator>
      <dc:date>2018-05-23T02:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Get error line from java code</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-error-line-from-java-code/m-p/2339334#M107488</link>
      <description>&lt;P&gt;Slightly off topic, but I'd say putting 500 lines of java code in a tJavaRow wasnt a good idea. Consider putting in to a Code routine.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 10:56:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-error-line-from-java-code/m-p/2339334#M107488</guid>
      <dc:creator>David_Beaty</dc:creator>
      <dc:date>2018-05-23T10:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Get error line from java code</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-error-line-from-java-code/m-p/2339335#M107489</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLtjAAG"&gt;@dsoulalioux&lt;/A&gt;, I am already using the code routine. but I have suppose 150 columns and implementing some transformation which I can't write in routine, so it is coming like 500+ lines, so my intention is that is any error occurs get that code line and print, so it will be easy to debug and fix the error.&lt;/P&gt; 
&lt;P&gt;Is there any way I am looking for.&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 16:17:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-error-line-from-java-code/m-p/2339335#M107489</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-23T16:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get error line from java code</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-error-line-from-java-code/m-p/2339336#M107490</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLtjAAG"&gt;@dsoulalioux&lt;/A&gt;&amp;nbsp;I am already using the code routine. but I have suppose 150 columns and implementing some transformation which I can't write in routine, so it is coming like 500+ lines, so my intention is that is any error occurs get that code line and print, so it will be easy to debug and fix the error.&lt;/P&gt; 
&lt;P&gt;Is there any way I am looking for.&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 16:17:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-error-line-from-java-code/m-p/2339336#M107490</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-23T16:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get error line from java code</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-error-line-from-java-code/m-p/2339337#M107491</link>
      <description>&lt;P&gt;As &lt;A href="https://community.qlik.com/s/profile/0053p000007LMrOAAW"&gt;@Dijke&lt;/A&gt;&amp;nbsp;I don't think its really possible. The only (painful) way I can think of is to encapsulate each transformations as a separate try/catch section where you can also capture the column name in question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 16:31:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-error-line-from-java-code/m-p/2339337#M107491</guid>
      <dc:creator>David_Beaty</dc:creator>
      <dc:date>2018-05-23T16:31:02Z</dc:date>
    </item>
  </channel>
</rss>

