<?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: [resolved] SQLException:Network error IOException: Address already in use in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-SQLException-Network-error-IOException-Address-already/m-p/2195372#M10</link>
    <description>Thanks a lot Shong! I have designed Job as you showed, with only one DB Connection,&amp;nbsp;and now it works! 
&lt;BR /&gt;Just one little question.. I have to&amp;nbsp; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;check the 'use an existing DB connectin' box for every MSSqlServer component (i.e.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;tDBInput_2,&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;tDBOutput_1 and&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;tDBRow_1&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;) or just for the component that updates the SQL Server table (i.e. tDBRow_1)?&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Thanks a lot again!&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt;Giuseppe</description>
    <pubDate>Thu, 17 Sep 2015 10:46:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-09-17T10:46:30Z</dc:date>
    <item>
      <title>[resolved] SQLException:Network error IOException: Address already in use</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-SQLException-Network-error-IOException-Address-already/m-p/2195370#M8</link>
      <description>Hi, 
&lt;BR /&gt;I have a set of Jobs for a migration activity. I execute these Jobs with a single .bat file that contains one call for each of these Jobs.&amp;nbsp; 
&lt;BR /&gt;These Jobs have a MS Access DB as data source and MS SQL Server as destination.&amp;nbsp; 
&lt;BR /&gt;A subset of these Jobs use a MS SQL Server table (that I call Counter Table) in order to get an integer value in it contained, assign it as primary key for a destination table and update this integer value so that it can be used at the next iteration. The text below explain this logic: 
&lt;BR /&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;B&gt;tDBInput_1-&amp;gt;row1(main)-&amp;gt;tFlowToIterate-&amp;gt;tDBInput_2-&amp;gt;row2(main)-&amp;gt;tMap-&amp;gt;out(main)-&amp;gt;tDBOutput_1-&amp;gt;OnComponentOk-&amp;gt;tDBRow_1&lt;/B&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;tDBInput1&amp;nbsp;&lt;/FONT&gt;&lt;/B&gt;is the table where I read the data to migrate in the&amp;nbsp;&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;tDBOuput1&lt;/FONT&gt;&lt;/B&gt;&amp;nbsp;table;&lt;BR /&gt;&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;tDBInput2&amp;nbsp;&lt;/FONT&gt;&lt;/B&gt;is the counter table;&lt;BR /&gt;In the&amp;nbsp;&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;tMap&amp;nbsp;&lt;/FONT&gt;&lt;/B&gt;component&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/B&gt;I set the primary key of&amp;nbsp;&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;tDBOuput1&lt;/FONT&gt;&lt;/B&gt;&amp;nbsp;through&amp;nbsp;&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;row2.integer_value&lt;/FONT&gt;&lt;/B&gt;&amp;nbsp;and the other column through&amp;nbsp;&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;(String)globalMap.get("row1.name")&lt;/FONT&gt;&lt;/B&gt;;&lt;BR /&gt;&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;tDBRow_1&amp;nbsp;&lt;/FONT&gt;&lt;/B&gt;is used to update the&amp;nbsp;&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;integer_value&lt;/FONT&gt;&lt;/B&gt;&amp;nbsp;on&amp;nbsp;&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;tDBInput_2&amp;nbsp;&lt;/FONT&gt;&lt;/B&gt;table;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt;When I run this set of jobs on a machine with MS SQL Server 2014 I have no problems and all works fine.&amp;nbsp; 
&lt;BR /&gt;When I run the same set of jobs on a machine with MS SQL Server 2012, in correspondence of one of this job that use the "Counter Table",&amp;nbsp; I get the following exception on the component responsible of update the integer value of the "Counter Table": 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;I&gt;Exception in component tMSSqlRow_1&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;java.sql.SQLException: Network error IOException: Address already in use: connec&lt;/I&gt; 
&lt;I&gt;t&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at net.sourceforge.jtds.jdbc.ConnectionJDBC2.&amp;lt;init&amp;gt;(ConnectionJDBC2.java&lt;/I&gt; 
&lt;I&gt;:410)&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at net.sourceforge.jtds.jdbc.ConnectionJDBC3.&amp;lt;init&amp;gt;(ConnectionJDBC3.java&lt;/I&gt; 
&lt;I&gt;:50)&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:184)&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.sql.DriverManager.getConnection(Unknown Source)&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.sql.DriverManager.getConnection(Unknown Source)&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at migration.job2_0_1.Job2.tMSSqlRow_1Process(&lt;/I&gt; 
&lt;I&gt;Job2.java:2868)&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at migration.job2_0_1.Job2.tJDBCInput_1Process(&lt;/I&gt; 
&lt;I&gt;Job2.java:2656)&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at migration.job2_0_1.Job2.tWarn_1Process(&lt;/I&gt; 
&lt;I&gt;Job2.java:1222)&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at migration.job2_0_1.Job2.runJobInTOS(&lt;/I&gt; 
&lt;I&gt;Job2.java:4695)&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at migration.job2_0_1.Job2.main(Job2.j&lt;/I&gt; 
&lt;I&gt;ava:4524)&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;Caused by: java.net.BindException: Address already in use: connect&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.DualStackPlainSocketImpl.connect0(Native Method)&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.AbstractPlainSocketImpl.connect(Unknown Source)&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.PlainSocketImpl.connect(Unknown Source)&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.SocksSocketImpl.connect(Unknown Source)&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.Socket.connect(Unknown Source)&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.reflect.Method.invoke(Unknown Source)&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at net.sourceforge.jtds.jdbc.SharedSocket.createSocketForJDBC3(SharedSoc&lt;/I&gt; 
&lt;I&gt;ket.java:307)&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at net.sourceforge.jtds.jdbc.SharedSocket.&amp;lt;init&amp;gt;(SharedSocket.java:257)&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at net.sourceforge.jtds.jdbc.ConnectionJDBC2.&amp;lt;init&amp;gt;(ConnectionJDBC2.java&lt;/I&gt; 
&lt;I&gt;:311)&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ... 9 more&lt;/I&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;In particular, I get this exception on a Job that operates with the same MS Access source table and the same MS SQL Server destination table used by a Job that is executed just before of it. 
&lt;BR /&gt;Now, there are two things that make me very confused: 
&lt;BR /&gt;1) Why I get this exception only on one of the Jobs that use the "Counter Table" (and therefore that carry out the logic explained above) and not on all jobs of this subset? 
&lt;BR /&gt;2) Why I get this exception only when Jobs are executed on the machine with MS SQL Server 2012? Is it related to this version of DBMS? 
&lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Wed, 16 Sep 2015 10:38:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-SQLException-Network-error-IOException-Address-already/m-p/2195370#M8</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-16T10:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] SQLException:Network error IOException: Address already in use</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-SQLException-Network-error-IOException-Address-already/m-p/2195371#M9</link>
      <description>Hi&amp;nbsp; 
