redis.clients java_redis报错redis/clients/jedis/JedisPoolConfig'(curren
redis + Jedis + Spring报错Type 'redis/clients/jedis/JedisPoolConfig'(current frame, stack[4]) is not a
redis + Jedis + Spring集成之后运行报以下错误:
log4j:WARNNo appenders could be found for logger(org.springframework.core.env.StandardEnvironment).
log4j:WARNPlease initialize the log4j system properly.
SLF4J:Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J:Defaulting to no-operation (NOP) logger implementation
SLF4J:See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Exceptionin thread "main" java.lang.VerifyError: Bad type on operand stack
ExceptionDetails:
Location:
org/springframework/data/redis/connection/jedis/JedisConnectionFactory.createRedisSentinelPool(Lorg/springframework/data/redis/connection/RedisSentinelConfiguration;)Lredis/clients/util/Pool;@57: invokespecial
Reason:
Type 'redis/clients/jedis/JedisPoolConfig'(current frame, stack[4]) is not assignable to'org/apache/commons/pool2/impl/GenericObjectPoolConfig'
Current Frame:
bci: @57
flags: { }
locals: {'org/springframework/data/redis/connection/jedis/JedisConnectionFactory','org/springframework/data/redis/connection/RedisSentinelConfiguration' }
stack: { uninitialized 0, uninitialized 0,'java/lang/String', 'java/util/Set', 'redis/clients/jedis/JedisPoolConfig',integer, 'java/lang/String' }
Bytecode:
0000000: bb00 2359 2bb6 0024 b900 2501 002a2bb6
0000010: 0026 b700 272a b600 28c6 000a 2ab60028
0000020: a700 0abb 0007 59b7 0008 2a2a b60012b7
0000030: 0029 2ab6 0012 b600 2ab7 002bb0
Stackmap Table:
full_frame(@35,{Object[#151],Object[#152]},{Uninitialized[#0],Uninitialized[#0],Object[#172],Object[#173]})
full_frame(@42,{Object[#151],Object[#152]},{Uninitialized[#0],Uninitialized[#0],Object[#172],Object[#173],Object[#153]})
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2532)
at java.lang.Class.getDeclaredConstructors(Class.java:1901)
atorg.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:234)
atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1040)
atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1013)
atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
atorg.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304)
atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300)
atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)
atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:700)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760)
atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
at com.alifi.uums.start.StartApp.main(StartApp.java:22)
最后定位原因是因为jar包版本的原因,修改之前的jar包为:
jedis-2.1.0.jar + spring-data-redis-1.7.1.RELEASE.jar
最后决定将jedis-2.1.0.jar升级为jedis-2.9.0.jar
重新启动项目就没报错了
redis.clients java_redis报错redis/clients/jedis/JedisPoolConfig'(curren相关推荐
- Linux/ubuntu 安装 redis 4.0报错解决:redis-server.service: Can't open PID file /var/run/redis/redis-server.
此文首发于我的个人博客:Linux/ubuntu 安装 redis 4.0报错解决:redis-server.service: Can't open PID file /var/run/redis/r ...
- Redis服务停止报错解决方案[NOAUTH Authentication required]
Redis服务停止报错解决方案[NOAUTH Authentication required] 参考文章: (1)Redis服务停止报错解决方案[NOAUTH Authentication requi ...
- laravel5.7的redis配置,一直报错Class 'Predis\Client' not found
laravel5.7的redis配置,一直报错Class 'Predis\Client' not found 首先我检查了配置,和composer 都没有错,用原生的redis也可以正常连接和读写. ...
- Redis安装+启动报错
Redis安装+启动报错 首先Windows下安装 下载地址:https://github.com/MSOpenTech/redis/releases%E3%80%82 redis官方不支持wind ...
- linux:redis安装、报错 oO0OoO0OoO0Oo
redis安装 下载 wget https://download.redis.io/releases/redis-4.0.2.tar.gz 解压源码包 tar xzf redis-4.0.2.tar. ...
- 解决Redis报错Redis is configured to save RDB snapshots, but it is currently not able to persist on disk
Redis报错信息 在Spring Boot中集成Redis客户之后,进行数据操作,发现报如下错误: org.springframework.data.redis.RedisSystemExcepti ...
- 解决Redis 连接池报错:ERR max number of clients reached
前言 redis maxclients 是redis server的重要配置,它决定了客户端的最大连接数量,最大客户端连接数量.由于redis不区分连接是客户端连接还是内部打开文件或者和slave连接 ...
- 关于java.lang.NumberFormatException: For input string:${redis.maxIdle}的报错
项目通用文件配置目录 reids配置文件 <?xml version="1.0" encoding="UTF-8"?> <beans xmln ...
- linux 32位redis安装,CentOS 5.5 32位上安装Redis 2.6报错解决
之前在FreeBSD7.4上安装很顺利就安装了,但这次在CentOS 5.5上安装时遇到了如下问题 zmalloc.o: In function zmalloc_used_memory': /home ...
最新文章
- map平均准确率_MAP(Mean Average Precision)
- 使用PaupGUI软件合并一致性树consensus tree
- 统计substr在母串中出现次数/删除字符串中所有空格
- beangle commons 4.0.0 release
- 第六章 深度学习(中下)
- mysql删除索引 增加索引
- C#多线程时对同一资源加锁实现互斥访问
- 用express、mongodb、nodejs开发简单的登陆
- 如何从0-1制作数据大屏,我用大白话给你解释清楚了
- IntelliJ IDEA 2017.3-2018.1 全系列汉化包
- 使用Jacob自动替换书签内容
- HDU3404POJ3533(Nim积摸版)
- VC++利用微软msxml3.dll创建xml文件
- html表格美化模板,JavaScript + CSS 美化出的条纹表格样式
- ssh passphrase 测试
- 正则表达式(BREs,EREs,PREs)差异比较
- 局域网文件共享需要打开服务器,局域网共享工具有什么用怎么开启
- 软件工程 - 项目管理
- Android 自定义加载Dialog 运行效果流畅
- html微信浏览器缩略图,微信内通过自带浏览器分享网页到朋友圈如何显示缩略图...