IMD SolutionComputing LibraryShop main store

Troubleshooting

Cannot create PoolableConnectionFactory: SSL protocol error fix

Edge computing and IIoT Published 7 min read By IMD Solution engineering team

Short answer

The SSL protocol error behind Cannot create PoolableConnectionFactory comes from the legacy sqljdbc4.jar: it proposes no TLS protocol a current Java 8 update still allows, so the JVM aborts the handshake before any packet leaves the host. Replace it with Microsoft's 7.4 jre8 driver on the gateway's Drivers page, keep the class name, and skip the java.security and Schannel registry edits — they act on hops the handshake never reaches.

On this page
  1. Read the error text before touching the network
  2. Where each attempted fix lands
  3. The protocol arithmetic on Ignition 7.9.20, Java 8u333, SQL Server 2019
  4. Swap the driver JAR
  5. If the fault text changes after the swap
  6. The decision for each case
  7. Questions asked

You can stop tuning SQL Server. The Cannot create PoolableConnectionFactory fault on an Ignition 7.9 gateway pointing at SQL Server 2019 is decided inside the gateway's own JVM: the bundled legacy driver JAR proposes no TLS protocol that a current Java 8 update still allows, so the TLS stack aborts the handshake before a single packet leaves the host and the connection pool reports the failure. Replace sqljdbc4.jar with mssql-jdbc-7.4.1.jre8.jar on the gateway's Drivers page, leave the driver class name unchanged, and the connection comes up. The java.security edit and the Schannel registry keys act on hops the handshake never reaches. Below: how to read the error text, why each popular fix lands on the wrong hop, the protocol arithmetic that decides the case, the swap procedure with its rollback, and what to do if the fault text changes.

Read the error text before touching the network #

Cannot create PoolableConnectionFactory is the gateway's connection pool — Apache DBCP — reporting that the first physical connection in its pool never came back. The text in parentheses is the driver's own reason: a Secure Sockets Layer (SSL) encryption failure ending in No appropriate protocol (protocol is disabled or cipher suites are inappropriate).

That string is produced by the JVM's TLS stack, not by the database server, and it is produced when the set of protocols the client may propose is empty — before the first byte is written to the socket. Walk the hops and the fault has exactly one address:

  • Gateway connection pool — reports the fault, does not cause it.
  • JDBC driver JAR loaded by the gateway — fails here: the legacy JAR proposes nothing the JVM still allows.
  • JVM TLS stack — prints the message, but only because it was asked to build a handshake from an empty protocol set.
  • TCP transport to the database port — untouched; a transport fault prints a timeout or a refused connection instead.
  • Schannel at the database host — never reached, because no handshake was ever sent.

If your text is a timeout, a refused connection or an instance-resolution failure rather than the SSL string, you are on the transport path; work from why Ignition cannot connect to a SQL Server Express named instance instead.

Where each attempted fix lands #

Attempted fix Hop it touches Reported outcome on this fault
Remove TLSv1 and TLSv1.1 from jdk.tls.disabledAlgorithms in java.security JVM TLS stack No change; re-enables protocols this JVM should not offer
Add the KB3135244 TLS 1.2 client and server registry keys Schannel at the database host No change; the client never sends a handshake
Replace the legacy JAR with the 7.4 jre8 driver JDBC driver Connection valid, reported on 7.9.20 and on 7.9.12

Two details make the java.security route worse than useless. A 7.9 host often has more than one Java 8 runtime installed, and the gateway service loads the copy inside its own JRE — an edit to another copy changes nothing while looking exactly like progress, which matches the report of the edit producing no improvement. And when the edit does load, it offers TLS 1.0 to every TLS connection that JVM makes, not only this one. Restore the original jdk.tls.disabledAlgorithms line either way.

The registry keys do no harm — the server already negotiates TLS 1.2, and the report confirms the keys changed nothing — but they sit on a hop the handshake never reaches. Leave TLS 1.2 enabled at Schannel and spend no more time there.

