NutzCN Logo
问答 集成 redis 出错
发布于 2784天前 作者 menglinxi 1639 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk
2017-05-09 16:34:58,749 org.nutz.mvc.impl.processor.FailProcessor.process(FailProcessor.java:28) WARN  - Error@/platform/tracking/plan/channel/allplan :
org.nutz.ioc.IocException: [trackingPlanChannelController, redisService, redis] # FAIL to create Ioc Bean name=[redis]
        at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:149)
        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:60)
        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.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:116)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at cn.wizzer.app.web.commons.processor.GlobalsSettingProcessor.process(GlobalsSettingProcessor.java:36)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at cn.wizzer.app.web.commons.processor.LogTimeProcessor.process(LogTimeProcessor.java:21)
        at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:44)
        at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:67)
        at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
        at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:198)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        at cn.wizzer.app.web.commons.filter.RouteFilter.doFilter(RouteFilter.java:30)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
        at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
        at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
        at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
        at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
        at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
        at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
        at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
        at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
        at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
        at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
        at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
        at org.eclipse.jetty.server.Server.handle(Server.java:499)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:258)
        at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: Fail to eval Injector for field: 'jedisAgent'
        at org.nutz.lang.Lang.wrapThrow(Lang.java:164)
        at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:128)
        ... 62 more
Caused by: java.lang.RuntimeException: java.lang.NoSuchFieldException: Can NOT find field [jedisAgent] in class [org.nutz.integration.jedis.RedisInterceptor] and it's parents classes
        at org.nutz.lang.Lang.wrapThrow(Lang.java:181)
        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)
        ... 62 more
Caused by: java.lang.NoSuchFieldException: Can NOT find field [jedisAgent] in class [org.nutz.integration.jedis.RedisInterceptor] and it's parents classes
        at org.nutz.lang.Mirror.getField(Mirror.java:476)
        at org.nutz.lang.Mirror.getInjecting(Mirror.java:1039)
        ... 64 more
