{"id":536,"date":"2017-06-17T19:12:59","date_gmt":"2017-06-17T23:12:59","guid":{"rendered":"http:\/\/www.amixa.com\/blog\/?p=536"},"modified":"2017-06-20T21:51:11","modified_gmt":"2017-06-21T01:51:11","slug":"coldfusion-with-postgresql-timeout-issue-when-setting-up-cf-data-source","status":"publish","type":"post","link":"https:\/\/www.amixa.com\/blog\/2017\/06\/17\/coldfusion-with-postgresql-timeout-issue-when-setting-up-cf-data-source\/","title":{"rendered":"Coldfusion with PostgreSQL &#8211; Timeout issue when setting up CF Data source"},"content":{"rendered":"<p>Upon trying to connect to a remote POSTGRESQL database server &#8212; which I can both PING fine and connect to using the Windows POSTGRESQL odbc 32 bit drivers &#8212;<\/p>\n<p>you get this error<\/p>\n<p><span style=\"text-align: left; color: #111111; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: 'Open Sans', verdana, arial, sans-serif; font-size: 15px; font-style: normal; font-weight: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: #ffffff; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;\">Connection verification failed for data source: mytest_post<\/span><br style=\"text-align: left; color: #111111; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: 'Open Sans', verdana, arial, sans-serif; font-size: 15px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; background-color: #ffffff; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;\" \/><span style=\"text-align: left; color: #111111; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: 'Open Sans', verdana, arial, sans-serif; font-size: 15px; font-style: normal; font-weight: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: #ffffff; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;\">java.sql.SQLException: Timed out trying to establish connection<\/span><br style=\"text-align: left; color: #111111; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: 'Open Sans', verdana, arial, sans-serif; font-size: 15px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; background-color: #ffffff; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;\" \/><span style=\"text-align: left; color: #111111; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: 'Open Sans', verdana, arial, sans-serif; font-size: 15px; font-style: normal; font-weight: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: #ffffff; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;\">The root cause was that: java.sql.SQLException: Timed out trying to establish <\/span><span style=\"text-align: left; color: #111111; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: 'Open Sans', verdana, arial, sans-serif; font-size: 15px; font-style: normal; font-weight: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: #ffffff; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;\">connection<\/span><\/p>\n<p>==<\/p>\n<p>Here is the easy fix.\u00a0 (presumtion of CF 10)<\/p>\n<ol>\n<li>make sure you apply the most current CF hotfix\n<ol>\n<li>easy process &#8211; <a href=\"https:\/\/www.malcontentboffin.com\/2016\/10\/ColdFusion-10-Windows-Server-2016-IIS-10.html\">read this blog post<\/a><\/li>\n<\/ol>\n<\/li>\n<li>\u00a0for an &#8220;out-of-the-box&#8221; setup, (noting that CF 10 is running on JRE 6.x), download the JDBC driver version 4.0 (which is for JRE 6.x)\u00a0 <a href=\"https:\/\/jdbc.postgresql.org\/download.html\">here<\/a><\/li>\n<li>\u00a0put that JAR file in the following directory\n<ol>\n<li>C:\\ColdFusion10\\cfusion\\lib<\/li>\n<li>remove the old POSTGRESQL JAR file postgresql-9.3-1101.jdbc41.jar<\/li>\n<li>restart the CF services<\/li>\n<\/ol>\n<\/li>\n<li>Go setup the postgreSQL connection and verify it.\u00a0 Should now give you an &#8220;OK&#8221;<\/li>\n<\/ol>\n<p>This was a NIGHTMARE to sort out.\u00a0 I am hoping this can help someone!<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Upon trying to connect to a remote POSTGRESQL database server &#8212; which I can both PING fine and connect to using the Windows POSTGRESQL odbc 32 bit drivers &#8212; you get this error Connection verification failed for data source: mytest_postjava.sql.SQLException: Timed out trying to establish connectionThe root cause was that: java.sql.SQLException: Timed out trying to establish connection == Here is<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[133,132,8],"class_list":["post-536","post","type-post","status-publish","format-standard","hentry","category-windows-server","tag-coldfusion","tag-coldfusion-10","tag-microsoft-windows-server"],"_links":{"self":[{"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/posts\/536","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/comments?post=536"}],"version-history":[{"count":2,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/posts\/536\/revisions"}],"predecessor-version":[{"id":540,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/posts\/536\/revisions\/540"}],"wp:attachment":[{"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/media?parent=536"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/categories?post=536"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/tags?post=536"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}