org.apache.poi.POIXMLException: org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA
at org.apache.poi.xssf.usermodel.XSSFSheet.read(XSSFSheet.java:140)
at org.apache.poi.xssf.usermodel.XSSFSheet.onDocumentRead(XSSFSheet.java:130)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.onDocumentRead(XSSFWorkbook.java:286)
at org.apache.poi.POIXMLDocument.load(POIXMLDocument.java:159)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:186)
at org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:73)
at hrp.handrj.tsp.RunDmImpExcelTsk.dmExcelUploadActionAll(RunDmImpExcelTsk.java:249)
at hrp.handrj.tsp.RunDmImpExcelTsk.dmExcelUploadAction(RunDmImpExcelTsk.java:241)
at hrp.handrj.tsp.RunDmImpExcelTsk.readAllExcel(RunDmImpExcelTsk.java:205)
at hrp.handrj.tsp.RunDmImpExcelTsk.readAllExcel(RunDmImpExcelTsk.java:216)
at hrp.handrj.tsp.RunDmImpExcelTsk.dmFileUpload(RunDmImpExcelTsk.java:52)
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 hrp.handrj.serviceImpl.TspIvmServiceImpl.runInvokeMethodTaskNoDS(TspIvmServiceImpl.java:202)
at hrp.handrj.serviceImpl.TspIvmServiceImpl.runInvokeMethodTask(TspIvmServiceImpl.java:52)
at hrp.handrj.serviceImpl.TspPlanTaskServiceImpl.runInvokeMethodTask(TspPlanTaskServiceImpl.java:2099)
at hrp.handrj.serviceImpl.TspPlanTaskServiceImpl.runPlanTask(TspPlanTaskServiceImpl.java:1609)
at hrp.handrj.thread.TspcCountDownLatch$Worker.doWork(TspcCountDownLatch.java:320)
at hrp.handrj.thread.TspcCountDownLatch$Worker.run(TspcCountDownLatch.java:268)
Caused by: org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA
at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3471)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1270)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1257)
at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)
at org.openxmlformats.schemas.spreadsheetml.x2006.main.WorksheetDocument$Factory.parse(Unknown Source)
at org.apache.poi.xssf.usermodel.XSSFSheet.read(XSSFSheet.java:138)
... 20 more
Caused by: org.xml.sax.SAXParseException; systemId: file:; lineNumber: 130; columnNumber: 1; Unexpected element: CDATA
at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo.java:1038)
at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:723)
at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3439)
... 25 more
已解决,由于xmlbeans的jar包版本问题导致,由xmlbeans-2.3.0.jar升级至xmlbeans-2.6.0.jar