当前位置: 代码迷 >> J2SE >> java.lang.NegativeArraySizeException
  详细解决方案

java.lang.NegativeArraySizeException

热度:61   发布时间:2016-04-24 14:06:34.0
请大家帮忙看看
严重:   Servlet.service()   for   servlet   jsp   threw   exception
java.lang.NegativeArraySizeException
at   com.jspsmart.upload.SmartUpload.upload(SmartUpload.java:133)
at   org.apache.jsp.jbbs.photoupload_jsp._jspService(photoupload_jsp.java:418)
at   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
at   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
at   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
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   org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
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:102)
at   org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at   org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at   org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at   org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at   org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
这个是上传图片并成缩略图出现的错误!不知道是出现什么问题!

------解决方案--------------------
检查数组的大小是否成负数了
------解决方案--------------------
Thrown if an application tries to create an array with negative size.
看看是不是用到一个负数去建数组了
  相关解决方案