The protocol arithmetic on Ignition 7.9.20, Java 8u333, SQL Server 2019 #

This is the worked case; every input comes from the reported installation or the cited documentation:

  • Gateway: Ignition 7.9.20 on Windows 10, running on Java 8u333, with SQL Server 2019 Express on the same host (reported installation).
  • Installed driver: sqljdbc4.jar (reported installation).
  • jdk.tls.disabledAlgorithms on that JVM bans TLSv1 and TLSv1.1 (the reported edit removed exactly those two entries, so they were on the list).
  • Oracle's JDK 8 TLS release note: TLS 1.2 is enabled by default on server sockets but not on clients, so a client connection proposes TLS 1.2 only when the application asks for it.
  • Microsoft's JDBC support matrix: release 7.4 is the first driver release supporting SQL Server 2019, and jre8 builds remain available for Java 8.

The rule in words: a Java TLS client may propose only protocols that the application enabled on its socket and that jdk.tls.disabledAlgorithms has not banned. When that intersection is empty, the TLS stack throws No appropriate protocol (protocol is disabled or cipher suites are inappropriate) before writing a byte.

The arithmetic, as sets:

  • Proposals of the legacy driver on the client side: {TLSv1}. TLS 1.2 cannot be in the set — the JDK 8 note shows the JVM never adds it for clients by itself, and if the old JAR did propose it, the intersection below could not be empty and the handshake would run. TLSv1.1 and SSLv3 are banned outright on this JVM.
  • Protocols still allowed on this JVM: {TLSv1.2}.
  • Usable set = proposals ∩ allowed = {TLSv1} ∩ {TLSv1.2} = { } — the empty set.

Empty set, so the TLS stack aborts before any packet is sent, the driver reports an SSL failure, and the pool wraps it as Cannot create PoolableConnectionFactory. Nothing reached the server, so nothing on the server side — ports, firewall, registry — can change the outcome.

With the replacement driver the proposals become {TLSv1.2}: {TLSv1.2} ∩ {TLSv1.2} = {TLSv1.2}, a non-empty set, the handshake completes, and the connection validates — the reported result of the swap on 7.9.20, and on 7.9.12 against the 2016 and 2019 server releases with the class name left unchanged.

Decision rule: an empty intersection points at the driver, never at the server. A non-empty intersection that still fails produces different text — a timeout or a refusal — and only then is it transport.

Swap the driver JAR #

Work in this order; the rollback is step 1:

  1. Take a gateway backup before touching anything. A gateway backup is a zip archive: rename a copy, extract it, and the folder holding the current JDBC driver is inside, so the previous JAR stays recoverable without hunting for old downloads.
  2. Download mssql-jdbc-7.4.1.jre8.jar from Microsoft's JDBC driver page only — no third-party mirror. Confirm the filename ends in .jre8.jar; a jre11 build will not load under the Java 8 runtime the gateway uses. Resist a jump to a newer line for its own sake: from the 10.x releases the driver encrypts by default, and a JVM that does not hold the database certificate in its trust store refuses the connection — one live system rolled 10.2.1.0 back for exactly that.
  3. In the gateway's web configuration open the Drivers page — Databases > Drivers in the manual — and edit the existing SQL Server driver entry rather than creating a new one. Select the new JAR, keep the driver class name unchanged, and save. If the upload itself errors rather than the connection, that failure has its own causes, covered in page on resolving JDBC driver JAR upload errors in Ignition.
  4. Test the database connection from the connections page and expect the status to read valid.
  5. If the fault persists, read its new text before repeating anything — the swap often unmasks a second fault that was hiding behind the first.

