<?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: Exception in component tOracleSCD Invalid argument(s) in call: Use setNull for user-defined types and REF types in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-component-tOracleSCD-Invalid-argument-s-in-call-Use/m-p/2307038#M78516</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Any clues?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Flávio.</description>
    <pubDate>Mon, 24 Jul 2017 17:25:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-07-24T17:25:42Z</dc:date>
    <item>
      <title>Exception in component tOracleSCD Invalid argument(s) in call: Use setNull for user-defined types and REF types</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-component-tOracleSCD-Invalid-argument-s-in-call-Use/m-p/2307035#M78513</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Note: I'm using ojdbc7 (Oracle 12c)&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I reading an Oracle Blob (as byte[]), and when trying to write a null value through &amp;nbsp;tOracleSCD I'm getting this error:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Starting job Stg1Led_Norma at 19:07 30/06/2017.&lt;BR /&gt;[statistics] connecting to socket on port 3370&lt;BR /&gt;[statistics] connected&lt;BR /&gt;Exception in component tOracleSCD_1&lt;BR /&gt;java.sql.SQLException: Invalid argument(s) in call: Use setNull(int parameterIndex, int sqlType, String typeName) for user-defined types and REF types&lt;BR /&gt;at oracle.jdbc.driver.OraclePreparedStatement.setNullCritical(OraclePreparedStatement.java:5937)&lt;BR /&gt;at oracle.jdbc.driver.OraclePreparedStatement.setNull(OraclePreparedStatement.java:5818)&lt;BR /&gt;at oracle.jdbc.driver.OraclePreparedStatementWrapper.setNull(OraclePreparedStatementWrapper.java:1292)&lt;BR /&gt;at dw_dileg.stg1led_norma_0_1.Stg1Led_Norma.tOracleInput_3Process(Stg1Led_Norma.java:8375)&lt;BR /&gt;at dw_dileg.stg1led_norma_0_1.Stg1Led_Norma.tOracleInput_1Process(Stg1Led_Norma.java:1890)&lt;BR /&gt;at dw_dileg.stg1led_norma_0_1.Stg1Led_Norma.tOracleRow_2Process(Stg1Led_Norma.java:9858)&lt;BR /&gt;at dw_dileg.stg1led_norma_0_1.Stg1Led_Norma.tOracleRow_1Process(Stg1Led_Norma.java:9669)&lt;BR /&gt;at dw_dileg.stg1led_norma_0_1.Stg1Led_Norma.runJobInTOS(Stg1Led_Norma.java:10602)&lt;BR /&gt;at dw_dileg.stg1led_norma_0_1.Stg1Led_Norma.main(Stg1Led_Norma.java:10212)&lt;BR /&gt;[statistics] disconnected&lt;BR /&gt;Job Stg1Led_Norma ended at 19:08 30/06/2017. [exit code=1]&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The failing java code is :&lt;/P&gt; 
&lt;P&gt;if (NovosOrigemSCD.TEXTOATUALIZADO == null) {&lt;BR /&gt;insertionStatement_tOracleSCD_1&lt;BR /&gt;.setNull(&lt;BR /&gt;15,&lt;BR /&gt;java.sql.Types.ARRAY);&lt;BR /&gt;} else {&lt;BR /&gt;insertionStatement_tOracleSCD_1&lt;BR /&gt;.setBytes(&lt;BR /&gt;15,&lt;BR /&gt;NovosOrigemSCD.TEXTOATUALIZADO);&lt;BR /&gt;}&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;How can I change the code to use&amp;nbsp;&lt;SPAN&gt;java.sql.Types.BLOB and setBlob instead setBytes?&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Flavio.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 23:17:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-in-component-tOracleSCD-Invalid-argument-s-in-call-Use/m-p/2307035#M78513</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-30T23:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in component tOracleSCD Invalid argument(s) in call: Use setNull for user-defined types and REF types</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-component-tOracleSCD-Invalid-argument-s-in-call-Use/m-p/2307036#M78514</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;Could you please post your component tOracleSCD setting screenshot here? In this way, we can get more information from your attachment.&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2017 04:12:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-in-component-tOracleSCD-Invalid-argument-s-in-call-Use/m-p/2307036#M78514</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-03T04:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in component tOracleSCD Invalid argument(s) in call: Use setNull for user-defined types and REF types</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-component-tOracleSCD-Invalid-argument-s-in-call-Use/m-p/2307037#M78515</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;Hope this image can help:&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="details.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lv6o.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130731i6169FDA797FA8C47/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lv6o.png" alt="0683p000009Lv6o.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2017 21:07:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-in-component-tOracleSCD-Invalid-argument-s-in-call-Use/m-p/2307037#M78515</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-05T21:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in component tOracleSCD Invalid argument(s) in call: Use setNull for user-defined types and REF types</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-component-tOracleSCD-Invalid-argument-s-in-call-Use/m-p/2307038#M78516</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Any clues?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Flávio.</description>
      <pubDate>Mon, 24 Jul 2017 17:25:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-in-component-tOracleSCD-Invalid-argument-s-in-call-Use/m-p/2307038#M78516</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-24T17:25:42Z</dc:date>
    </item>
  </channel>
</rss>

