alibaba / easyexcel

快速、简洁、解决大文件内存溢出的java处理Excel工具
https://easyexcel.opensource.alibaba.com
Apache License 2.0
32.51k stars 7.55k forks source link

运行测试用例 com.alibaba.easyexcel.test.demo.read.ReadTest#cellDataRead 报错 #2147

Closed liaozibo-dev closed 3 years ago

liaozibo-dev commented 3 years ago

image

D:\Java\jdk1.8.0_291\bin\java.exe -ea -Didea.test.cyclic.buffer.size=1048576 "-javaagent:D:\IntelliJ IDEA Community Edition 2021.1.1\lib\idea_rt.jar=65509:D:\IntelliJ IDEA Community Edition 2021.1.1\bin" -Dfile.encoding=UTF-8 -classpath "D:\IntelliJ IDEA Community Edition 2021.1.1\lib\idea_rt.jar;D:\IntelliJ IDEA Community Edition 2021.1.1\plugins\junit\lib\junit5-rt.jar;D:\IntelliJ IDEA Community Edition 2021.1.1\plugins\junit\lib\junit-rt.jar;D:\Java\jdk1.8.0_291\jre\lib\charsets.jar;D:\Java\jdk1.8.0_291\jre\lib\deploy.jar;D:\Java\jdk1.8.0_291\jre\lib\ext\access-bridge-64.jar;D:\Java\jdk1.8.0_291\jre\lib\ext\cldrdata.jar;D:\Java\jdk1.8.0_291\jre\lib\ext\dnsns.jar;D:\Java\jdk1.8.0_291\jre\lib\ext\jaccess.jar;D:\Java\jdk1.8.0_291\jre\lib\ext\jfxrt.jar;D:\Java\jdk1.8.0_291\jre\lib\ext\localedata.jar;D:\Java\jdk1.8.0_291\jre\lib\ext\nashorn.jar;D:\Java\jdk1.8.0_291\jre\lib\ext\sunec.jar;D:\Java\jdk1.8.0_291\jre\lib\ext\sunjce_provider.jar;D:\Java\jdk1.8.0_291\jre\lib\ext\sunmscapi.jar;D:\Java\jdk1.8.0_291\jre\lib\ext\sunpkcs11.jar;D:\Java\jdk1.8.0_291\jre\lib\ext\zipfs.jar;D:\Java\jdk1.8.0_291\jre\lib\javaws.jar;D:\Java\jdk1.8.0_291\jre\lib\jce.jar;D:\Java\jdk1.8.0_291\jre\lib\jfr.jar;D:\Java\jdk1.8.0_291\jre\lib\jfxswt.jar;D:\Java\jdk1.8.0_291\jre\lib\jsse.jar;D:\Java\jdk1.8.0_291\jre\lib\management-agent.jar;D:\Java\jdk1.8.0_291\jre\lib\plugin.jar;D:\Java\jdk1.8.0_291\jre\lib\resources.jar;D:\Java\jdk1.8.0_291\jre\lib\rt.jar;E:\code\easyexcel\target\test-classes;E:\code\easyexcel\target\classes;D:\apache-maven-3.8.1\repository\org\apache\poi\poi\4.1.2\poi-4.1.2.jar;D:\apache-maven-3.8.1\repository\commons-codec\commons-codec\1.13\commons-codec-1.13.jar;D:\apache-maven-3.8.1\repository\org\apache\commons\commons-collections4\4.4\commons-collections4-4.4.jar;D:\apache-maven-3.8.1\repository\org\apache\commons\commons-math3\3.6.1\commons-math3-3.6.1.jar;D:\apache-maven-3.8.1\repository\com\zaxxer\SparseBitSet\1.2\SparseBitSet-1.2.jar;D:\apache-maven-3.8.1\repository\org\apache\poi\poi-ooxml\4.1.2\poi-ooxml-4.1.2.jar;D:\apache-maven-3.8.1\repository\org\apache\commons\commons-compress\1.19\commons-compress-1.19.jar;D:\apache-maven-3.8.1\repository\com\github\virtuald\curvesapi\1.06\curvesapi-1.06.jar;D:\apache-maven-3.8.1\repository\org\apache\poi\poi-ooxml-schemas\4.1.2\poi-ooxml-schemas-4.1.2.jar;D:\apache-maven-3.8.1\repository\org\apache\xmlbeans\xmlbeans\3.1.0\xmlbeans-3.1.0.jar;D:\apache-maven-3.8.1\repository\org\apache\commons\commons-csv\1.8\commons-csv-1.8.jar;D:\apache-maven-3.8.1\repository\cglib\cglib\3.3.0\cglib-3.3.0.jar;D:\apache-maven-3.8.1\repository\org\ow2\asm\asm\7.1\asm-7.1.jar;D:\apache-maven-3.8.1\repository\org\slf4j\slf4j-api\1.7.32\slf4j-api-1.7.32.jar;D:\apache-maven-3.8.1\repository\org\ehcache\ehcache\3.8.1\ehcache-3.8.1.jar;D:\apache-maven-3.8.1\repository\org\glassfish\jaxb\jaxb-runtime\2.3.1\jaxb-runtime-2.3.1.jar;D:\apache-maven-3.8.1\repository\javax\xml\bind\jaxb-api\2.3.1\jaxb-api-2.3.1.jar;D:\apache-maven-3.8.1\repository\org\glassfish\jaxb\txw2\2.3.1\txw2-2.3.1.jar;D:\apache-maven-3.8.1\repository\com\sun\istack\istack-commons-runtime\3.0.7\istack-commons-runtime-3.0.7.jar;D:\apache-maven-3.8.1\repository\org\jvnet\staxex\stax-ex\1.8\stax-ex-1.8.jar;D:\apache-maven-3.8.1\repository\com\sun\xml\fastinfoset\FastInfoset\1.2.15\FastInfoset-1.2.15.jar;D:\apache-maven-3.8.1\repository\javax\activation\javax.activation-api\1.2.0\javax.activation-api-1.2.0.jar;D:\apache-maven-3.8.1\repository\org\projectlombok\lombok\1.18.20\lombok-1.18.20.jar;D:\apache-maven-3.8.1\repository\ch\qos\logback\logback-classic\1.2.5\logback-classic-1.2.5.jar;D:\apache-maven-3.8.1\repository\ch\qos\logback\logback-core\1.2.5\logback-core-1.2.5.jar;D:\apache-maven-3.8.1\repository\com\alibaba\fastjson\1.2.78\fastjson-1.2.78.jar;D:\apache-maven-3.8.1\repository\org\springframework\boot\spring-boot\2.5.4\spring-boot-2.5.4.jar;D:\apache-maven-3.8.1\repository\org\springframework\spring-core\5.3.9\spring-core-5.3.9.jar;D:\apache-maven-3.8.1\repository\org\springframework\spring-jcl\5.3.9\spring-jcl-5.3.9.jar;D:\apache-maven-3.8.1\repository\org\springframework\spring-context\5.3.9\spring-context-5.3.9.jar;D:\apache-maven-3.8.1\repository\org\springframework\spring-aop\5.3.9\spring-aop-5.3.9.jar;D:\apache-maven-3.8.1\repository\org\springframework\spring-beans\5.3.9\spring-beans-5.3.9.jar;D:\apache-maven-3.8.1\repository\org\springframework\spring-expression\5.3.9\spring-expression-5.3.9.jar;D:\apache-maven-3.8.1\repository\org\springframework\boot\spring-boot-starter-web\2.5.4\spring-boot-starter-web-2.5.4.jar;D:\apache-maven-3.8.1\repository\org\springframework\boot\spring-boot-starter\2.5.4\spring-boot-starter-2.5.4.jar;D:\apache-maven-3.8.1\repository\org\springframework\boot\spring-boot-autoconfigure\2.5.4\spring-boot-autoconfigure-2.5.4.jar;D:\apache-maven-3.8.1\repository\org\springframework\boot\spring-boot-starter-logging\2.5.4\spring-boot-starter-logging-2.5.4.jar;D:\apache-maven-3.8.1\repository\org\apache\logging\log4j\log4j-to-slf4j\2.14.1\log4j-to-slf4j-2.14.1.jar;D:\apache-maven-3.8.1\repository\org\apache\logging\log4j\log4j-api\2.14.1\log4j-api-2.14.1.jar;D:\apache-maven-3.8.1\repository\org\slf4j\jul-to-slf4j\1.7.32\jul-to-slf4j-1.7.32.jar;D:\apache-maven-3.8.1\repository\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;D:\apache-maven-3.8.1\repository\org\yaml\snakeyaml\1.28\snakeyaml-1.28.jar;D:\apache-maven-3.8.1\repository\org\springframework\boot\spring-boot-starter-json\2.5.4\spring-boot-starter-json-2.5.4.jar;D:\apache-maven-3.8.1\repository\com\fasterxml\jackson\core\jackson-databind\2.12.4\jackson-databind-2.12.4.jar;D:\apache-maven-3.8.1\repository\com\fasterxml\jackson\core\jackson-annotations\2.12.4\jackson-annotations-2.12.4.jar;D:\apache-maven-3.8.1\repository\com\fasterxml\jackson\core\jackson-core\2.12.4\jackson-core-2.12.4.jar;D:\apache-maven-3.8.1\repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.12.4\jackson-datatype-jdk8-2.12.4.jar;D:\apache-maven-3.8.1\repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.12.4\jackson-datatype-jsr310-2.12.4.jar;D:\apache-maven-3.8.1\repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.12.4\jackson-module-parameter-names-2.12.4.jar;D:\apache-maven-3.8.1\repository\org\springframework\boot\spring-boot-starter-tomcat\2.5.4\spring-boot-starter-tomcat-2.5.4.jar;D:\apache-maven-3.8.1\repository\org\apache\tomcat\embed\tomcat-embed-core\9.0.52\tomcat-embed-core-9.0.52.jar;D:\apache-maven-3.8.1\repository\org\apache\tomcat\embed\tomcat-embed-el\9.0.52\tomcat-embed-el-9.0.52.jar;D:\apache-maven-3.8.1\repository\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.52\tomcat-embed-websocket-9.0.52.jar;D:\apache-maven-3.8.1\repository\org\springframework\spring-web\5.3.9\spring-web-5.3.9.jar;D:\apache-maven-3.8.1\repository\org\springframework\spring-webmvc\5.3.9\spring-webmvc-5.3.9.jar;D:\apache-maven-3.8.1\repository\junit\junit\4.13.2\junit-4.13.2.jar;D:\apache-maven-3.8.1\repository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar" com.intellij.rt.junit.JUnitStarter -ideVersion5 -junit4 com.alibaba.easyexcel.test.demo.read.ReadTest,cellDataRead
2021-10-23 12:44:03.907 DEBUG [main] com.alibaba.excel.metadata.property.ExcelHeadProperty:79 - The initialization sheet/table 'ExcelHeadProperty' is complete , head kind is CLASS
2021-10-23 12:44:03.956 DEBUG [main] com.alibaba.excel.context.AnalysisContextImpl:71 - Initialization 'AnalysisContextImpl' complete
2021-10-23 12:44:04.318 DEBUG [main] com.alibaba.excel.cache.selector.SimpleReadCacheSelector:73 - Use map cache.size:831
2021-10-23 12:44:04.817 DEBUG [main] com.alibaba.excel.util.SheetUtils:39 - The first is read by default.
2021-10-23 12:44:04.819 DEBUG [main] com.alibaba.excel.metadata.property.ExcelHeadProperty:79 - The initialization sheet/table 'ExcelHeadProperty' is complete , head kind is CLASS
2021-10-23 12:44:04.820 DEBUG [main] com.alibaba.excel.context.AnalysisContextImpl:96 - Began to read:ReadSheetHolder(super=AbstractReadHolder(super=AbstractHolder(newInitialization=true, head=null, clazz=class com.alibaba.easyexcel.test.demo.read.CellDataReadDemoData, globalConfiguration=GlobalConfiguration(autoTrim=true, use1904windowing=false, locale=zh_CN, useScientificFormat=false), converterMap={java.lang.Boolean-STRING=com.alibaba.excel.converters.booleanconverter.BooleanStringConverter@692f203f, java.lang.String-NUMBER=com.alibaba.excel.converters.string.StringNumberConverter@48f2bd5b, java.lang.Short-BOOLEAN=com.alibaba.excel.converters.shortconverter.ShortBooleanConverter@7b2bbc3, java.lang.String-BOOLEAN=com.alibaba.excel.converters.string.StringBooleanConverter@a1153bc, java.math.BigDecimal-NUMBER=com.alibaba.excel.converters.bigdecimal.BigDecimalNumberConverter@1aafa419, java.util.Date-NUMBER=com.alibaba.excel.converters.date.DateNumberConverter@47eaca72, java.lang.String-STRING=com.alibaba.excel.converters.string.StringStringConverter@55141def, java.lang.Integer-STRING=com.alibaba.excel.converters.integer.IntegerStringConverter@55182842, java.lang.Boolean-NUMBER=com.alibaba.excel.converters.booleanconverter.BooleanNumberConverter@3270d194, java.lang.Byte-BOOLEAN=com.alibaba.excel.converters.byteconverter.ByteBooleanConverter@235834f2, java.lang.String-ERROR=com.alibaba.excel.converters.string.StringErrorConverter@5656be13, java.lang.Integer-BOOLEAN=com.alibaba.excel.converters.integer.IntegerBooleanConverter@4218d6a3, java.lang.Boolean-BOOLEAN=com.alibaba.excel.converters.booleanconverter.BooleanBooleanConverter@76505305, java.lang.Double-STRING=com.alibaba.excel.converters.doubleconverter.DoubleStringConverter@14cd1699, java.math.BigInteger-STRING=com.alibaba.excel.converters.biginteger.BigIntegerStringConverter@77888435, java.lang.Long-STRING=com.alibaba.excel.converters.longconverter.LongStringConverter@73a1e9a9, java.lang.Integer-NUMBER=com.alibaba.excel.converters.integer.IntegerNumberConverter@71d44a3, java.math.BigDecimal-STRING=com.alibaba.excel.converters.bigdecimal.BigDecimalStringConverter@7b98f307, java.lang.Float-STRING=com.alibaba.excel.converters.floatconverter.FloatStringConverter@4802796d, java.lang.Long-NUMBER=com.alibaba.excel.converters.longconverter.LongNumberConverter@34123d65, java.util.Date-STRING=com.alibaba.excel.converters.date.DateStringConverter@59474f18, java.lang.Float-BOOLEAN=com.alibaba.excel.converters.floatconverter.FloatBooleanConverter@65fb9ffc, java.lang.Byte-NUMBER=com.alibaba.excel.converters.byteconverter.ByteNumberConverter@3e694b3f, java.lang.Double-NUMBER=com.alibaba.excel.converters.doubleconverter.DoubleNumberConverter@1bb5a082, java.lang.Float-NUMBER=com.alibaba.excel.converters.floatconverter.FloatNumberConverter@78691363, java.lang.Long-BOOLEAN=com.alibaba.excel.converters.longconverter.LongBooleanConverter@41d477ed, java.lang.Short-NUMBER=com.alibaba.excel.converters.shortconverter.ShortNumberConverter@3590fc5b, java.lang.Byte-STRING=com.alibaba.excel.converters.byteconverter.ByteStringConverter@397fbdb, java.time.LocalDateTime-STRING=com.alibaba.excel.converters.localdatetime.LocalDateTimeStringConverter@33d512c1, java.math.BigInteger-NUMBER=com.alibaba.excel.converters.biginteger.BigIntegerNumberConverter@515c6049, java.math.BigInteger-BOOLEAN=com.alibaba.excel.converters.biginteger.BigIntegerBooleanConverter@639c2c1d, java.lang.Double-BOOLEAN=com.alibaba.excel.converters.doubleconverter.DoubleBooleanConverter@5fe94a96, java.math.BigDecimal-BOOLEAN=com.alibaba.excel.converters.bigdecimal.BigDecimalBooleanConverter@443118b0, java.time.LocalDateTime-NUMBER=com.alibaba.excel.converters.localdatetime.LocalDateNumberConverter@765d7657, java.lang.Short-STRING=com.alibaba.excel.converters.shortconverter.ShortStringConverter@74235045}), headRowNumber=1, excelReadHeadProperty=ExcelHeadProperty(headClazz=class com.alibaba.easyexcel.test.demo.read.CellDataReadDemoData, headKind=CLASS, headRowNumber=1, headMap={0=Head(columnIndex=0, field=private com.alibaba.excel.metadata.data.CellData com.alibaba.easyexcel.test.demo.read.CellDataReadDemoData.string, fieldName=string, headNameList=[string], forceIndex=false, forceName=false, columnWidthProperty=null, loopMergeProperty=null, headStyleProperty=null, headFontProperty=null), 1=Head(columnIndex=1, field=private com.alibaba.excel.metadata.data.CellData com.alibaba.easyexcel.test.demo.read.CellDataReadDemoData.date, fieldName=date, headNameList=[date], forceIndex=false, forceName=false, columnWidthProperty=null, loopMergeProperty=null, headStyleProperty=null, headFontProperty=null), 2=Head(columnIndex=2, field=private com.alibaba.excel.metadata.data.CellData com.alibaba.easyexcel.test.demo.read.CellDataReadDemoData.doubleData, fieldName=doubleData, headNameList=[doubleData], forceIndex=false, forceName=false, columnWidthProperty=null, loopMergeProperty=null, headStyleProperty=null, headFontProperty=null), 3=Head(columnIndex=3, field=private com.alibaba.excel.metadata.data.CellData com.alibaba.easyexcel.test.demo.read.CellDataReadDemoData.formulaValue, fieldName=formulaValue, headNameList=[formulaValue], forceIndex=false, forceName=false, columnWidthProperty=null, loopMergeProperty=null, headStyleProperty=null, headFontProperty=null)}, ignoreMap={}), readListenerList=[com.alibaba.excel.read.listener.ModelBuildEventListener@618b19ad, com.alibaba.easyexcel.test.demo.read.CellDataDemoHeadDataListener@2d3379b4]), readSheet=ReadSheet{sheetNo=0, sheetName='Sheet1'} ReadBasicParameter(super=BasicParameter(head=null, clazz=null, customConverterList=null, autoTrim=null, use1904windowing=null, locale=null, useScientificFormat=null), headRowNumber=null, customReadListenerList=[]), parentReadWorkbookHolder=ReadWorkbookHolder(super=AbstractReadHolder(super=AbstractHolder(newInitialization=true, head=null, clazz=class com.alibaba.easyexcel.test.demo.read.CellDataReadDemoData, globalConfiguration=GlobalConfiguration(autoTrim=true, use1904windowing=false, locale=zh_CN, useScientificFormat=false), converterMap={java.lang.Boolean-STRING=com.alibaba.excel.converters.booleanconverter.BooleanStringConverter@692f203f, java.lang.String-NUMBER=com.alibaba.excel.converters.string.StringNumberConverter@48f2bd5b, java.lang.Short-BOOLEAN=com.alibaba.excel.converters.shortconverter.ShortBooleanConverter@7b2bbc3, java.lang.String-BOOLEAN=com.alibaba.excel.converters.string.StringBooleanConverter@a1153bc, java.math.BigDecimal-NUMBER=com.alibaba.excel.converters.bigdecimal.BigDecimalNumberConverter@1aafa419, java.util.Date-NUMBER=com.alibaba.excel.converters.date.DateNumberConverter@47eaca72, java.lang.String-STRING=com.alibaba.excel.converters.string.StringStringConverter@55141def, java.lang.Integer-STRING=com.alibaba.excel.converters.integer.IntegerStringConverter@55182842, java.lang.Boolean-NUMBER=com.alibaba.excel.converters.booleanconverter.BooleanNumberConverter@3270d194, java.lang.Byte-BOOLEAN=com.alibaba.excel.converters.byteconverter.ByteBooleanConverter@235834f2, java.lang.String-ERROR=com.alibaba.excel.converters.string.StringErrorConverter@5656be13, java.lang.Integer-BOOLEAN=com.alibaba.excel.converters.integer.IntegerBooleanConverter@4218d6a3, java.lang.Boolean-BOOLEAN=com.alibaba.excel.converters.booleanconverter.BooleanBooleanConverter@76505305, java.lang.Double-STRING=com.alibaba.excel.converters.doubleconverter.DoubleStringConverter@14cd1699, java.math.BigInteger-STRING=com.alibaba.excel.converters.biginteger.BigIntegerStringConverter@77888435, java.lang.Long-STRING=com.alibaba.excel.converters.longconverter.LongStringConverter@73a1e9a9, java.lang.Integer-NUMBER=com.alibaba.excel.converters.integer.IntegerNumberConverter@71d44a3, java.math.BigDecimal-STRING=com.alibaba.excel.converters.bigdecimal.BigDecimalStringConverter@7b98f307, java.lang.Float-STRING=com.alibaba.excel.converters.floatconverter.FloatStringConverter@4802796d, java.lang.Long-NUMBER=com.alibaba.excel.converters.longconverter.LongNumberConverter@34123d65, java.util.Date-STRING=com.alibaba.excel.converters.date.DateStringConverter@59474f18, java.lang.Float-BOOLEAN=com.alibaba.excel.converters.floatconverter.FloatBooleanConverter@65fb9ffc, java.lang.Byte-NUMBER=com.alibaba.excel.converters.byteconverter.ByteNumberConverter@3e694b3f, java.lang.Double-NUMBER=com.alibaba.excel.converters.doubleconverter.DoubleNumberConverter@1bb5a082, java.lang.Float-NUMBER=com.alibaba.excel.converters.floatconverter.FloatNumberConverter@78691363, java.lang.Long-BOOLEAN=com.alibaba.excel.converters.longconverter.LongBooleanConverter@41d477ed, java.lang.Short-NUMBER=com.alibaba.excel.converters.shortconverter.ShortNumberConverter@3590fc5b, java.lang.Byte-STRING=com.alibaba.excel.converters.byteconverter.ByteStringConverter@397fbdb, java.time.LocalDateTime-STRING=com.alibaba.excel.converters.localdatetime.LocalDateTimeStringConverter@33d512c1, java.math.BigInteger-NUMBER=com.alibaba.excel.converters.biginteger.BigIntegerNumberConverter@515c6049, java.math.BigInteger-BOOLEAN=com.alibaba.excel.converters.biginteger.BigIntegerBooleanConverter@639c2c1d, java.lang.Double-BOOLEAN=com.alibaba.excel.converters.doubleconverter.DoubleBooleanConverter@5fe94a96, java.math.BigDecimal-BOOLEAN=com.alibaba.excel.converters.bigdecimal.BigDecimalBooleanConverter@443118b0, java.time.LocalDateTime-NUMBER=com.alibaba.excel.converters.localdatetime.LocalDateNumberConverter@765d7657, java.lang.Short-STRING=com.alibaba.excel.converters.shortconverter.ShortStringConverter@74235045}), headRowNumber=1, excelReadHeadProperty=ExcelHeadProperty(headClazz=class com.alibaba.easyexcel.test.demo.read.CellDataReadDemoData, headKind=CLASS, headRowNumber=1, headMap={0=Head(columnIndex=0, field=private com.alibaba.excel.metadata.data.CellData com.alibaba.easyexcel.test.demo.read.CellDataReadDemoData.string, fieldName=string, headNameList=[string], forceIndex=false, forceName=false, columnWidthProperty=null, loopMergeProperty=null, headStyleProperty=null, headFontProperty=null), 1=Head(columnIndex=1, field=private com.alibaba.excel.metadata.data.CellData com.alibaba.easyexcel.test.demo.read.CellDataReadDemoData.date, fieldName=date, headNameList=[date], forceIndex=false, forceName=false, columnWidthProperty=null, loopMergeProperty=null, headStyleProperty=null, headFontProperty=null), 2=Head(columnIndex=2, field=private com.alibaba.excel.metadata.data.CellData com.alibaba.easyexcel.test.demo.read.CellDataReadDemoData.doubleData, fieldName=doubleData, headNameList=[doubleData], forceIndex=false, forceName=false, columnWidthProperty=null, loopMergeProperty=null, headStyleProperty=null, headFontProperty=null), 3=Head(columnIndex=3, field=private com.alibaba.excel.metadata.data.CellData com.alibaba.easyexcel.test.demo.read.CellDataReadDemoData.formulaValue, fieldName=formulaValue, headNameList=[formulaValue], forceIndex=false, forceName=false, columnWidthProperty=null, loopMergeProperty=null, headStyleProperty=null, headFontProperty=null)}, ignoreMap={}), readListenerList=[com.alibaba.excel.read.listener.ModelBuildEventListener@618b19ad, com.alibaba.easyexcel.test.demo.read.CellDataDemoHeadDataListener@2d3379b4]), readWorkbook=ReadWorkbook(super=ReadBasicParameter(super=BasicParameter(head=null, clazz=class com.alibaba.easyexcel.test.demo.read.CellDataReadDemoData, customConverterList=null, autoTrim=null, use1904windowing=null, locale=null, useScientificFormat=null), headRowNumber=null, customReadListenerList=[com.alibaba.easyexcel.test.demo.read.CellDataDemoHeadDataListener@2d3379b4]), excelType=null, inputStream=null, file=E:\code\easyexcel\target\test-classes\demo\cellDataDemo.xlsx, mandatoryUseInputStream=null, autoCloseStream=null, customObject=null, readCache=null, ignoreEmptyRow=null, readCacheSelector=null, password=null, xlsxSAXParserFactoryName=null, useDefaultListener=null, extraReadSet=null), inputStream=null, file=E:\code\easyexcel\target\test-classes\demo\cellDataDemo.xlsx, mandatoryUseInputStream=false, autoCloseStream=true, excelType=XLSX, customObject=null, ignoreEmptyRow=true, readCache=com.alibaba.excel.cache.MapCache@30c15d8b, readCacheSelector=com.alibaba.excel.cache.selector.SimpleReadCacheSelector@5e0e82ae, tempFile=null, password=null, extraReadSet=[], actualSheetDataList=null, parameterSheetDataList=[ReadSheet{sheetNo=0, sheetName='null'} ReadBasicParameter(super=BasicParameter(head=null, clazz=null, customConverterList=null, autoTrim=null, use1904windowing=null, locale=null, useScientificFormat=null), headRowNumber=null, customReadListenerList=[])], readAll=false, hasReadSheet=[0]), sheetNo=0, sheetName=Sheet1, approximateTotalRowNumber=null, cellMap={}, cellExtra=null, rowIndex=-1, tempCellData=null, maxDataHeadSize=null)

