NutzCN Logo
问答 nutz项目启动失败 Fail to born or cast to 'org.nutz.mvc.upload.UploadAdaptor'
发布于 1386天前 作者 qq_1fec8625 1633 次浏览 复制 上一个帖子 下一个帖子
标签:
严重: Exception starting filter nutz
	org.nutz.mvc.LoadingException: org.nutz.lang.born.BorningException: Fail to born or cast to 'org.nutz.mvc.upload.UploadAdaptor'because: java.lang.NullPointerException
		at org.nutz.mvc.LoadingException$FC$b19c9d30c931cb9c3648c20970c89964.invoke(LoadingException.java)
		at org.nutz.lang.born.AbstractConstructorBorning.call(AbstractConstructorBorning.java:25)
		at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:19)
		at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
		at org.nutz.lang.Mirror.born(Mirror.java:1022)
		at org.nutz.lang.Lang.wrapThrow(Lang.java:203)
		at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:135)
		at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
		at org.nutz.mvc.NutFilter._init(NutFilter.java:91)
		at org.nutz.mvc.NutFilter.init(NutFilter.java:69)
		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:4660)
		at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5298)
		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
		at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1407)
		at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1397)
		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:748)
	Caused by: org.nutz.lang.born.BorningException: Fail to born or cast to 'org.nutz.mvc.upload.UploadAdaptor'because: java.lang.NullPointerException
		at org.nutz.lang.born.EmptyArgsConstructorBorning.born(EmptyArgsConstructorBorning.java:17)
		at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
		at org.nutz.lang.Mirror.born(Mirror.java:1022)
		at org.nutz.mvc.impl.Loadings.evalObj(Loadings.java:336)
		at org.nutz.mvc.impl.processor.AbstractProcessor.evalObj(AbstractProcessor.java:48)
		at org.nutz.mvc.impl.processor.AdaptorProcessor.evalHttpAdaptor(AdaptorProcessor.java:42)
		at org.nutz.mvc.impl.processor.AdaptorProcessor.init(AdaptorProcessor.java:22)
		at org.nutz.mvc.impl.NutActionChainMaker.eval(NutActionChainMaker.java:38)
		at org.nutz.mvc.impl.UrlMappingImpl.add(UrlMappingImpl.java:54)
		at org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:205)
		at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:108)
		... 15 more
	Caused by: java.lang.NullPointerException
		at org.nutz.filepool.NutFilePool.foundMax(NutFilePool.java:197)
		at org.nutz.filepool.NutFilePool.<init>(NutFilePool.java:45)
		at org.nutz.filepool.NutFilePool.getOrCreatePool(NutFilePool.java:173)
		at org.nutz.mvc.upload.UploadingContext.<init>(UploadingContext.java:32)
		at org.nutz.mvc.upload.UploadAdaptor.<init>(UploadAdaptor.java:71)
		at org.nutz.mvc.upload.UploadAdaptor$FC$7f1dc2fa2f23ea94e33eaba8dbbabf73.invoke(UploadAdaptor.java)
		at org.nutz.lang.born.AbstractConstructorBorning.call(AbstractConstructorBorning.java:25)
		at org.nutz.lang.born.EmptyArgsConstructorBorning.born(EmptyArgsConstructorBorning.java:14)
		... 25 more

3 回复

upload.json 文件被删了?

别人的都可以跑,我这拉取了下什么都没动就突然跑不了了。用的nutz1.68的jar。就爆上面的错误,清空tomcat,remove再add回来,清空eclipse,还是不行。

foundMax 抛NPE, 感觉是upload临时目录里有非法文件

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