<?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: JDBC Connection closes between  'stmt.execute( ... ) and stmt.executeQuery( ... ) in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/jdbc-connection-closes-between-stmt-execute-and-stmt/m-p/21976#M15004</link>
    <description>&lt;P&gt;@Reto Matter​&amp;nbsp; Are you running a jar job or using dbconnect to run java code? Please provide how are you trying to make a connection and full exception stack trace.&lt;/P&gt;</description>
    <pubDate>Sun, 31 Jul 2022 09:31:21 GMT</pubDate>
    <dc:creator>Noopur_Nigam</dc:creator>
    <dc:date>2022-07-31T09:31:21Z</dc:date>
    <item>
      <title>JDBC Connection closes between  'stmt.execute( ... ) and stmt.executeQuery( ... )</title>
      <link>https://community.databricks.com/t5/data-engineering/jdbc-connection-closes-between-stmt-execute-and-stmt/m-p/21975#M15003</link>
      <description>&lt;P&gt;I'm running a Java application that registers a CSV table with HIVE and then checks the number of rows imported.  Its done in several steps.:&lt;/P&gt;&lt;P&gt;Statement stmt = con.createStatement();&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;stmt.execute( "CREATE TABLE ( &amp;lt;definition&amp;gt; &amp;lt; &amp;gt; );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;ResultSet rs = stmt.executeQuery( "SELECT count(*) as rowCnt from ...... );&lt;/P&gt;&lt;P&gt;while (rs.next()) {&lt;/P&gt;&lt;P&gt;				rows = rs.getLong(1);&lt;/P&gt;&lt;P&gt;			}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As soon as the 2nd statement gets executed I receive an exception &lt;/P&gt;&lt;P&gt;WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.&lt;/P&gt;&lt;P&gt;Apr 27, 2022 12:59:37 PM com.simba.spark.jdbc42.internal.apache.http.impl.execchain.RetryExec execute&lt;/P&gt;&lt;P&gt;INFO: I/O exception (java.net.SocketException) caught when processing request to {s}-&amp;gt;&lt;A href="https://%3Cid%3E.cloud.databricks.com:443" alt="https://%3Cid%3E.cloud.databricks.com:443" target="_blank"&gt;https://&amp;lt;id&amp;gt;.cloud.databricks.com:443&lt;/A&gt;: Connection or outbound has closed&lt;/P&gt;&lt;P&gt;Apr 27, 2022 12:59:37 PM com.simba.spark.jdbc42.internal.apache.http.impl.execchain.RetryExec execute&lt;/P&gt;&lt;P&gt;INFO: Retrying request to {s}-&amp;gt;&lt;A href="https://%3Cid%3E.cloud.databricks.com:443" alt="https://%3Cid%3E.cloud.databricks.com:443" target="_blank"&gt;https://&amp;lt;id&amp;gt;.cloud.databricks.com:443&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas or inputs are appreciated .....&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 20:16:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/jdbc-connection-closes-between-stmt-execute-and-stmt/m-p/21975#M15003</guid>
      <dc:creator>dataAllMyLife</dc:creator>
      <dc:date>2022-04-27T20:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC Connection closes between  'stmt.execute( ... ) and stmt.executeQuery( ... )</title>
      <link>https://community.databricks.com/t5/data-engineering/jdbc-connection-closes-between-stmt-execute-and-stmt/m-p/21976#M15004</link>
      <description>&lt;P&gt;@Reto Matter​&amp;nbsp; Are you running a jar job or using dbconnect to run java code? Please provide how are you trying to make a connection and full exception stack trace.&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jul 2022 09:31:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/jdbc-connection-closes-between-stmt-execute-and-stmt/m-p/21976#M15004</guid>
      <dc:creator>Noopur_Nigam</dc:creator>
      <dc:date>2022-07-31T09:31:21Z</dc:date>
    </item>
  </channel>
</rss>

