java进行传递zip压缩包并实现解压时出现异常java.lang.illegalArgumentException
java.lang.IllegalArgumentExceptionatjava.util.zip.ZipInputStream.getUTF8String(ZipInp...
java.lang.IllegalArgumentException
at java.util.zip.ZipInputStream.getUTF8String(ZipInputStream.java:290)
at java.util.zip.ZipInputStream.readLOC(ZipInputStream.java:243)
at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:73)
at com.originsys.upload.domain.Zip.unZip(Zip.java:96)
at com.originsys.upload.action.DoUpload.execute(DoUpload.java:67)
at com.originsys.eap.control.MainServlet.process(MainServlet.java:263)
at com.originsys.eap.control.MainServlet.doPost(MainServlet.java:112)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
at com.originsys.eap.control.FilterUtil.doFilter(FilterUtil.java:184) 展开
at java.util.zip.ZipInputStream.getUTF8String(ZipInputStream.java:290)
at java.util.zip.ZipInputStream.readLOC(ZipInputStream.java:243)
at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:73)
at com.originsys.upload.domain.Zip.unZip(Zip.java:96)
at com.originsys.upload.action.DoUpload.execute(DoUpload.java:67)
at com.originsys.eap.control.MainServlet.process(MainServlet.java:263)
at com.originsys.eap.control.MainServlet.doPost(MainServlet.java:112)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
at com.originsys.eap.control.FilterUtil.doFilter(FilterUtil.java:184) 展开
若以下回答无法解决问题,邀请你更新回答
1个回答
展开全部
参数不合法。
更多追问追答
追问
传递别的zip压缩包时候是可以的 唯独 里面有中文文件的就这样 和编码有关吧?
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询