首页 新闻 会员 周边 捐助

上传图片出现了这条道路是不存在,怎么解决???

0
[已解决问题] 解决于 2017-05-11 16:33

java.lang.IllegalArgumentException: This path does not exist (1135).
pageName----touxiang
 at com.jspsmart.upload.SmartUpload.getPhysicalPath(SmartUpload.java:844)
 at com.jspsmart.upload.SmartFile.saveAs(SmartFile.java:59)
 at com.jspsmart.upload.SmartUpload.save(SmartUpload.java:271)
 at com.jspsmart.upload.SmartUpload.save(SmartUpload.java:233)
 at com.bll.UpdateHeadPortraitServlet.doGet(UpdateHeadPortraitServlet.java:58)
 at com.bll.UpdateHeadPortraitServlet.doPost(UpdateHeadPortraitServlet.java:104)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at com.filter.CharactorFilter.doFilter(CharactorFilter.java:43)
 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:230)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
 at java.lang.Thread.run(Thread.java:619)

sunshine*girl的主页 sunshine*girl | 菜鸟二级 | 园豆:208
提问于:2017-05-11 16:03
< >
分享
最佳答案
0

touxiang 这个路径不存在.你把你要保存的图片的物理地址打傻瓜日志.

或者保存前判断路径是否存在.不存在就创建

奖励园豆:5
吴瑞祥 | 高人七级 |园豆:29449 | 2017-05-11 16:04
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册