redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
錯誤記錄:
今天用postman傳資料時,給我報出如下異常:redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
再往下看發現原因是:Caused by: redis.clients.jedis.exceptions.JedisDataException: ERR invalid password
檢視配置檔案如下:
檢視JedisPool構造方法如下:
找到原因:JedisPool原始碼的構造方法中引數為poolConfig 、host、 port、 timeout、 password 、database
而我配置檔案中的注入的Bean為poolConfig 、 host 、 port 、 password 、 database 、 timeout
所以修改配置檔案與構造方法中的引數一一對應,就ok了。
相關文章
- jedis異常:Could not get a resource from the pool
- apt could not get lockAPT
- get_data_from_yml
- 資源路由resource index 不是get路由Index
- multiprocessing pool AttributeError: Can't get attribute 'func'Error
- Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'HTTP
- WebLogic啟動報Could not get the server file lockWebServer
- 【故障處理】ORA-65500: could not modify DB_UNIQUE_NAME, resource exists
- pycharm出現Git Pull Failed: Could not read from remote repository.PyCharmGitAIREM
- Broker reports ORA-16858: last communication time from redo source could not beAST
- git@github.com: Permission denied (publickey). fatal: Could not read from remoteGithubREM
- 023 Given an integer n. get the number of 0, 2, 4 from all the values from [0, n]
- Could not find a version that satisfies the requirement py4j (from versions: ) No matching distributUIREM
- Android error “Could not get BatchedBridge, make sure your bundle is packaged properly” on start ofAndroidErrorBATPackage
- Kettle: pentaho-server-ce-9.4 : ERROR [SchemaUpdate] could not get database metadataServerErrorDatabase
- ubuntu解決Could not get lock /var/lib/dpkg/lock-frontendUbuntu
- Linux報錯:Could not get lock /var/lib/dpkg/lock-frontendLinux
- git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.GithubREM
- vue 之 axios 和 vue-resource簡單get請求對比VueiOS
- vue-resource get/post請求如何攜帶cookie的問題VueCookie
- [20201110]How to get the Data Guard broker configuration from a SQL query.txtSQL
- ImportError: cannot import name 'get_ora_doc' from partially initialized moduleImportErrorZed
- Unable to execute SonarScanner analysis: Fail to get bootstrap index from server: Host is unreachable(Host unreachable)AIbootIndexServer
- MySQL案例04:Cause: java.sql.SQLException: Could not retrieve transaction read-only status from serverMySqlJavaExceptionServer
- Error response from daemon: Get "https://registry-1.docker.io/v2/": netErrorHTTPDocker
- large pool
- Git push時報錯:fatal: Could not read from remote repository. Please make sure you have the correct access rightsGitREM
- Laravel Resource Routes和API Resource Routes講解LaravelAPI
- Excel匯入資料異常Cannot get a text value from a numeric cell解決辦法Excel
- golang work poolGolang
- 資料庫事務耗時過長導致Could not retrieve transaction read-only status from server異常資料庫Server
- 【譯】Resource Hints
- Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.1.3/gradle-3HTTPGoAndroidMavenUIGradle
- Hystrix Thread Pool 解析thread
- DUBBO Thread pool is EXHAUSTED!thread
- 共享池 shared pool
- oracle stream pool sizeOracle
- DRM - Dynamic Resource MasteringAST