<?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: cannot convert from Object&amp;Serializable&amp;Comparable&amp;lt;?&amp;gt; to Date in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/cannot-convert-from-Object-Serializable-Comparable-lt-gt-to-Date/m-p/2321441#M91471</link>
    <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000006e8LvAAI"&gt;@KrupalGharat&lt;/A&gt;, I have tested your expression and confirmed that this expression will not throw NPE. Please make some testing, remove this expression or column from the output table and run again.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Apr 2020 10:44:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-04-08T10:44:33Z</dc:date>
    <item>
      <title>cannot convert from Object&amp;Serializable&amp;Comparable&lt;?&gt; to Date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cannot-convert-from-Object-Serializable-Comparable-lt-gt-to-Date/m-p/2321432#M91462</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I am converting two strings into date data types but keeping into an error I do not fully comprehend.&lt;BR /&gt;This is my snippet in tMap output into the database:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;PRE&gt;(row1.Week == null || row1.Week == ("")) ? "" : TalendDate.parseDate("MM/dd/yyyy",row1.Week)&amp;nbsp;&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;PRE&gt;Type mismatch: cannot convert from Object&amp;amp;Serializable&amp;amp;Comparable&amp;lt;?&amp;gt; to Date&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;CM&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 20:48:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cannot-convert-from-Object-Serializable-Comparable-lt-gt-to-Date/m-p/2321432#M91462</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-25T20:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: cannot convert from Object&amp;Serializable&amp;Comparable&lt;?&gt; to Date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cannot-convert-from-Object-Serializable-Comparable-lt-gt-to-Date/m-p/2321433#M91463</link>
      <description>Hi,
&lt;BR /&gt;I think it's because TalendDate.parseDate returns a date datatype and the left part of the ternary operator returns a String.
&lt;BR /&gt;
&lt;A href="http://stackoverflow.com/questions/25190374/type-mismatch-in-a-conditional-operator-java" target="_blank" rel="nofollow noopener noreferrer"&gt;http://stackoverflow.com/questions/25190374/type-mismatch-in-a-conditional-operator-java&lt;/A&gt;
&lt;BR /&gt;
&lt;BR /&gt;Regards,
&lt;BR /&gt;TRF</description>
      <pubDate>Thu, 26 Jan 2017 08:19:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cannot-convert-from-Object-Serializable-Comparable-lt-gt-to-Date/m-p/2321433#M91463</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-01-26T08:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: cannot convert from Object&amp;Serializable&amp;Comparable&lt;?&gt; to Date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cannot-convert-from-Object-Serializable-Comparable-lt-gt-to-Date/m-p/2321434#M91464</link>
      <description>Thanks,&lt;BR /&gt;Even when I do&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;row1.Week == ("") ? "" : TalendDate.parseDate("MM/dd/yyyy",row1.Week)&amp;nbsp;&lt;/PRE&gt;&lt;BR /&gt;it still returns the same error. How can I encapsulate the null (blank) and parseDate so the field can be converted to a date type. Any assistance would be appreciated.</description>
      <pubDate>Thu, 26 Jan 2017 14:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cannot-convert-from-Object-Serializable-Comparable-lt-gt-to-Date/m-p/2321434#M91464</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-26T14:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: cannot convert from Object&amp;Serializable&amp;Comparable&lt;?&gt; to Date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cannot-convert-from-Object-Serializable-Comparable-lt-gt-to-Date/m-p/2321435#M91465</link>
      <description>Try&amp;nbsp;&lt;BR /&gt;&lt;PRE&gt;row1.Week == null || "".equals(row1.Week) ? "" : TalendDate.parseDate("MM/dd/yyyy",row1.Week)&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Jan 2017 15:46:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cannot-convert-from-Object-Serializable-Comparable-lt-gt-to-Date/m-p/2321435#M91465</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-01-26T15:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: cannot convert from Object&amp;Serializable&amp;Comparable&lt;?&gt; to Date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cannot-convert-from-Object-Serializable-Comparable-lt-gt-to-Date/m-p/2321436#M91466</link>
      <description>Thanks again but the error persists on my side. I google-fu the error but since it is Talend oriented could not get SO to show anything.</description>
      <pubDate>Thu, 26 Jan 2017 16:50:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cannot-convert-from-Object-Serializable-Comparable-lt-gt-to-Date/m-p/2321436#M91466</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-26T16:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: cannot convert from Object&amp;Serializable&amp;Comparable&lt;?&gt; to Date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cannot-convert-from-Object-Serializable-Comparable-lt-gt-to-Date/m-p/2321437#M91467</link>
      <description>What source and target columns type in tMap?&lt;BR /&gt;&lt;BR /&gt;for example if row1.Week - text, use not == but row1.week.equals("")&lt;BR /&gt;but the best - add full information there, what from left and what from right</description>
      <pubDate>Thu, 26 Jan 2017 23:54:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cannot-convert-from-Object-Serializable-Comparable-lt-gt-to-Date/m-p/2321437#M91467</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2017-01-26T23:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: cannot convert from Object&amp;Serializable&amp;Comparable&lt;?&gt; to Date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cannot-convert-from-Object-Serializable-Comparable-lt-gt-to-Date/m-p/2321438#M91468</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLw9AAG"&gt;@Colleen&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/null"&gt;@TRF&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/005390000067LRbAAM"&gt;@vapukov&lt;/A&gt;&amp;nbsp;,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am facing the same issue.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;When i use&amp;nbsp;(row1.Dat == null || row1.Date.equals(""))?null: (TalendDate.parseDate("yyyy-mm-dd'T'hh:mm:ss.SSS'Z'",row1.Date)) , the I get rid of the error&amp;nbsp;&lt;FONT size="2"&gt;&lt;EM&gt;Object&amp;amp;Serializable&amp;amp;Comparable&amp;lt;?&amp;gt; to Date.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;But now I am getting Null Pointer Exception when value in row1.Date is null.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please reply asap.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 08:47:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cannot-convert-from-Object-Serializable-Comparable-lt-gt-to-Date/m-p/2321438#M91468</guid>
      <dc:creator>KrupalGharat</dc:creator>
      <dc:date>2020-04-08T08:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: cannot convert from Object&amp;Serializable&amp;Comparable&lt;?&gt; to Date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cannot-convert-from-Object-Serializable-Comparable-lt-gt-to-Date/m-p/2321439#M91469</link>
      <description>&lt;A href="https://community.qlik.com/s/profile/0053p000006e8LvAAI"&gt;@KrupalGharat&lt;/A&gt;, can you confirm the NPE is thrown by this expression? Do you have other java code expression? Can you upload a screenshot of tMap? 
