java poi解析excel报错处理
org.apache.xmlbeans.SchemaTypeLoaderException: XML-BEANS compiled schema: Incompatible minor version - expecting up to
23
, got
24
(schemaorg_apache_xmlbeans.system.sE130CAA0A01A7CDE5A2B4FEB8B311707.index) - code
3
at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl$XsbReader.<init>(SchemaTypeSystemImpl.java:
1520
)
at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.initFromHeader(SchemaTypeSystemImpl.java:
260
)
at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.<init>(SchemaTypeSystemImpl.java:
183
)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
39
)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
27
)
at java.lang.reflect.Constructor.newInstance(Constructor.java:
513
)
at schemaorg_apache_xmlbeans.system.sE130CAA0A01A7CDE5A2B4FEB8B311707.TypeSystemHolder.loadTypeSystem(Unknown Source)
at schemaorg_apache_xmlbeans.system.sE130CAA0A01A7CDE5A2B4FEB8B311707.TypeSystemHolder.<clinit>(Unknown Source)
at sun.misc.Unsafe.ensureClassInitialized(Native Method)
at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:
25
)
at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:
122
)
at java.lang.reflect.Field.acquireFieldAccessor(Field.java:
918
)
at java.lang.reflect.Field.getFieldAccessor(Field.java:
899
)
at java.lang.reflect.Field.get(Field.java:
358
)
at org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:
768
)
at org.openxmlformats.schemas.drawingml.x2006.main.ThemeDocument.<clinit>(Unknown Source)
at org.openxmlformats.schemas.drawingml.x2006.main.ThemeDocument$Factory.parse(Unknown Source)
at org.apache.poi.xssf.model.ThemesTable.<init>(ThemesTable.java:
44
)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
39
)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
27
)
at java.lang.reflect.Constructor.newInstance(Constructor.java:
513
)
at org.apache.poi.xssf.usermodel.XSSFFactory.createDocumentPart(XSSFFactory.java:
60
)
at org.apache.poi.POIXMLDocumentPart.read(POIXMLDocumentPart.java:
403
)
at org.apache.poi.POIXMLDocument.load(POIXMLDocument.java:
155
)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:
183
)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:
232
)
at notax.web.common.ReadExcelTool.readExcelByPathname(ReadExcelTool.java:
93
)
at notax.web.action.wjdata.DataImportAction.checkExcelValue(DataImportAction.java:
366
)
at notax.web.action.wjdata.DataImportAction.uploadExcel(DataImportAction.java:
270
)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39
)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25
)
at java.lang.reflect.Method.invoke(Method.java:
597
)
at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:
404
)
at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:
267
)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:
229
)
at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:
221
)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:
86
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
224
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
223
)
at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:
455
)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:
221
)
at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:
150
)
at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:
48
)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:
86
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
224
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
223
)
at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:
455
)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:
221
)
at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:
123
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
224
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
223
)
at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:
455
)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:
221
)
at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:
167
)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:
86
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
224
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
223
)
at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:
455
)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:
221
)
at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:
105
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
224
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
223
)
at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:
455
)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:
221
)
at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:
83
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
224
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
223
)
at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:
455
)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:
221
)
at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:
268
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
224
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
223
)
at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:
455
)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:
221
)
at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:
74
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
224
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
223
)
at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:
455
)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:
221
)
at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:
127
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
224
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
223
)
at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:
455
)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:
221
)
at org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(ProfilingActivationInterceptor.java:
107
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
224
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
223
)
at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:
455
)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:
221
)
at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:
206
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
224
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
223
)
at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:
455
)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:
221
)
at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:
115
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
224
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
223
)
at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:
455
)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:
221
)
at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:
143
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
224
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
223
)
at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:
455
)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:
221
)
at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:
121
)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:
86
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
224
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
223
)
at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:
455
)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:
221
)
at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:
170
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
224
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
223
)
at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:
455
)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:
221
)
at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:
123
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
224
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
223
)
at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:
455
)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:
221
)
at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:
176
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
224
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
223
)
at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:
455
)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:
221
)
at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:
105
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
224
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
223
)
at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:
455
)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:
221
)
at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:
167
)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:
86
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
224
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
223
)
at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:
455
)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:
221
)
at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:
83
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
224
)
at com.opensymphony.xwork2.DefaultActionInvocation$
2
.doProfiling(DefaultActionInvocation.java:
223
)
at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:
455
)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:
221
)
at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:
50
)
at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:
504
)
at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:
419
)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
235
)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
206
)
at org.ecside.filter.ECSideFilter.doFilter(ECSideFilter.java:
188
)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
235
)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
206
)
at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:
99
)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
235
)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
206
)
at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:
173
)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:
77
)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
235
)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
206
)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:
78
)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:
77
)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
235
)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
206
)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:
265
)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:
107
)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:
72
)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:
275
)
at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:
166
)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:
275
)
at org.acegisecurity.ui.switchuser.SwitchUserProcessingFilter.doFilter(SwitchUserProcessingFilter.java:
341
)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:
275
)
at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:
125
)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:
275
)
at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:
142
)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:
275
)
at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:
81
)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:
275
)
at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:
173
)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:
275
)
at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:
271
)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:
275
)
at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:
110
)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:
275
)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:
249
)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:
275
)
at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:
149
)
at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:
98
)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
235
)
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:
191
)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
127
)
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:
298
)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:
864
)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:
579
)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:
1665
)
at java.lang.Thread.run(Thread.java:
662
)
添加ooxml-lib下的三个包
dom4j-1.6.1.jar
stax-api-1.0.1.jar
xmlbeans-2.3.0.jar
删除 xbean-2.1.0.jar;
主要是在eclipse里面的build path 删掉 xbean-2.1.0.jar结果没用,要到tomcat里的部署包下删掉xbean-2.1.0.jar才行
java poi解析excel报错处理的更多相关文章
- java POI 解析excel 2003和2007 直接转为List<Map> 返回
1.POI 官网下载jar包,3.5以上 2.项目导入jar包 3.参数:String数组--对应的excel列名对应的KEY,File excel文件,sheetNumber ---excel的s ...
- java poi解析excel日期为数字的问题
这个数字是什么呢?是以1900年为原点,到2015年8月21日,之间经过的天数. 知道这个后,就很好处理了,我们拿到1900年的日期,在这个日期上加上42237天即可.如下: Calendar cal ...
- weblogic 12c下jxls导出excel报错Could not initialize class org.apache.poi.xssf.usermodel.XSSFVMLDrawing
周一,开发反馈weblogic 12c下jxls导出excel报错,公司环境和UAT环境均报错,看日志如下: 2016-06-08 09:16:55,825 ERROR org.jxls.util.T ...
- java导出excel报错:getOutputStream() has already been called for this response
对于java导出excel报错的问题,查了很多都说是在使用完输出流以后调用以下两行代码即可 out.clear(); out = pageContext.pushBody(); 但这也许是页面上输出时 ...
- java读写excel文件( POI解析Excel)
package com.zhx.base.utils; import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.apache.poi ...
- 【spring boot】spring boot 前台GET请求,传递时间类型的字符串,后台无法解析,报错:Failed to convert from type [java.lang.String] to type [java.util.Date]
spring boot 前台GET请求,传递时间类型的字符串,后台无法解析,报错:Failed to convert from type [java.lang.String] to type [jav ...
- Poi读取Excle报错 java.util.zip.ZipException: invalid stored block lengths
一:Poi读取Excle报错 java.util.zip.ZipException: invalid stored block lengths 系统中需要导出excle签收单,excle模板是预设好 ...
- poi解析Excel文件版本问题
poi解析Excel文件时有两种格式: HSSFWorkbook格式用来解析Excel2003(xls)的文件 XSSFWorkbook格式用来解析Excel2007(xlsx)的文件 如果用HSSF ...
- 在java poi导入Excel通用工具类示例详解
转: 在java poi导入Excel通用工具类示例详解 更新时间:2017年09月10日 14:21:36 作者:daochuwenziyao 我要评论 这篇文章主要给大家介绍了关于在j ...
随机推荐
- Tomcat压缩传输设置
1.配置位于server.xml文件中的Connector节点下,具体参数如下: 参数 默认值 参数说明 compression off 是否开启压缩传输 compressableMimeType t ...
- 逆袭之旅DAY16.东软实训.Oracle.索引
2018-07-12 14:44:27 四.索引1.创建索引手动创建:create index 索引名 on 表名(列名,[列名,...])create table employee(pno numb ...
- jenkins部署java项目到远程linux(四)
(1)新建java项目(maven构建) pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:x ...
- 常见的SQLALCHEMY列类型
常见的SQLALCHEMY列类型.配置选项和关系选项 类型名称 python类型 描述 Integer int 常规整形,通常为32位 SmallInteger int 短整形, ...
- 读书笔记 enum枚举之位标志属性(Flags)浅析
针对enum枚举来说,可以定义位标志属性,从而使该枚举类型的实例可以存储枚举列表中定义值的任意组合.可以用 与(&).或(|).异或(^)进行相应的运算.废话不多说,代码最直接. //每一个定 ...
- substr、substring和slice的区别
substr(start,[length])表示从start位置开始取length个字符串:substring(start,end)表示从start,到end之间的字符串,包括start位置的字符但是 ...
- 开发框架DevExtreme全新发布v18.2.6|附下载
DevExtreme Complete Subscription是性能最优的 HTML5,CSS 和 JavaScript 移动.Web开发框架,可以直接在Visual Studio集成开发环境,构建 ...
- 计算图 graph
tensorflow,tensor就是数据,flow就是流,tensorflow就是数据流 tensorflow是一个用计算图的形式来表示计算的编程系统,所有的数据和计算都会被转化成计算图上的一个节点 ...
- 实力封装:Unity打包AssetBundle(三)
前情提要:第二种打包方式 窗口初现 通过前面的两篇教程和一篇番外,我们已经完全实现了打包的功能.但是使用起来总是觉得有些晦涩别扭,如果不告诉别人怎么使用,对方肯定是一头雾水. What?你给我的这是啥 ...
- day 50 JS框架基础
一 JavaScript的历史1 Netscape(网景)接收Nombas的理念,(Brendan Eich)在其Netscape Navigator 2.0产品中开发出一套livescript的脚本 ...