2017-04-03 22:47:05 Error@/zlz/sell/order/listAction :
org.nutz.ioc.IocException: [orderAction, cachePointCut] # FAIL to create Ioc Bean name=[cachePointCut]
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.integration.autoloadcache.AutoLoadCacheAopConfigration.makeIt(AutoLoadCacheAopConfigration.java:19)
at org.nutz.integration.autoloadcache.AutoLoadCacheAopConfigration.makeIt(AutoLoadCacheAopConfigration.java:1)
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.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.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.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.nutz.lang.born.BorningException: Fail to born 'com.jarvis.cache.redis.ShardedCachePointCut'
by args: [
@(com.jarvis.cache.to.AutoLoadConfig@f5747d)] because: No suitable Constructor or Factory Method!!
at org.nutz.lang.Mirror.getBorning(Mirror.java:954)
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:107)
... 30 more
2 回复
redis-pool.js配置
var ioc = {
jedisPoolConfig : {
type : "redis.clients.jedis.JedisPoolConfig",
fields : {
testWhileIdle : true,
maxTotal : 100
}
},
shardedJedisPool : {
type : "redis.clients.jedis.ShardedJedisPool",
args : [ {
refer : "jedisPoolConfig"
}, [ {
type : "redis.clients.jedis.JedisShardInfo",
args : [ {
java : "$conf.get('redis.host', 'localhost')"
}, 6379, "instance:01" ]
} ] ],
events : {
depose : "destroy"
}
},
autoLoadConfig : {
type : "com.jarvis.cache.to.AutoLoadConfig",
fields : {
threadCnt : 10,
maxElement : 20000,
printSlowLog : true,
slowLoadTime : 500,
sortType : 1,
checkFromCacheBeforeLoad : true,
autoLoadPeriod : 50
}
},
hessianSerializer : {
type : "com.jarvis.cache.serializer.HessianSerializer"
},
cachePointCut : {
type : "com.jarvis.cache.redis.ShardedCachePointCut",
args : [ {
refer : "autoLoadConfig"
} ],
fields : {
serializer : {
refer : "hessianSerializer"
},
shardedJedisPool : {
refer : "shardedJedisPool"
},
namespace : 'test_hessian'
},
events : {
depose : "destroy"
}
}
};
添加回复
请先登陆