NutzCN Logo
问答 客户端图片上传失败
发布于 3314天前 作者 明天会吹什么风 1931 次浏览 复制 上一个帖子 下一个帖子
标签:

[2g]
短点链接: https://nutz.cn/s/c/2g

4 回复

稍等,我找找日志

2015-10-27 11:25:11,901 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:92) DEBUG - Found mapping for [POST] path=/yvr/api/v1/images : YvrApiModule.images(...)
2015-10-27 11:25:11,902 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:145) DEBUG - Get 'yvrApiModule'<class net.wendal.nutzbook.module.yvr.YvrApiModule>
2015-10-27 11:25:11,902 org.apache.shiro.session.mgt.DefaultSessionManager.create(DefaultSessionManager.java:175) DEBUG - Creating new EIS record for new session instance [org.apache.shiro.session.mgt.SimpleSession,id=null]
2015-10-27 11:25:11,905 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:145) DEBUG - Get 'yvrService'<class net.wendal.nutzbook.service.yvr.YvrService>
2015-10-27 11:25:11,907 net.wendal.nutzbook.mvc.LogTimeProcessor.process(LogTimeProcessor.java:24) DEBUG - [POST]URI=/yvr/api/v1/images 200 4ms
2015-10-27 11:25:11,907 org.nutz.mvc.impl.processor.FailProcessor.process(FailProcessor.java:28) WARN  - Error@/yvr/api/v1/images :
java.lang.NullPointerException
        at org.nutz.mvc.upload.injector.TempFileInjector.get(TempFileInjector.java:22)
        at org.nutz.mvc.upload.injector.TempFileInjector.get(TempFileInjector.java:12)
        at org.nutz.mvc.adaptor.AbstractAdaptor.adapt(AbstractAdaptor.java:247)
        at org.nutz.mvc.impl.processor.AdaptorProcessor.process(AdaptorProcessor.java:28)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at org.nutz.mvc.impl.processor.ActionFiltersProcessor.process(ActionFiltersProcessor.java:40)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at org.nutz.integration.shiro.NutShiroProcessor.process(NutShiroProcessor.java:51)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:113)
        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 net.wendal.nutzbook.mvc.LogTimeProcessor.process(LogTimeProcessor.java:19)
        at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:40)
        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:183)
        at net.wendal.nutzbook.mvc.NutzBookNutFilter.doFilter(NutzBookNutFilter.java:40)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668)
        at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668)
        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)

看着不像mulitpart上传呢

图片发送的name 不用设置?

@tuwei1992 file, API忘记写了,已经补上

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