NutzCN Logo
问答 ioc 错
发布于 3154天前 作者 CXW0504 2036 次浏览 复制 上一个帖子 下一个帖子
标签:
org.nutz.ioc.IocException: For object [Redis] - type:[interface org.nutz.aop.MethodInterceptor] 
    	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:201) 
    	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:212) 
    	at org.nutz.ioc.aop.config.impl.AnnotationAopConfigration.getInterceptorPairList(AnnotationAopConfigration.java:35) 
    	at org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:76) 
    	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:34) 
    	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:194) 
    	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:212) 
    	at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:106) 
    	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 com.hgd.mvc.PrivilegeProcessor.process(PrivilegeProcessor.java:48) 
    	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44) 
    	at com.hgd.mvc.LogTimeProcessor.process(LogTimeProcessor.java:24) 
    	at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:40) 
    	at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:64) 
    	at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31) 
    	at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:182) 
    	at com.hgd.action.filter.NUTZHGDfilter.doFilter(NUTZHGDfilter.java:49) 
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) 
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) 
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) 
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) 
    	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) 
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) 
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) 
    	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616) 
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) 
    	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522) 
    	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095) 
    	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672) 
    	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500) 
    	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456) 
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 
    	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) 
    	at java.lang.Thread.run(Unknown Source) 
    Caused by: org.nutz.ioc.ObjectLoadException: Object 'Redis' without define! 
    	at org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:140) 
    	at org.nutz.ioc.loader.cached.CachedIocLoaderImpl.load(CachedIocLoaderImpl.java:47) 
    	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:169) 
    	... 38 more
1 回复

如果是照抄nutzbook的话, 应该是

@Aop("redis")
添加回复
请先登陆
回到顶部