2017-05-09 16:34:58,749 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG -    >> Load definition name=trackingPlanChannelController
2017-05-09 16:34:58,753 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(trackingPlanChannelController) in AnnotationIocLoader(packages=[
cn.wizzer])
2017-05-09 16:34:58,753 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG -    >> Make...'trackingPlanChannelController'<class cn.wizzer.app.web.modules.controllers.platform.trackin
g.TrackingPlanChannelController>
2017-05-09 16:34:58,754 cn.wizzer.app.web.commons.plugin.PluginAopConfigure.getInterceptorPairList(PluginAopConfigure.java:33) DEBUG - skip -- cn.wizzer.app.web.modules.controllers.pl
atform.tracking.TrackingPlanChannelController
2017-05-09 16:34:58,757 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'trackingPlanChannelController' to [app]
2017-05-09 16:34:58,759 org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:64) DEBUG - name=trackingPlanChannelService not found, search for type=cn.wizzer.app.tracking.modules.s
ervices.TrackingPlanChannelService
2017-05-09 16:34:58,759 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'trackingPlanChannelServiceImpl'<interface cn.wizzer.app.tracking.modules.services.TrackingPlanChanne
lService>
2017-05-09 16:34:58,760 org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:64) DEBUG - name=trackingPlanService not found, search for type=cn.wizzer.app.tracking.modules.services
.TrackingPlanService
2017-05-09 16:34:58,760 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'trackingPlanServiceImpl'<interface cn.wizzer.app.tracking.modules.services.TrackingPlanService>
2017-05-09 16:34:58,761 org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:64) DEBUG - name=trackingChannelCbService not found, search for type=cn.wizzer.app.tracking.modules.ser
vices.TrackingChannelCbService
2017-05-09 16:34:58,761 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'trackingChannelCbServiceImpl'<interface cn.wizzer.app.tracking.modules.services.TrackingChannelCbSer
vice>
2017-05-09 16:34:58,761 org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:64) DEBUG - name=trackingPcPricevService not found, search for type=cn.wizzer.app.tracking.modules.serv
ices.TrackingPcPricevService
2017-05-09 16:34:58,762 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'trackingPcPricevServiceImpl'<interface cn.wizzer.app.tracking.modules.services.TrackingPcPricevServi
ce>
2017-05-09 16:34:58,762 org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:64) DEBUG - name=trackingPricevosService not found, search for type=cn.wizzer.app.tracking.modules.serv
ices.TrackingPlanPricevsoService
2017-05-09 16:34:58,762 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'trackingPlanPricevsoServiceImpl'<interface cn.wizzer.app.tracking.modules.services.TrackingPlanPrice
vsoService>
2017-05-09 16:34:58,762 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'redisService'<class cn.wizzer.framework.redis.RedisService>
2017-05-09 16:34:58,762 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG -    >> Load definition name=redisService
2017-05-09 16:34:58,763 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=redisService
2017-05-09 16:34:58,763 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(redisService) in JsonLoader(paths=[config/ioc/])
2017-05-09 16:34:58,763 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG -    >> Make...'redisService'<class cn.wizzer.framework.redis.RedisService>
2017-05-09 16:34:58,763 cn.wizzer.app.web.commons.plugin.PluginAopConfigure.getInterceptorPairList(PluginAopConfigure.java:33) DEBUG - skip -- org.nutz.integration.jedis.RedisService
2017-05-09 16:34:58,764 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'redis'<interface org.nutz.aop.MethodInterceptor>
2017-05-09 16:34:58,764 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG -    >> Load definition name=redis
2017-05-09 16:34:58,765 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=redis
2017-05-09 16:34:58,765 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(redis) in JsonLoader(paths=[config/ioc/])
2017-05-09 16:34:58,765 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG -    >> Make...'redis'<interface org.nutz.aop.MethodInterceptor>
2017-05-09 16:34:58,765 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'redis' to [app]
2017-05-09 16:34:58,765 org.nutz.ioc.impl.ScopeContext.remove(ScopeContext.java:84) DEBUG - Remove object 'redis' from [app]
2017-05-09 16:34:58,766 org.nutz.ioc.impl.ScopeContext.remove(ScopeContext.java:84) DEBUG - Remove object 'trackingPlanChannelController' from [app]
2017-05-09 16:34:58,766 cn.wizzer.app.web.commons.processor.LogTimeProcessor.process(LogTimeProcessor.java:26) DEBUG - [GET ]URI=/platform/tracking/plan/channel 407ms
2017-05-09 16:34:58,767 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'stringUtil'<class cn.wizzer.framework.util.StringUtil>
2017-05-09 16:34:58,767 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'trackingChannelController'<class cn.wizzer.app.web.modules.controllers.platform.tracking.TrackingCha
nnelController>
2017-05-09 16:34:58,767 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG -    >> Load definition name=trackingChannelController
2017-05-09 16:34:58,768 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(trackingChannelController) in AnnotationIocLoader(packages=[cn.w
izzer])
2017-05-09 16:34:58,768 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG -    >> Make...'trackingChannelController'<class cn.wizzer.app.web.modules.controllers.platform.tracking.Tr
ackingChannelController>
2017-05-09 16:34:58,768 cn.wizzer.app.web.commons.plugin.PluginAopConfigure.getInterceptorPairList(PluginAopConfigure.java:33) DEBUG - skip -- cn.wizzer.app.web.modules.controllers.pl
atform.tracking.TrackingChannelController
2017-05-09 16:34:58,777 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'trackingChannelController' to [app]
2017-05-09 16:34:58,778 org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:64) DEBUG - name=trackingChannelService not found, search for type=cn.wizzer.app.tracking.modules.servi
ces.TrackingChannelService
2017-05-09 16:34:58,779 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'trackingChannelServiceImpl'<interface cn.wizzer.app.tracking.modules.services.TrackingChannelService
>
2017-05-09 16:34:58,766 org.nutz.mvc.impl.processor.FailProcessor.process(FailProcessor.java:28) WARN  - Error@/platform/tracking/plan/channel :
org.nutz.ioc.IocException: [trackingPlanChannelController, redisService, redis] # FAIL to create Ioc Bean name=[redis]
        at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:149)
        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:60)
        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.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:116)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at cn.wizzer.app.web.commons.processor.GlobalsSettingProcessor.process(GlobalsSettingProcessor.java:36)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at cn.wizzer.app.web.commons.processor.LogTimeProcessor.process(LogTimeProcessor.java:21)
        at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:44)
        at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:67)
        at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
        at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:198)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        at cn.wizzer.app.web.commons.filter.RouteFilter.doFilter(RouteFilter.java:30)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
        at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
        at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
        at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
        at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
        at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
        at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
        at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
        at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
        at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
        at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
        at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
        at org.eclipse.jetty.server.Server.handle(Server.java:499)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:258)
        at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: Fail to eval Injector for field: 'jedisAgent'
        at org.nutz.lang.Lang.wrapThrow(Lang.java:164)
        at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:128)
        ... 62 more
