idworker java_accountRecordSnowflakeIdWorker 注入失败

配置文件

accountRecordSnowflakeIdWorker:{

type : 'game.lottery.web.creditadmin.common.util.SnowflakeIdWorker',

args: [ {workerId:1}, {datacenterId:0} ]

}

报错信息

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.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.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.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 game.lottery.web.creditadmin.system.shiro.processor.LogTimeProcessor.process(LogTimeProcessor.java:22)

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:239)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

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.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)

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:142)

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:518)

at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)

at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:673)

at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1526)

at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1482)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

at java.lang.Thread.run(Thread.java:745)

Caused by: org.nutz.castor.FailToCastObjectException: Fail to cast from to for {{workerId=1}} because:

BorningException:Fail to born 'short'

by args: [] because: No suitable Constructor or Factory Method!!

at org.nutz.castor.Castors.cast(Castors.java:264)

at org.nutz.castor.Castors.castTo(Castors.java:318)

at org.nutz.lang.Lang.array2ObjectArray(Lang.java:1123)

at org.nutz.lang.born.Borns.evalWithArgs(Borns.java:97)

at org.nutz.lang.born.Borns.eval(Borns.java:58)

at org.nutz.lang.Mirror.getBorning(Mirror.java:952)

at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:107)

... 55 more

Caused by: org.nutz.lang.born.BorningException: Fail to born 'short'

by args: [] because: No suitable Constructor or Factory Method!!

at org.nutz.lang.Mirror.born(Mirror.java:988)

at org.nutz.lang.Lang.map2Object(Lang.java:1169)

at org.nutz.castor.castor.Map2Object.cast(Map2Object.java:14)

at org.nutz.castor.castor.Map2Object.cast(Map2Object.java:9)

at org.nutz.castor.Castors.cast(Castors.java:252)

... 61 more

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值