SQL server snap - Unexpected Re-throwing connection error

Hi Community,

I was trying to access SQL server via snaplogic but I wasn’t successful as I was facing an issue with the connection. Below are the two error messages when I tried with different plexes.

Error while validating with groundplex
Failed to validate account: Failed to retrieve a database connection. Cause: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: “Unexpected rethrowing”. (Reason: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: “Unexpected rethrowing”.; Resolution: Address the reported issue.)

Error while validating with cloudplex:
Failed to validate account: Failed to retrieve a database connection. Cause: The TCP/IP connection to the host ***********************, port 1433 has failed. Error: “null. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.”. (Reason: The TCP/IP connection to the host ****************************, port 1433 has failed. Error: “null. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.”.; Resolution: Address the reported issue.)

JDBC drives that I used:

  1. mssql-jdbc-9.4.0.jre8
  2. mssql-jdbc-7.4.1.jre8
  3. mssql-jdbc-10.2.0.jre8.jar
  4. mssql-jdbc-7.4.1.jre11.jar*

Details:
image

I would really appreciate if anyone could help me on this.

Thank you.

Hello Community,

Anyone faced similar issue as I before? Could you share what steps are to be followed to get this resolved this issue.

Thank you.

What is the version of SQL Server that you are connecting to?

Hi @tharunm

You had posted a previous message in community with less information. This connection error is being returned from the SQL server driver. “null” is suspect here, and suggests something isn’t defined or can’t be reached.

It may be a firewall issue. I assume you’ve verified the credentials. Can you verify that you are indeed able to connect to this host and port.

https://social.msdn.microsoft.com/Forums/sqlserver/en-US/1300d370-3736-431b-8912-a0152779453c/unable-to-open-port-no1433?forum=sqlgetstarted

Hi @mbowen and @siwadon,

The current issue I encounter is, I am able to connect the SQL server outside snaplogic but not with snaplogic.

There were two errors, one while using groundplex(which is preferred) and an other using cloudplex.

Also, there are other SQL servers accounts which I’ve created in the past and still working on with them. So, for this account alone I see ‘Unexpected rethrowing’ error.

I really appreciate your responses. Thank you.

A couple things to try on your Groundplex.

  • If you don’t specify a JDBC jar, the SQL Server snap pack will use the jdbc driver bundled with the snap pack (a 4.0 driver). So, try that if you haven’t already.

  • Try adding this property to the Url Properties at the bottom of the account.

trustServerCertificate=true

  • If neither of the above help, let’s trying pinning the TLS version. Add this property to Url Properties. Try v1 then v1.2. I’m not sure of TLS version enabled for 2016 sql server.

    sslProtocol=TLSv1
    OR
    sslProtocol=TLSv1.2

Let us know results.

Hi Bowen,
many thanks for your response.

I have tried again with 4 different JDBC drivers, and also the default ones(by not specifying anything) and also by adding the URL properties as mentioned above, adding one at a time and both of the properties at a time, in my Dev and Test environments on 4 different groundplexes and yet the error remains the same. ‘Unexpected Rethrowing’ as the driver couldn’t establish a secure connection to SQL server.

so, we are still at square one I suppose.

Thanks.

Thank you for trying these things. Frustrating I’m sure. Let me do a little more investigation. I will post another update today. If that doesn’t help you, I’ll recommend creating a support ticket as the next step. This seems configuration or environment related.

1 Like

Unexpected rethrowing” is an SSL exception raised by the Java runtime (v11). A full stack trace would be helpful to troubleshoot this further. I recommend creating a support ticket to resolve this.

At the bottom of iPaaS Solution for the Enterprise | SnapLogic, you’ll see links to our online support portal.

Thanks Bowen,
I really appreciate your effort to help me resolve the issue. I did raise a support ticket last week, and I’m following up with them. No breakthrough. I’ll post here the fix to be done and the root cause to this issue as soon as I get the solution.

Best.

Hello Community,

As the issue is related to firewall, we raised a request the vendor(SQL server) to whitelist our IPs to resolve the persisting issue of re-throwing error.

Thank you.