Caused by: java.lang.RuntimeException: java.lang.NoSuchFieldException: Can NOT find field [jedisAgent] in class [org.nutz.integration.jedis.RedisInterceptor] and it's parents classes
        at org.nutz.lang.Lang.wrapThrow(Lang.java:181)
        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)
        ... 62 more
Caused by: java.lang.NoSuchFieldException: Can NOT find field [jedisAgent] in class [org.nutz.integration.jedis.RedisInterceptor] and it's parents classes
        at org.nutz.lang.Mirror.getField(Mirror.java:476)
        at org.nutz.lang.Mirror.getInjecting(Mirror.java:1039)
        ... 64 more

2017-05-09 16:34:58,740 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=redis
2017-05-09 16:34:58,740 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(redis) in JsonLoader(paths=[config/ioc/])
2017-05-09 16:34:58,742 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG -    >> Make...'redis'<interface org.nutz.aop.MethodInterceptor>
2017-05-09 16:34:58,742 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'redis' to [app]
2017-05-09 16:34:58,748 org.nutz.ioc.impl.ScopeContext.remove(ScopeContext.java:84) DEBUG - Remove object 'redis' from [app]
2017-05-09 16:34:58,748 org.nutz.ioc.impl.ScopeContext.remove(ScopeContext.java:84) DEBUG - Remove object 'trackingPlanChannelController' from [app]

引用方式:

    @Inject
    RedisService redisService;
7 回复

打开RedisInterceptor看看有无jedisAgent属性

var ioc = {
		// 参考 https://github.com/xetorthio/jedis/wiki/Getting-started
		jedisPoolConfig : {
			type : "redis.clients.jedis.JedisPoolConfig",
			fields : {
				testWhileIdle : true, // 空闲时测试,免得redis连接空闲时间长了断线
				maxTotal : {java : "$conf.getInt('redis.maxTotal', 100)"} // 一般都够了吧
			}
		},
		jedisPool : {
			type : "redis.clients.jedis.JedisPool",
			args : [
			        {refer : "jedisPoolConfig"},
			        // 从配置文件中读取redis服务器信息
			        {java : "$conf.get('redis.host', 'localhost')"}, 
			        {java : "$conf.getInt('redis.port', 6379)"}, 
			        {java : "$conf.getInt('redis.timeout', 2000)"}, 
			        {java : "$conf.get('redis.password')"}, 
			        {java : "$conf.getInt('redis.database', 0)"}
			        ],
			fields : {},
			events : {
				depose : "destroy" // 关闭应用时必须关掉呢
			}
		},
		jedisClusterNodes : {
			type : "java.util.HashSet",
			args : [
				[{
					type : "redis.clients.jedis.HostAndPort",
					args : [
						{java : "$conf.get('redis.host', 'localhost')"},
						{java : "$conf.getInt('redis.port', 6379)"}
					]
				}]
			]
		},
		jedisCluster : {
			type : "redis.clients.jedis.JedisCluster",
			args : [
				{refer:"jedisClusterNodes"},
				{refer:"jedisPoolConfig"}
			],
			events : {
				depose : "close"
			}
		},
		redis : {
			type : "org.nutz.integration.jedis.RedisInterceptor",
			fields : {
				jedisAgent : {refer:"jedisAgent"}
			}
		},
		redisService : {
			type : "org.nutz.integration.jedis.RedisService"
		},
		pubSubService : {
			type : "org.nutz.integration.jedis.pubsub.PubSubService",
			fields : {
				jedisAgent : {refer:"jedisAgent"}
			},
			events : {
				depose : "depose"
			}
		},
		jedisAgent : {
			type : "org.nutz.integration.jedis.JedisAgent",
			fields : {
				ioc : {refer:"$ioc"},
				conf : {refer:"conf"}
			}
		},
		jedisClusterWrapper : {
			type : "org.nutz.integration.jedis.JedisClusterWrapper",
			args : [{refer:"jedisCluster"}]
		}
};

在下面已经有注入 jedisAgent了。

用的不是插件吗?? nutz-integration-jedis

如果用的是插件,把这个jedis.js删掉,不需要自己加的

nutz-integration-jedis 用了,这个,但是 nutzwk framework 里有 JedisAgent
JedisClusterWrapper
RedisInterceptor
RedisManager
RedisService

这几个类。。。不知道是不是冲突了。

删掉nutzwk里面的试试

nutzwk更新到最新版本

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