&lt;BR /&gt; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 08 Apr 2020 10:02:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cannot-convert-from-Object-Serializable-Comparable-lt-gt-to-Date/m-p/2321439#M91469</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-08T10:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: cannot convert from Object&amp;Serializable&amp;Comparable&lt;?&gt; to Date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cannot-convert-from-Object-Serializable-Comparable-lt-gt-to-Date/m-p/2321440#M91470</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://community.qlik.com/s/profile/00539000004XsnJAAS"&gt;@shong&lt;/A&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Yes,&lt;/STRONG&gt; the Exception is thrown because of the above mentioned Expression (i.e.&amp;nbsp;&lt;SPAN&gt;(row1.Date == null || row1.Date.equals(""))?null: (TalendDate.parseDate("yyyy-mm-dd'T'hh:mm:ss.SSS'Z'",row1.Date)) ).&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Error:&lt;/STRONG&gt;&amp;nbsp;&lt;FONT color="#FF0000"&gt;Exception in component tMap_1&amp;nbsp; &amp;nbsp; java.lang.NullPointerException&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;tMap:&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="test.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9PH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154953iF343C5347F66CF75/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9PH.png" alt="0683p000009M9PH.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 10:27:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cannot-convert-from-Object-Serializable-Comparable-lt-gt-to-Date/m-p/2321440#M91470</guid>
      <dc:creator>KrupalGharat</dc:creator>
      <dc:date>2020-04-08T10:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: cannot convert from Object&amp;Serializable&amp;Comparable&lt;?&gt; to Date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cannot-convert-from-Object-Serializable-Comparable-lt-gt-to-Date/m-p/2321441#M91471</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000006e8LvAAI"&gt;@KrupalGharat&lt;/A&gt;, I have tested your expression and confirmed that this expression will not throw NPE. Please make some testing, remove this expression or column from the output table and run again.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 10:44:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cannot-convert-from-Object-Serializable-Comparable-lt-gt-to-Date/m-p/2321441#M91471</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-08T10:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: cannot convert from Object&amp;Serializable&amp;Comparable&lt;?&gt; to Date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cannot-convert-from-Object-Serializable-Comparable-lt-gt-to-Date/m-p/2321442#M91472</link>
      <description>My bad. In the output component, I had not checked the Nullable checkbox. 
&lt;BR /&gt;Talend should be more precise on which component the error exists. 
&lt;BR /&gt;Thank you 
&lt;A href="https://community.qlik.com/s/profile/00539000004XsnJAAS"&gt;@shong&lt;/A&gt; for your time.</description>
      <pubDate>Wed, 08 Apr 2020 11:28:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cannot-convert-from-Object-Serializable-Comparable-lt-gt-to-Date/m-p/2321442#M91472</guid>
      <dc:creator>KrupalGharat</dc:creator>
      <dc:date>2020-04-08T11:28:01Z</dc:date>
    </item>
  </channel>
</rss>

