NutzCN Logo
问答 引用jedis 连接报错
发布于 2874天前 作者 Rekoe 2269 次浏览 复制 上一个帖子 下一个帖子
标签: jedis
org.nutz.ioc.IocException: [crawlerQueue, redisDao, redis, jedisPool, jedisPoolConfig] # FAIL to create Ioc Bean name=[jedisPoolConfig]
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:149)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:210)
	at org.nutz.ioc.val.ReferValue.get(ReferValue.java:24)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:75)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:210)
	at org.nutz.ioc.val.ReferValue.get(ReferValue.java:24)
	at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:31)
	at org.nutz.ioc.weaver.DefaultWeaver.fill(DefaultWeaver.java:56)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:135)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:210)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:239)
	at org.nutz.ioc.aop.config.impl.AnnotationAopConfigration.makeIt(AnnotationAopConfigration.java:23)
	at org.nutz.ioc.aop.config.impl.AnnotationAopConfigration.makeIt(AnnotationAopConfigration.java:18)
	at org.nutz.ioc.aop.SimpleAopMaker.getInterceptorPairList(SimpleAopMaker.java:117)
	at org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:64)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:36)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:210)
	at org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:26)
	at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:31)
	at org.nutz.ioc.weaver.DefaultWeaver.fill(DefaultWeaver.java:56)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:135)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:210)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:239)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:146)
	at com.rekoe.crawler.webmagic.video.AbstractYoutobeProcessor.process(AbstractYoutobeProcessor.java:83)
	at us.codecraft.webmagic.Spider.processRequest(Spider.java:421)
	at us.codecraft.webmagic.Spider$1.run(Spider.java:322)
	at us.codecraft.webmagic.thread.CountableThreadPool$1.run(CountableThreadPool.java:74)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: Fail to eval Injector for field: 'maxTotal'
	at org.nutz.lang.Lang.wrapThrow(Lang.java:159)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:128)
	... 30 more
Caused by: java.lang.RuntimeException: java.lang.NoSuchFieldException: Can NOT find field [maxTotal] in class [redis.clients.jedis.JedisPoolConfig] and it's parents classes
	at org.nutz.lang.Lang.wrapThrow(Lang.java:176)
	at org.nutz.lang.Mirror.getInjecting(Mirror.java:1048)
	at org.nutz.ioc.weaver.FieldInjector.create(FieldInjector.java:18)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:125)
	... 30 more
Caused by: java.lang.NoSuchFieldException: Can NOT find field [maxTotal] in class [redis.clients.jedis.JedisPoolConfig] and it's parents classes
	at org.nutz.lang.Mirror.getField(Mirror.java:476)
	at org.nutz.lang.Mirror.getInjecting(Mirror.java:1039)
3 回复

版本问题吧

是的, jedis版本太低了吧,估计是

添加回复
请先登陆
回到顶部