&lt;BR /&gt;It creates so many DB connection to server with this job design, refer to the KB 
&lt;A href="https://support.microsoft.com/zh-cn/kb/328476" target="_blank" rel="nofollow noopener noreferrer"&gt;article &lt;/A&gt;on Microsoft website, it exceeds the max number of connections. To resolve this error, you need to modify the these two DB parameters: MaxUserPort and&amp;nbsp;TcpTimedWaitDelay. I think these two parameters have different default value in MS SQL Server 2012 and MS SQL Server 2014. 
&lt;BR /&gt;Another solution is to create only one DB connection, and commit the change in every row. Design the job as below: 
&lt;BR /&gt;tDBconnection 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; | 
&lt;BR /&gt;onsubjobok 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; | 
&lt;BR /&gt;tDBInput_1-&amp;gt;row1(main)-&amp;gt;tFlowToIterate-&amp;gt;tDBInput_2-&amp;gt;row2(main)-&amp;gt;tMap-&amp;gt;out(main)-&amp;gt;tDBOutput_1-&amp;gt;OnComponentOk-&amp;gt;tDBRow_1--OncomponentOK--tDBCommint_1 
&lt;BR /&gt;&amp;nbsp;| 
&lt;BR /&gt;onsubjobok 
&lt;BR /&gt;&amp;nbsp;| 
&lt;BR /&gt;tDBClose 
&lt;BR /&gt;on tDBRow_1: check the 'use an existing DB connectin' box. 
&lt;BR /&gt;on tDBCommit_1: uncheck the 'Close connection' box. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 17 Sep 2015 10:07:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-SQLException-Network-error-IOException-Address-already/m-p/2195371#M9</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-17T10:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] SQLException:Network error IOException: Address already in use</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-SQLException-Network-error-IOException-Address-already/m-p/2195372#M10</link>
      <description>Thanks a lot Shong! I have designed Job as you showed, with only one DB Connection,&amp;nbsp;and now it works! 
&lt;BR /&gt;Just one little question.. I have to&amp;nbsp; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;check the 'use an existing DB connectin' box for every MSSqlServer component (i.e.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;tDBInput_2,&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;tDBOutput_1 and&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;tDBRow_1&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;) or just for the component that updates the SQL Server table (i.e. tDBRow_1)?&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Thanks a lot again!&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt;Giuseppe</description>
      <pubDate>Thu, 17 Sep 2015 10:46:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-SQLException-Network-error-IOException-Address-already/m-p/2195372#M10</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-17T10:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] SQLException:Network error IOException: Address already in use</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-SQLException-Network-error-IOException-Address-already/m-p/2195373#M11</link>
      <description>If they are connecting to the same DB, you can check 'use ....'box on all the components.</description>
      <pubDate>Thu, 17 Sep 2015 10:54:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-SQLException-Network-error-IOException-Address-already/m-p/2195373#M11</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-17T10:54:35Z</dc:date>
    </item>
  </channel>
</rss>

