java.sql.SQLException: Scope not recognized
我使用JDBC-LDAP出現java.sql.SQLException: Scope not recognized錯誤,找不到問題在哪裡~~
程式碼如下:
Class.forName("com.octetstring.jdbcLdap.sql.JdbcLdapDriver");
String ldapConnectString ="jdbc:ldap://127.0.0.1:389/";
java.sql.Connection con;
con=DriverManager.getConnection(ldapConnectString,"cn=Manager,dc=guessant,dc=org","secret");
try {
Statement stmt = con.createStatement();
ResultSet rs =
stmt.executeQuery("SELECT * FROM ou=admin");
} catch (Exception e) {
e.printStackTrace();
}
}
程式碼如下:
Class.forName("com.octetstring.jdbcLdap.sql.JdbcLdapDriver");
String ldapConnectString ="jdbc:ldap://127.0.0.1:389/";
java.sql.Connection con;
con=DriverManager.getConnection(ldapConnectString,"cn=Manager,dc=guessant,dc=org","secret");
try {
Statement stmt = con.createStatement();
ResultSet rs =
stmt.executeQuery("SELECT * FROM ou=admin");
} catch (Exception e) {
e.printStackTrace();
}
}
相關文章
- Laravel scope用法Laravel
- AngularJS中監視Scope變數以及外部呼叫Scope方法AngularJS變數
- angular中的scopeAngular
- scope="session"和scope="request"--丟擲異常非常的bug+垃圾Session
- __dirname is not defined in ES module scope
- java.sql.SQLException: Incorrect string valueJavaSQLException
- java.sql.SQLException: 數字溢位JavaSQLException
- 《Spring》(六)---- Bean的scopeSpringBean
- JavaScript:Scope(域)的基本指南JavaScript
- 理解nodejs模組的scopeNodeJS
- java.sql.SQLException: Fail to convert to internal representationJavaSQLExceptionAI
- java.sql.SQLException: Io 異常: Connection refusedJavaSQLException
- fixtrue基礎之scope引數
- 理解vue中的scope的使用Vue
- Spring中的@scope註解Spring
- select SCOPE_IDENTITY()用法IDE
- @@IDENTITY與SCOPE_IDENTITY()IDE
- java.sql.SQLException: The server time zone value ‘???ú±ê×??±??‘ is unrecognized or represents moreJavaSQLExceptionServerZed
- java.sql.SQLException: No value specified for parameter 1 異常分析JavaSQLException
- AngularJS之Scope及ControllerAngularJSController
- Maven依賴scope範圍詳解Maven
- Maven依賴中的scope詳解Maven
- Spring預設的Bean的scopeSpringBean
- Python 作用域(scope) 和 LEGBPython
- 使用PL/Scope分析PL/SQL程式碼SQL
- AngularJS中Scope間通訊DemoAngularJS
- SQL java.sql.SQLException: Parameter metadata not available for the given statementSQLJavaExceptionAI
- Kotlin如何優雅地使用Scope FunctionsKotlinFunction
- Vue作用域插槽 :slot-scope 例項Vue
- vue中style下scope的使用和坑Vue
- Angular JS 自定義指令的scope範圍AngularJS
- angular學習筆記(三十)-指令(8)-scopeAngular筆記
- Spring配置時加scope="prototype"的原因Spring
- Spring-bean作用域scope詳解SpringBean
- SQL @@Identity ,Scope_identity() 作用域SQLIDE
- vue3使用slot-scope報錯Vue
- keycloak~scope客戶端模板的使用客戶端
- java.sql.SQLException:IO 錯誤:Socket read timed out !JavaSQLException