Richard.Huang
发表于 2023-9-7 10:12:27
扁担宽板凳长 发表于 2023-8-31 15:03
好的 我们升级到v6.2.1版本观察一下
您好,请问您升级到v6.2.1之后问题有解决吗:loveliness:
扁担宽板凳长
发表于 2023-9-14 16:23:12
您好,这个case没有再次出现了
Ellia.Duan
发表于 2023-9-14 18:01:58
好的,那就先结贴啦,有问题欢迎发新帖询问。
扁担宽板凳长
发表于 2024-1-11 11:07:48
你好,经观察,该问题未得到解决,在v6.2.4版本仍偶现该问题,非必现问题,无法提供demo,请通过报错反推一下代码,看数组为什么会偶现越界。
Joestar.Xu
发表于 2024-1-11 12:07:22
收到,这边调研一下,后续有进展我会在本帖中回复您。
问题编号:DOCXLS-9622
Joestar.Xu
发表于 2024-1-12 14:36:34
您好,需要您提供一个完整的stack trace信息来进一步调研。
扁担宽板凳长
发表于 2024-1-18 17:34:01
今天发生了该问题的模版:
完整的stacktrace:
2024-01-18 17:23:51.908 9100-exec-10] ERROR c.g.c.ComplexReportProRender - 199] - #### COMPLEX_REPORT_PRO RENDER_ERROR:
java.lang.IllegalArgumentException: java.lang.IndexOutOfBoundsException: Index 1 out of bounds for length 1
at com.grapecity.documents.excel.p.c.L.a(Unknown Source)
at com.grapecity.documents.excel.Workbook.a(Unknown Source)
at com.grapecity.documents.excel.Workbook.save(Unknown Source)
at com.grapecity.documents.excel.Workbook.save(Unknown Source)
at com.grapecity.documents.excel.Workbook.save(Unknown Source)
at com.guandata.complex_report_pro.ComplexReportProRender.saveReport(ComplexReportProRender.java:411)
at com.guandata.complex_report_pro.ComplexReportProRender.executeProcessByStep(ComplexReportProRender.java:241)
at com.guandata.complex_report_pro.ComplexReportProRender.generateReportContent(ComplexReportProRender.java:191)
at com.guandata.complex_report_pro.controller.ComplexReportProController.generate(ComplexReportProController.java:28)
at jdk.internal.reflect.GeneratedMethodAccessor91.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1067)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:963)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:681)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:769)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:889)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1743)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.IndexOutOfBoundsException: Index 1 out of bounds for length 1
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)
at java.base/java.util.Objects.checkIndex(Objects.java:372)
at java.base/java.util.ArrayList.get(ArrayList.java:459)
at com.grapecity.documents.excel.C.bu.l(Unknown Source)
at com.grapecity.documents.excel.p.c.aA.a(Unknown Source)
... 59 common frames omitted
Joestar.Xu
发表于 2024-1-18 17:38:44
收到, 这边反馈一下。
Joestar.Xu
发表于 2024-1-19 09:50:20
您好,根据您提供的堆栈信息,我们初步推测是在保存时的某个内部函数发生了异常。
能否请您提供更多的详细信息呢?如数据源是什么?在processTemplate后做了什么其他操作?或者在打开模板和processTemplate之间做了什么操作?
扁担宽板凳长
发表于 2024-1-19 14:49:50
您好,这个模版使用的两个数据源,,在process之后,调用了workbook.calculate();然后就workbook.save()了。
在process之前,步骤同另一个帖子的最新回复,https://gcdn.grapecity.com.cn/forum.php?mod=viewthread&tid=201452&page=2#pid752976