JDBC connection error between matlab and sql
19 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I am trying to establish a jdbc connection between matlab 2017a and SQL but I get the following error.
I have added the required paths in the classpath.txt and librarypath.txt respectively
Java version 7: $matlabroot/java/jarext/sqljdbc_6.0/enu/jre7/sqljdbc41.jar
$matlabroot/java/jarext/sqljdbc_6.0/enu/auth/x64
The weird thing is that this works perfectly for other colleagues.
Has anyone encountered this error before?
Thanks!
---------------------------------------------------------------------
Error using database (line 158)
Java exception occurred:
java.lang.UnsatisfiedLinkError: sun.security.ec.ECKeyPairGenerator.getEncodedBytes(J)[B
at sun.security.ec.ECKeyPairGenerator.getEncodedBytes(Native Method)
at sun.security.ec.ECKeyPairGenerator.generateKeyPair(ECKeyPairGenerator.java:132)
at java.security.KeyPairGenerator$Delegate.generateKeyPair(Unknown Source)
at sun.security.ssl.ECDHCrypt.<init>(Unknown Source)
at sun.security.ssl.ClientHandshaker.serverKeyExchange(Unknown Source)
at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)
at sun.security.ssl.Handshaker.processLoop(Unknown Source)
at sun.security.ssl.Handshaker.process_record(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at com.microsoft.sqlserver.jdbc.TDSChannel.enableSSL(IOBuffer.java:1688)
at
com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:1977)
at
com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:1628)
at
com.microsoft.sqlserver.jdbc.SQLServerConnection.connectInternal(SQLServerConnection.java:1459)
at
com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:773)
at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:1168)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at
com.mathworks.toolbox.database.DatabaseConnection.<init>(DatabaseConnection.java:151)
0 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Database Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!