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)
touxiang 这个路径不存在.你把你要保存的图片的物理地址打傻瓜日志.
或者保存前判断路径是否存在.不存在就创建