<?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: Invalid state, the Statement object is closed in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Invalid-state-the-Statement-object-is-closed/m-p/2228246#M19571</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LM1PAAW"&gt;@Moe&lt;/A&gt;,&lt;/P&gt; 
&lt;P&gt;I too faced the same issue and reducing batch size and running is the temporary solution only.&lt;/P&gt; 
&lt;P&gt;I have also asked for the permanent solution.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 29 May 2017 14:01:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-05-29T14:01:54Z</dc:date>
    <item>
      <title>Invalid state, the Statement object is closed</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Invalid-state-the-Statement-object-is-closed/m-p/2228241#M19566</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am running a job which has a tmssql input and one tmssql output component.&lt;/P&gt;
&lt;P&gt;After running for few minitues my job gets failed with below error.&lt;/P&gt;
&lt;P&gt;I am using Talend Enterprise BigData 5.6.1.&lt;/P&gt;
&lt;P&gt;Checked with Database Team there is no Tunnel down or connection drop happening at that time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Exception in component tMSSqlInput_1&lt;BR /&gt;java.sql.SQLException: Invalid state, the Statement object is closed.&lt;BR /&gt;at net.sourceforge.jtds.jdbc.JtdsStatement.checkOpen(JtdsStatement.java:220)&lt;BR /&gt;at net.sourceforge.jtds.jdbc.JtdsStatement.getConnection(JtdsStatement.java:1207)&lt;BR /&gt;at net.sourceforge.jtds.jdbc.JtdsResultSet.getConnection(JtdsResultSet.java:409)&lt;BR /&gt;at net.sourceforge.jtds.jdbc.JtdsResultSet.close(JtdsResultSet.java:470)&lt;BR /&gt;at net.sourceforge.jtds.jdbc.JtdsStatement.closeCurrentResultSet(JtdsStatement.java:291)&lt;BR /&gt;at net.sourceforge.jtds.jdbc.JtdsStatement.closeAllResultSets(JtdsStatement.java:313)&lt;BR /&gt;at net.sourceforge.jtds.jdbc.JtdsStatement.close(JtdsStatement.java:842)&lt;BR /&gt;at rge_asp.job_to_load_stg_to_aip_vbfa_0_1.job_to_load_Stg_to_AIP_VBFA.tMSSqlInput_1Process(job_to_load_Stg_to_AIP_VBFA.java:2108)&lt;BR /&gt;at rge_asp.job_to_load_stg_to_aip_vbfa_0_1.job_to_load_Stg_to_AIP_VBFA.tMSSqlConnection_2Process(job_to_load_Stg_to_AIP_VBFA.java:1579)&lt;BR /&gt;at rge_asp.job_to_load_stg_to_aip_vbfa_0_1.job_to_load_Stg_to_AIP_VBFA.tMSSqlConnection_1Process(job_to_load_Stg_to_AIP_VBFA.java:1378)&lt;BR /&gt;at rge_asp.job_to_load_stg_to_aip_vbfa_0_1.job_to_load_Stg_to_AIP_VBFA.tFileInputDelimited_1Process(job_to_load_Stg_to_AIP_VBFA.java:1153)&lt;BR /&gt;at rge_asp.job_to_load_stg_to_aip_vbfa_0_1.job_to_load_Stg_to_AIP_VBFA.runJobInTOS(job_to_load_Stg_to_AIP_VBFA.java:2859)&lt;BR /&gt;at rge_asp.job_to_load_stg_to_aip_vbfa_0_1.job_to_load_Stg_to_AIP_VBFA.main(job_to_load_Stg_to_AIP_VBFA.java:2662)&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:43:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Invalid-state-the-Statement-object-is-closed/m-p/2228241#M19566</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T09:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid state, the Statement object is closed</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Invalid-state-the-Statement-object-is-closed/m-p/2228242#M19567</link>
      <description>&lt;P&gt;Depends of your job design, but you have to know that if you're reading the result set of a Select statement and try to engage a transaction (an update for example), the cursor associated to the&amp;nbsp;result set will be closed.&lt;/P&gt;
&lt;P&gt;See this link&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/7263240/invalid-state-the-resultset-object-is-closed" target="_self" rel="nofollow noopener noreferrer"&gt;https://stackoverflow.com/questions/7263240/invalid-state-the-resultset-object-is-closed&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a turnover, try to have 2 separated connections (1 for select, 1 for update).&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 20:38:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Invalid-state-the-Statement-object-is-closed/m-p/2228242#M19567</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-05-26T20:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid state, the Statement object is closed</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Invalid-state-the-Statement-object-is-closed/m-p/2228243#M19568</link>
      <description>&lt;P&gt;Hi TRF,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for the reply.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am reading from a different database and writing in another. So there are two seperate connections created.&lt;/P&gt; 
&lt;P&gt;Also there is no update used just read from source and then truncate load in target.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;Pramod&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 08:00:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Invalid-state-the-Statement-object-is-closed/m-p/2228243#M19568</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-29T08:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid state, the Statement object is closed</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Invalid-state-the-Statement-object-is-closed/m-p/2228244#M19569</link>
      <description>&lt;P&gt;Try by changing Batch size as 50 or 100 at some point it may work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can try this, for me its worked!&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 08:06:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Invalid-state-the-Statement-object-is-closed/m-p/2228244#M19569</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-29T08:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid state, the Statement object is closed</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Invalid-state-the-Statement-object-is-closed/m-p/2228245#M19570</link>
      <description>&lt;P&gt;Hi Sara,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Yes it may work if batch size is reduced but my job pulls about half a million records so it would run for several hours.&lt;/P&gt; 
&lt;P&gt;currently my batch size is 10000 and it takes around 3 hrs to complete.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;Pramod&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 11:30:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Invalid-state-the-Statement-object-is-closed/m-p/2228245#M19570</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-29T11:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid state, the Statement object is closed</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Invalid-state-the-Statement-object-is-closed/m-p/2228246#M19571</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LM1PAAW"&gt;@Moe&lt;/A&gt;,&lt;/P&gt; 
&lt;P&gt;I too faced the same issue and reducing batch size and running is the temporary solution only.&lt;/P&gt; 
&lt;P&gt;I have also asked for the permanent solution.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 14:01:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Invalid-state-the-Statement-object-is-closed/m-p/2228246#M19571</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-29T14:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid state, the Statement object is closed</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Invalid-state-the-Statement-object-is-closed/m-p/2228247#M19572</link>
      <description>&lt;P&gt;I'm experiencing the same issue, but with tMSSqlOutput. I tried to run the job again with no changes in the batch size or any coniguration and it succeeded during the 3rd run.&lt;/P&gt;
&lt;P&gt;I don't know what happened, but now I don't trust the job.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am also looking for advice or help on this. thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Dec 2017 18:20:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Invalid-state-the-Statement-object-is-closed/m-p/2228247#M19572</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-10T18:20:04Z</dc:date>
    </item>
  </channel>
</rss>

