NutzCN Logo
问答 IocException:null for object [sysLogService] ,这个类已经声明了IocBean注解,并且这个类我也没改过,程序之前能正常运行。
发布于 3025天前 作者 gaohuijue 1733 次浏览 复制 上一个帖子 下一个帖子
标签:

错误信息如下:

2016-09-10 16:40:15,608 org.nutz.ioc.impl.ScopeContext.remove(ScopeContext.java:79) DEBUG - Remove object 'sysLogService' from [app] 
2016-09-10 16:40:15,608 org.nutz.ioc.impl.ScopeContext.remove(ScopeContext.java:79) DEBUG - Remove object '$aop_syslog' from [app] 
九月 10, 2016 4:40:15 下午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter nutz
java.lang.ExceptionInInitializerError
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
	at org.nutz.lang.born.EmptyArgsConstructorBorning.born(EmptyArgsConstructorBorning.java:16)
	at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
	at org.nutz.lang.Mirror.born(Mirror.java:988)
	at org.nutz.mvc.impl.Loadings.evalObj(Loadings.java:322)
	at org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:268)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:119)
	at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
	at org.nutz.mvc.NutFilter.init(NutFilter.java:78)
	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4908)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5602)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1572)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1562)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	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: org.nutz.ioc.IocException: null For object [sysLogService] - type:[] FAIL to create Ioc Bean name=[$aop_syslog]
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:144)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:200)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:225)
	at org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:62)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:34)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:200)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:225)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:144)
	at com.qs.modules.MainSetup.<clinit>(MainSetup.java:40)
	... 24 more
Caused by: org.nutz.ioc.IocException: null For object [sysLogService] - type:[]
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:207)
	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:132)
	... 32 more
Caused by: java.lang.NullPointerException
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:142)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:200)
	... 36 more

九月 10, 2016 4:40:15 下午 org.apache.catalina.core.StandardContext startInternal
严重: One or more Filters failed to start. Full details will be found in the appropriate container log file

哪位大神帮我看一下,谢谢

4 回复

贴完整的启动日志

来自炫酷的 NutzCN

@wendal
感谢兽哥回复。已找到原因,原因是SysLogService的init方法中调用的一个方法被我改了,导致出现了问题。

@wendal
感谢兽哥回复。已找到原因,原因是SysLogService的init方法中调用的一个方法被我改了,导致出现了问题。

@wendal
感谢兽哥回复。已找到原因,原因是SysLogService的init方法中调用的一个方法被我改了,导致出现了问题。

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