Troubleshooting
Fixing 'Cannot load JDBC driver class' in Ignition 7.3.9
Short answer
The pool wrapper hides the real fault: java.lang.UnsupportedClassVersionError, major.minor 55.0 — a driver JAR compiled for Java 11 handed to a gateway JVM running Java 6. Remove every competing SQL Server JAR from the JDBC driver folder, restart the gateway, and the next fault, Could not generate DH keypair, shows the TLS stage. On 7.3.9 the documented JVMs are Java 6 or 7, so the durable fix is a tested move to Java 8 or the 8.x upgrade.

On this page
The message everybody reads is the wrapper, and the answer sits one line below it. Cannot load JDBC driver class 'com.microsoft.sqlserver.jdbc.SQLServerDriver' on Ignition 7.3.9 is not a database fault: the details panel carries java.lang.UnsupportedClassVersionError with Unsupported major.minor version 55.0, which means a driver JAR compiled for Java 11 was handed to a gateway JVM running Java 6. The documented requirements for 7.3.9 are Java 6 or 7, so no port, credential or firewall change can alter a bytecode check that fails inside the gateway process. Remove every competing SQL Server driver JAR from the gateway's JDBC folder, restart the gateway, and expect a second fault — the DH keypair failure during TLS — which the JVM and driver pairing, not the database, has to answer.
Read the nested exception, not the pool wrapper #
The connection test runs inside the gateway, so the first frames belong to the pool library: org.apache.commons.dbcp.SQLNestedException raised from org.apache.commons.dbcp.BasicDataSource.createDataSource, then the gateway's own frames such as com.inductiveautomation.ignition.gateway.datasource.DatasourceImpl.runTest, and last and deepest java.lang.UnsupportedClassVersionError: com/microsoft/sqlserver/jdbc/SQLServerDriver : Unsupported major.minor version 55.0. The order matters. The wrapper text cannot distinguish a missing JAR from an unreadable one; the deepest exception can. A class-version error is thrown while the JVM defines the class, before any socket exists: no TCP session, no TLS, no login. Everything the restoration had already verified sits behind that point — TCP/IP enabled on the instance, SQL Server Browser running, mixed mode authentication with the sa login, port 1433 open in Windows Firewall, and a plain localhost connection string. Each is a later stage in the path, so none of them could change this result.
| Deepest exception | Stage reached | Where the fix lives |
|---|---|---|
UnsupportedClassVersionError, major.minor 55.0 |
class loading, before any network call | the driver folder and the gateway JVM |
Could not generate DH keypair inside an SSL encryption error |
TLS handshake, after class loading | the JVM and driver pairing |
| timeout or connection refused | TCP session | listener, port, firewall |
If your deepest frame is a timeout or a refusal instead, the stage is later and the causes differ — why an Ignition Gateway cannot connect to SQL Server LocalDB is the documented example of that branch.
Convert the class file version to a Java release #
Class file versions map to releases by subtraction: from Java 5 through Java 11, the release number is the major version minus 44. Worked example from this case: the nested error showed major.minor 55.0, and 55 - 44 = 11, so the JAR that actually supplied the driver class was compiled for Java 11. The gateway JVM was the oldest documented runtime, whose class file ceiling is 50.0, and 50 - 44 = 6. Because 55 is greater than 50, defineClass refused the class and the pool reported the load failure. That arithmetic is the whole diagnosis.
| Class file major.minor | Bytecode release |
|---|---|
| 50.0 | Java 6 |
| 51.0 | Java 7 |
| 52.0 | Java 8 |
| 55.0 | Java 11 |
The requirement list for 7.3.9 documents Java 6 or 7; Java 8 is reported working but stands as try-and-see, and anything newer than Java 8 definitely will not work — so installing the newest Java to satisfy a modern JAR cannot rescue this gateway, because the gateway itself refuses the runtime. Release labels carry no bytecode level either: drivers labeled 4, 7 and 9 were swapped in without checking each artifact's own requirement, and every attempt produced the same error, because whichever file actually supplied the class was either beyond the JVM or shadowed by an older copy still in the folder. The same driver-versus-Java mismatch decides other plant stacks too: JDBC 1.1 and PI Server 5.6 do not answer Java 8 compatibility is the same failure shape on a historian client.
Clear the JDBC folder and restart the gateway #
Replacing a file does not unload a class the running JVM has already read, and the driver definition screen does not isolate one JAR. The class name com.microsoft.sqlserver.jdbc.SQLServerDriver is identical across releases, so when several SQL Server JARs sit in the loading path, class-loader search order decides which implementation the gateway sees. On this restoration the newer JARs had stayed in the JDBC folder on the filesystem through every driver swap; removing them and restarting the gateway is what moved the error forward.
- Back up the gateway configuration and record the connection and driver settings, so the restore point is known.
- Stop the gateway before touching driver files, and choose the window deliberately: this installation's SQL Bridge module carries plant data in from remote PLCs over cellular modems and writes it to the central SQL database, and that path stops with the JVM.
- Inventory the gateway's JDBC driver folder on the filesystem rather than trusting the driver definition screen; current manuals show each driver JAR inside its own extracted, version-numbered folder.
- Identify every JAR that supplies the SQL Server driver class.
- Move all but one of them out of the gateway's driver-loading locations, keeping the removed copies elsewhere for rollback; leave unrelated database drivers in place.
- Keep the one artifact whose documented Java requirement matches the gateway's JVM.
- Restart the gateway so the JVM reads the folder again. If it fails to come back cleanly, a wrapper failing to restart a hung JVM is a separate documented fault.
- Re-test the connection and read the new deepest exception.
One JAR per driver family is the standing rule, and the same discipline behind resolving JDBC driver JAR upload errors in Ignition keeps other database engines on a single artifact.
The second stopping point: the DH keypair handshake #
After the folder was cleaned and the gateway restarted, the error changed to Cannot create PoolableConnectionFactory (The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "java.lang.RuntimeException: Could not generate DH keypair".). That is progress, not regression: class loading succeeded, the driver opened the session, SQL Server asked for an encrypted connection, and the JVM failed while generating the Diffie-Hellman keypair for the handshake. The fault moved from the gateway's class path to its cryptography.
Two documented facts fix this branch. A sufficiently updated Java 7 or 8 build completes the handshake, and the driver-side fix for the keypair failure is reported in the 4.2 release, which loads on Java 7 but not on the older runtime — so the oldest documented runtime has no way through this engine's encryption. On Java 8 the pairing still has to be proven on the gateway itself, because the requirement list pins 7.3.9 to the two oldest runtimes and reports Java 8 only as try-and-see. The same handshake failure reaches other clients under other codes: on an ODBC client it is the SSL security error 08001 on an edge PC, with the same conclusion that the client's TLS stack is the failing stage.
The decision for each case #
Case 1 — the 7.3.9 gateway stays where it is: clean the driver folder, keep the 4.0-era driver the installer shipped, and accept that it reaches older SQL Server engines, not every newer one. The JVM side and the engine side narrow together; a pairing that satisfies both this gateway generation and a newer engine is unlikely to exist.
Case 2 — the restored gateway must reach a newer engine: test Java 8 on the gateway with a 4.2-era driver. Prove gateway startup, module load, and the SQL Bridge acquisition and write path on that JVM before trusting it; if all three run clean, that is the ceiling of this legacy installation.
Case 3 — the system is a production restoration with an upgrade in scope: move to 8.x, where a supported JVM and current drivers are the documented pairing, and test the leap first, because 7.3 to 8.1 changed a great deal in between; connection faults that surface after that move are their own subject, covered by fixing Ignition SQL Server connection faults after an upgrade. On the original stack, the verified database settings were never the fault — TCP/IP, the Browser service, port 1433, mixed mode and the sa login all sit after a class-loading stage that never passed.
Questions asked
How do I tell which Java runtime the gateway service actually uses?
Read the runtime the running gateway itself reports, not the version a command prompt returns. On a Windows host, a console session and the gateway service can resolve to different Java installations, so the number returned by a java -version command is not proof of what the gateway process loaded. Record the service launch configuration and the JVM version the gateway reports at startup before you replace a driver JAR.
Can a 7.3 gateway on its oldest documented runtime still reach a newer SQL Server engine?
Realistically, no. The 4.0-era driver the 7.3.9 installer ships works with older SQL Server engines but not some newer ones, and the drivers built for newer engines are compiled for bytecode levels the documented runtimes refuse to load. Microsoft's support matrix ties each driver release to specific engine versions, so check it for your pairing, but expect the upgrade path to be the answer.
Is Java 8 a supported runtime for Ignition 7.3.9?
The documented requirement is Java 6 or 7. Java 8 is a try-and-see: it has been reported working, but the requirements do not promise it, so test gateway startup, module load, and the database connection on the target host before committing. Anything newer than Java 8 definitely will not work, which is why installing the newest JVM cannot rescue a legacy gateway that needs a modern driver JAR.
Would a clean reinstall of 7.3.9 clear the fault?
Restoring the backup into a clean 7.3.9 install wipes leftover driver JARs from the filesystem, so at minimum it produces a different error if files in the old installation were shadowing the driver. It does not change the JVM and driver ceiling, though: the same bytecode limit and the same handshake limit apply to the fresh install.
What must be tested before moving the client to 8.x?
Treat 7.3 to 8.1 as a big leap; a lot changed between them. Test gateway startup, each module, and the SQL Bridge path — data in from the remote PLCs over the cellular modems and writes into the central database — on a trial host before the production cutover. If a connection fault appears after the move, it has its own documented causes and fixes.


