Skip to content

Prevent MS SQL Server JDBC Driver from implicitly passing JAXB dependencies in unit tests#36261

Merged
menghaoranss merged 1 commit into
apache:masterfrom
linghengqian:ms-sql
Aug 12, 2025
Merged

Prevent MS SQL Server JDBC Driver from implicitly passing JAXB dependencies in unit tests#36261
menghaoranss merged 1 commit into
apache:masterfrom
linghengqian:ms-sql

Conversation

@linghengqian

Copy link
Copy Markdown
Member

For #26041 .

Changes proposed in this pull request:

Error:  Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 76.12 s <<< FAILURE! -- in org.apache.shardingsphere.test.natived.jdbc.databases.SQLServerTest
Error:  org.apache.shardingsphere.test.natived.jdbc.databases.SQLServerTest.assertShardingInLocalTransactions -- Time elapsed: 76.11 s <<< ERROR!
java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter
	at com.microsoft.sqlserver.jdbc.SQLServerConnection.sendLogon(SQLServerConnection.java:3984)
	at com.microsoft.sqlserver.jdbc.SQLServerConnection.logon(SQLServerConnection.java:3097)
	at com.microsoft.sqlserver.jdbc.SQLServerConnection.access$100(SQLServerConnection.java:82)
	at com.microsoft.sqlserver.jdbc.SQLServerConnection$LogonCommand.doExecute(SQLServerConnection.java:3061)

Before committing this PR, I'm sure that I have checked the following options:

  • My code follows the code of conduct of this project.
  • I have self-reviewed the commit code.
  • I have (or in comment I request) added corresponding labels for the pull request.
  • I have passed maven check locally : ./mvnw clean install -B -T1C -Dmaven.javadoc.skip -Dmaven.jacoco.skip -e.
  • I have made corresponding changes to the documentation.
  • I have added corresponding unit tests for my changes.
  • I have updated the Release Notes of the current development version. For more details, see Update Release Note

@linghengqian linghengqian marked this pull request as ready for review August 12, 2025 01:19
@linghengqian linghengqian added this to the 5.5.3 milestone Aug 12, 2025
@menghaoranss menghaoranss merged commit bf39b7d into apache:master Aug 12, 2025
147 checks passed
@linghengqian linghengqian deleted the ms-sql branch August 12, 2025 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants