question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Java/JDBC application crashes on assertion failure when using Windows integrated security

See original GitHub issue

Driver version

7.4.1, 8.4.1

SQL Server version

Azure SQL Managed Instance

Client Operating System

Windows Server 2016 amd64 10.0

JAVA/JVM version

Oracle Corporation version 1.8.0_131 64-bit

Problem description

Java application randomly crashes with assertion error when accessing Azure SQL Managed Instance using integrated authentication. The assertion error happens inside sqljdbc_auth.dll (for driver version 7.4.1). When upgrading the JDBC driver and DLL, the same assertion failure is shown for mssql-jdbc_auth-8.4.1.x64.dll.

The issue happens randomly, typically several times a day. It may depend on total volume of connections/queries being executed.

  1. Expected behaviour: No assertion failures.

  2. Actual behaviour: Assertion failure popup when running as command-line. Application crashes when running as Windows service.

  3. Error message/stack trace: No errors are reported from JDBC driver and no errors in log files.

Here is a screenshot of assertion popups: 92528147-d99aca00-f25a-11ea-90df-71149fda4740

  1. Any other details that can be helpful:

We are using 64-bit Java 1.8 and SQL Server JDBC driver.

Client application is basically a multithreaded web server, each thread running SQL Server queries using JDBC driver. A new connection is opened for every query being run.

We are using Windows integrated security with Authentication=ActiveDirectoryIntegrated setting. The application is connecting to Azure SQL Server Managed Instance in a federated environment. There are no issues when connecting to on-prem SQL Server.

JDBC trace logs

We are trying to get more information on this assertion: https://github.com/microsoft/mssql-jdbc/issues/1429

Reproduction code

It’s not easy to reproduce in a test application due to sporadic nature of this failure.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
spncommented, Oct 2, 2020

hi @lilgreenbird I can confirm we had no crashes for more than a week with the driver build that you’ve provided.

We want to take this into production, because production system also suffers from the issue. If this fix works, can it be published as part of official release, to be considered “production-ready”?

1reaction
ulviicommented, Oct 13, 2020

#1441 merged.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Server down due to ASSERTION FAILURE IN JCLEXCEPTION
Java version used by WAS is upgraded to JRE 1.8.0 Windows Server 2016 amd64-64 (build 8.0.6.0 - pwa6480sr6-20191107_01(SR6)). Cause.
Read more >
Xcode 11.1 crashes on launch - assertion failure
Every since updating to xcode 11.1GM I cannot launch xcode without it crashing. It comes up with 'xcode quit unexpectedly' report, ...
Read more >
Informix Announcements - CURSOR Service Distribution
Fix list for Informix Server 11.70.xC9 ; IT02187, ASSERT FAILURE AND CRASH ON PROMOTION OF HDR SECONDARY TO PRIMARY WITH HEURISTICALLY COMPLETED XA...
Read more >
jaydebeapi connect sql server - Lifestyle Coach María Fernanda
Integrated security assumes that you have already been authenticated by Windows. ... allows you to connect from Python to databases using Java JDBC...
Read more >
Security update for javapackages-tools, javassist, mysql-connector ...
Bug#99708 (31510398), mysql-connector-java 8.0.20 ASSERTION FAILED: Unknown message type: 57 s.close. ... WL#14068, Remove legacy integration with JBoss.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found