Maven在连接到SQL时抛出UnsatisfiedLink

时间:2018-09-07 08:50:07

标签: maven

我通过下面的Java代码准备了我的连接

使用调用语句中定义的参数在运行时准备

sql 但是当我使用Maven运行它时,出现以下错误:

  

java.lang.UnsatisfiedLinkError:com.microsoft.sqlserver.jdbc.AuthenticationJNI.SNISecGenClientContext([B [I [BI [B [I [ZLjava / lang / String; Ljava / lang / String; Ljava / lang / String; Ljava / util / logging / Logger;)我           在com.microsoft.sqlserver.jdbc.AuthenticationJNI.SNISecGenClientContext(本机方法)上           在com.microsoft.sqlserver.jdbc.AuthenticationJNI.GenerateClientContext(AuthenticationJNI.java:58)           在com.microsoft.sqlserver.jdbc.SQLServerConnection.SSPIData(SQLServerConnection.java:1924)           在com.microsoft.sqlserver.jdbc.SQLServerConnection.sendLogon(SQLServerConnection.java:2323)           在com.microsoft.sqlserver.jdbc.SQLServerConnection.logon(SQLServerConnection.java:1905)           在com.microsoft.sqlserver.jdbc.SQLServerConnection.access $ 000(SQLServerConnection.java:41)           在com.microsoft.sqlserver.jdbc.SQLServerConnection $ LogonCommand.doExecute(SQLServerConnection.java:1893)           在com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:4575)           在com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:1400)           在com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:1045)           在com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:817)           在com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:700)           在com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:842)           在java.sql.DriverManager.getConnection(DriverManager.java:664)           在java.sql.DriverManager.getConnection(DriverManager.java:270)           在Markit.DBAPICompUtility.Utils.BusinessLogic.getDataFromDB(BusinessLogic.java:236)           在Markit.DBAPICompUtility.Utils.BusinessLogic.procesAPIAndDB(BusinessLogic.java:700)           在Markit.DBAPICompUtility.Benchmarking.BenchmarkingSecurityDetailChartData_Group。(BenchmarkingSecurityDetailChartData_Group.java:58)           在Markit.DBAPICompUtility.Benchmarking.Benchmarking.BenchmarkingSecurityDetailChartData_Group(Benchmarking.java:76)

0 个答案:

没有答案