An error occurs when poi reads an Excel file.

Source: Internet
Author: User
Java. Lang. Reflect. invocationtargetexception
At sun. Reflect. nativeconstructoraccessorimpl. newinstance0 (native method)
At sun. Reflect. nativeconstruct%cessorimpl. newinstance (nativeconstruct%cessorimpl. Java: 39)
At sun. Reflect. delegatingconstruct%cessorimpl. newinstance (delegatingconstruct%cessorimpl. Java: 27)
At java. Lang. Reflect. constructor. newinstance (constructor. Java: 274)
At org. Apache. Poi. hssf. Record. recordfactory. createrecord (recordfactory. Java: 224)
At org. Apache. Poi. hssf. Record. recordfactory. createrecords (recordfactory. Java: 160)
At org. Apache. Poi. hssf. usermodel. hssfworkbook. <init> (hssfworkbook. Java: 163)
At org. Apache. Poi. hssf. usermodel. hssfworkbook. <init> (hssfworkbook. Java: 210)
At org. Apache. Poi. hssf. usermodel. hssfworkbook. <init> (hssfworkbook. Java: 191)
At com. Kingdee. Outsourcing. Sangon. testexcelana. analyexcel (testexcelana. Java: 45)
At org. Apache. jsp. anatestorderexcel_jsp. _ jspservice (anatestorderexcel_jsp.java: 130)
At org. Apache. Jasper. runtime. httpjspbase. Service (httpjspbase. Java: 94)
At javax. servlet. http. httpservlet. Service (httpservlet. Java: 802)
At org. Apache. Jasper. servlet. jspservletwrapper. Service (jspservletwrapper. Java: 324)
At org. Apache. Jasper. servlet. jspservlet. servicejspfile (jspservlet. Java: 292)
At org. Apache. Jasper. servlet. jspservlet. Service (jspservlet. Java: 236)
At javax. servlet. http. httpservlet. Service (httpservlet. Java: 802)
At org. Apache. Catalina. Core. applicationfilterchain. internaldofilter (applicationfilterchain. Java: 237)
At org. Apache. Catalina. Core. applicationfilterchain. dofilter (applicationfilterchain. Java: 157)
At org. Apache. Catalina. Core. standardwrappervalve. Invoke (standardwrappervalve. Java: 214)
At org. Apache. Catalina. Core. standardvalvecontext. invokenext (standardvalvecontext. Java: 104)
At org. Apache. Catalina. Core. standardpipeline. Invoke (standardpipeline. Java: 520)
At org. Apache. Catalina. Core. standardcontextvalve. invokeinternal (standardcontextvalve. Java: 198)
At org. Apache. Catalina. Core. standardcontextvalve. Invoke (standardcontextvalve. Java: 152)
At org. Apache. Catalina. Core. standardvalvecontext. invokenext (standardvalvecontext. Java: 104)
At org. Apache. Catalina. Core. standardpipeline. Invoke (standardpipeline. Java: 520)
At org. Apache. Catalina. Core. standardhostvalve. Invoke (standardhostvalve. Java: 137)
At org. Apache. Catalina. Core. standardvalvecontext. invokenext (standardvalvecontext. Java: 104)
At org. Apache. Catalina. Valves. errorreportvalve. Invoke (errorreportvalve. Java: 118)
At org. Apache. Catalina. Core. standardvalvecontext. invokenext (standardvalvecontext. Java: 102)
At org. Apache. Catalina. Core. standardpipeline. Invoke (standardpipeline. Java: 520)
At org. Apache. Catalina. Core. standardenginevalve. Invoke (standardenginevalve. Java: 109)
At org. Apache. Catalina. Core. standardvalvecontext. invokenext (standardvalvecontext. Java: 104)
At org. Apache. Catalina. Core. standardpipeline. Invoke (standardpipeline. Java: 520)
At org. Apache. Catalina. Core. containerbase. Invoke (containerbase. Java: 929)
At org. Apache. Coyote. tomcat5.coyoteadapter. Service (coyoteadapter. Java: 160)
At org. Apache. Coyote. http11.http11processor. Process (http11processor. Java: 799)
At org. Apache. Coyote. http11.http11protocol $ http11connectionhandler. processconnection (http11protocol. Java: 705)
At org.apache.tomcat.util.net. tcpworkerthread. Runit (pooltcpendpoint. Java: 577)
At org. Apache. tomcat. util. threads. threadpool $ controlrunnable. Run (threadpool. Java: 683)
At java. Lang. thread. Run (thread. Java: 536)
Caused by: Java. Lang. arrayindexoutofboundsexception
At java. Lang. system. arraycopy (native method)
At org. Apache. Poi. hssf. Record. unknownrecord. <init> (unknownrecord. Java: 62)
At org. Apache. Poi. hssf. Record. subrecord. createsubrecord (subrecord. Java: 57)
At org. Apache. Poi. hssf. Record. objrecord. fillfields (objrecord. Java: 99)
At org. Apache. Poi. hssf. Record. Record. fillfields (record. Java: 90)
At org. Apache. Poi. hssf. Record. Record. <init> (record. Java: 55)
At org. Apache. Poi. hssf. Record. objrecord. <init> (objrecord. Java: 61)

Out of bounds ??

Java. Lang. arrayindexoutofboundsexception
This is the most basic array exception that exceeds the range.
You first use sheet. getlastrownum ()
Check whether the number of your row is out of the range.
Use row. getlastcellnum () to check if the value is out of the range.
You can also add a break point in your program to check for problems. java. Lang. arrayindexoutofboundsexception
This is the most basic array exception that exceeds the range.
You first use sheet. getlastrownum ()
Check whether the number of your row is out of the range.
Use row. getlastcellnum () to check if the value is out of the range.
You can also add a break point in your program to check for problems.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.