ExcelDataConvertException(super=com.alibaba.excel.exception.ExcelDataConvertException: Converter not found, convert STRING to com.alibaba.excel.metadata.data.CellData
, rowIndex=1, columnIndex=0, cellData=ReadCellData(super=CellData(super=AbstractCell(rowIndex=null, columnIndex=null), type=STRING, numberValue=null, stringValue=字符串0, booleanValue=null, data=null, formulaData=null), dataFormatData=DataFormatData(index=0, format=General)), excelContentProperty=ExcelContentProperty(field=private com.alibaba.excel.metadata.data.CellData com.alibaba.easyexcel.test.demo.read.CellDataReadDemoData.string, converter=null, dateTimeFormatProperty=null, numberFormatProperty=null, contentStyleProperty=null, contentFontProperty=null))
    at com.alibaba.excel.util.ConverterUtils.doConvertToJavaObject(ConverterUtils.java:147)
    at com.alibaba.excel.util.ConverterUtils.convertToJavaObject(ConverterUtils.java:98)
    at com.alibaba.excel.read.listener.ModelBuildEventListener.buildUserModel(ModelBuildEventListener.java:104)
    at com.alibaba.excel.read.listener.ModelBuildEventListener.invoke(ModelBuildEventListener.java:41)
    at com.alibaba.excel.read.listener.ModelBuildEventListener.invoke(ModelBuildEventListener.java:26)
    at com.alibaba.excel.read.processor.DefaultAnalysisEventProcessor.dealData(DefaultAnalysisEventProcessor.java:99)
    at com.alibaba.excel.read.processor.DefaultAnalysisEventProcessor.endRow(DefaultAnalysisEventProcessor.java:46)
    at com.alibaba.excel.analysis.v07.handlers.RowTagHandler.endElement(RowTagHandler.java:46)
    at com.alibaba.excel.analysis.v07.handlers.sax.XlsxRowHandler.endElement(XlsxRowHandler.java:91)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:610)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1784)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2969)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:605)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:507)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:867)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:796)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:142)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1216)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:644)
    at com.alibaba.excel.analysis.v07.XlsxSaxAnalyser.parseXmlSource(XlsxSaxAnalyser.java:197)
    at com.alibaba.excel.analysis.v07.XlsxSaxAnalyser.execute(XlsxSaxAnalyser.java:218)
    at com.alibaba.excel.analysis.ExcelAnalyserImpl.analysis(ExcelAnalyserImpl.java:123)
    at com.alibaba.excel.ExcelReader.read(ExcelReader.java:67)
    at com.alibaba.excel.ExcelReader.read(ExcelReader.java:57)
    at com.alibaba.excel.read.builder.ExcelReaderSheetBuilder.doRead(ExcelReaderSheetBuilder.java:65)
    at com.alibaba.easyexcel.test.demo.read.ReadTest.cellDataRead(ReadTest.java:278)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
    at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
    at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
    at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
    at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
    at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33)
    at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:221)
    at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54)

Process finished with exit code -1
zhuangjiaju commented 3 years ago

已经在3.0.2中修复