If the fault text changes after the swap #

  • A timeout, a refused connection, or a message that the TCP/IP connection to the host has failed: transport. Enable the TCP/IP protocol for the instance in SQL Server Configuration Manager, set a static TCP port — for example 1433 — restart the SQL Server service, and test the port from the gateway host with Test-NetConnection -ComputerName localhost -Port 1433; then work through the named-instance article above.
  • SQLSTATE 08001 with SSL in the text on an ODBC connection: a different driver stack with a different cause; the ODBC SSL Security error 08001 fix on an edge PC covers that path.
  • The identical SSL message again: verify the driver entry on the Drivers page really shows the new JAR selected, and that the file is the jre8 build rather than a jre11 artifact that never loaded.

The decision for each case #

  • Error text contains No appropriate protocol: legacy driver JAR; swap in the 7.4 jre8 build and stop there — no server-side change applies.
  • Timeout or refusal after the swap: transport; instance TCP settings and a static port, then the named-instance article.
  • Upload error on the Drivers page: JAR-upload fault; separate causes, separate article.
  • java.security already edited: restore the original jdk.tls.disabledAlgorithms line regardless of outcome.

Questions asked

Which driver JAR clears the SSL protocol error on Ignition 7.9 against SQL Server 2019?

Use mssql-jdbc-7.4.1.jre8.jar, downloaded from Microsoft's own JDBC driver page. It is the jre8 build of driver release 7.4, the first release Microsoft's support matrix lists for that server release, and it loads under the Java 8 runtime an Ignition 7.9 gateway runs on. Keep the jre8 artifact: a jre11 build will not load on that runtime.

Why did removing TLSv1 and TLSv1.1 from jdk.tls.disabledAlgorithms not help?

That edit widens what the JVM will allow, but the old driver still proposes nothing the JVM keeps enabled, and the reported installation still failed after the edit. A 7.9 host often has more than one Java 8 runtime, so the edited file may not even be the one the gateway service loads. Even when it loads, it offers TLS 1.0 to every TLS connection in that JVM. Restore the original line and fix the driver instead.

Do I need to change the driver class name when I select the new JAR?

No. Edit the existing driver entry on the Drivers page, select the new JAR file, and leave the class name as configured: the 7.4 driver loads under the same driver class the old sqljdbc4.jar entry used, and the reported successful swap was done with the class name unchanged.

Can a newer driver release also clear the fault?

A newer JAR can clear the same fault plus others: in the reported case the same upgrade resolved a script-console type-mapping error about copying unknown to unknown during a MySQL to SQL Server migration. Treat that as corroboration with the same root cause, the old JAR, not as a guarantee for every migration fault. Newer driver lines also change encryption defaults, so test them outside production first.

Keep reading

  • Troubleshooting

    Fix Ignition SQL Server connection faults after an upgrade

    After an Ignition 8.1.x upgrade, a faulted SQL Server connection is almost never a credentials problem: the new Java runtime disables TLS 1.0 and 1.1 (builds from 8u291), and a Microsoft JDBC driver as old as 4.0 cannot run on it. Read the Gateway exception, then patch SQL Server to TLS 1.2 per KB3135244 or replace the driver; the reported working pair was 9.4 in place of 4.0.

    Edge computing and IIoT

  • Troubleshooting

    Fix a DeltaV embedded trend that shows no PI history

    The error names the chart's own PI history connection, PI1, failing to open — the data is not missing. Process History View working on the same workstation proves the server, network and stored interval are good, so stop cycling hostname, IP and defaulthost and reconcile the chart's Historical Data Server entry and the PI1 connection definition against the viewer's working path.

    Edge computing and IIoT

  • Troubleshooting

    Fix an ODBC SSL Security error 08001 on an edge PC

    The 08001 SSL Security error with ConnectionOpen(SECDoClientHandshake()) fails inside the SQL client's security negotiation, before any login is attempted, so rechecking the server name, database or credentials cannot fix it. Test from the PC that opens the connection, verify the SQL Server endpoint on port 1433, and install a current Microsoft OLE DB or ODBC driver with TLS 1.2 support.

    Edge computing and IIoT

Tag Browse Tree missing from your designer palette