日期:2014-05-20  浏览次数:20778 次

请教:我在resin下 用jspSmartUpload.jar 进行上传,总是报错?在tomcat下上传都是成功的
请教:我在resin下   用jspSmartUpload.jar   进行上传,总是报错,错误信息是:java.lang.StringIndexOutOfBoundsException:   String   index   out   of   range:   -11056   java.lang.IllegalArgumentException:   Files '   name   is   invalid   or   does   not   exist   (1205).  
请问该怎么处理呢?   在tomcat下上传都是成功的

------解决方案--------------------
是不是路径写错了,要绝对路径
------解决方案--------------------
用 oreilly的 cos 吧

import com.oreilly.servlet.multipart.*;

jspsmartupload已经被证明是不可靠的,大并发量会出问题