Hi.
I use Cuba 6.8 and LibreOffice 6. I need to generate report in PDF format on departments. On small departments it generates report without errors, but one department contains a lo of records, so report generates about 16 minutes and error appears
In log file
09:18:18.938 INFO c.h.r.libintegration.CubaReporting - Started report [Табель] with parameters [
pDepartment:kz.uco.tsadv.modules.personal.group.OrganizationGroupExt-c467916a-1a10-20f9-e7df-1f2fa134f2a0 [detached]
pCostCenter:null
pMonth:kz.uco.tsadv.global.dictionary.DicMonth-fc1cc926-0aaf-b277-9532-05dbe4e2e113 [detached]]
09:33:42.715 WARN o.d.jaxb.JaxbValidationEventHandler - [ERROR] : unexpected element (uri:"http://schemas.openxmlformats.org/markup-compatibility/2006", local:"AlternateContent"). Expect
09:33:42.715 WARN o.d.jaxb.JaxbValidationEventHandler - Column is 530 at line number 2
09:33:43.630 WARN org.docx4j.utils.XSLTUtils - Found some mc:AlternateContent
09:33:43.630 WARN org.docx4j.utils.XSLTUtils - Missing mc:Fallback! Dropping the mc:AlternateContent entirely.
09:33:43.766 WARN o.d.jaxb.JaxbValidationEventHandler - [ERROR] : unexpected element (uri:"http://schemas.openxmlformats.org/markup-compatibility/2006", local:"AlternateContent"). Expect
09:33:43.766 WARN o.d.jaxb.JaxbValidationEventHandler - Column is 530 at line number 2
09:33:43.769 WARN org.docx4j.utils.XSLTUtils - Found some mc:AlternateContent
09:33:43.769 WARN org.docx4j.utils.XSLTUtils - Missing mc:Fallback! Dropping the mc:AlternateContent entirely.
09:34:37.762 INFO c.h.y.f.impl.doc.connector.OOServer - OOServer is killing office instance with port 8100
09:34:37.773 INFO c.h.y.f.i.d.c.JavaProcessManager - Linux office process manager is going to kill following processes [12773, 12788]
09:34:37.782 WARN c.h.y.f.i.xls.DocumentConverterImpl - An error occurred while converting. System will retry to generate report again.
com.haulmont.yarg.exception.OpenOfficeException: java.util.concurrent.TimeoutException
at com.haulmont.reports.libintegration.CubaOfficeIntegration.runTaskWithTimeout(CubaOfficeIntegration.java:68)
at com.haulmont.yarg.formatters.impl.xls.DocumentConverterImpl.convertOnes(DocumentConverterImpl.java:91)
at com.haulmont.yarg.formatters.impl.xls.DocumentConverterImpl.convertWithRetry(DocumentConverterImpl.java:59)
at com.haulmont.yarg.formatters.impl.xls.DocumentConverterImpl.convertToPdf(DocumentConverterImpl.java:48)
at com.haulmont.yarg.formatters.impl.XlsxFormatter.saveAndClose(XlsxFormatter.java:138)
at com.haulmont.yarg.formatters.impl.XlsxFormatter.renderDocument(XlsxFormatter.java:116)
at com.haulmont.yarg.reporting.Reporting.generateReport(Reporting.java:133)
at com.haulmont.yarg.reporting.Reporting.runReport(Reporting.java:100)
at com.haulmont.yarg.reporting.Reporting.runReport(Reporting.java:83)
at com.haulmont.reports.ReportingBean.createReportDocument(ReportingBean.java:315)
at com.haulmont.reports.ReportingBean.createReport(ReportingBean.java:195)
at com.haulmont.reports.ReportServiceBean.createReport(ReportServiceBean.java:40)
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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:85)
at com.haulmont.cuba.core.sys.ServiceInterceptor.aroundInvoke(ServiceInterceptor.java:117)
at sun.reflect.GeneratedMethodAccessor482.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:629)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:618)
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:168)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
at com.sun.proxy.$Proxy161.createReport(Unknown Source)
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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
at com.sun.proxy.$Proxy320.createReport(Unknown Source)
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.springframework.remoting.support.RemoteInvocation.invoke(RemoteInvocation.java:212)
at com.haulmont.cuba.core.sys.remoting.CubaRemoteInvocationExecutor.invoke(CubaRemoteInvocationExecutor.java:110)
at org.springframework.remoting.support.RemoteInvocationBasedExporter.invoke(RemoteInvocationBasedExporter.java:78)
at org.springframework.remoting.support.RemoteInvocationBasedExporter.invokeAndCreateResult(RemoteInvocationBasedExporter.java:114)
at com.haulmont.cuba.core.sys.remoting.HttpServiceExporter.handleRequest(HttpServiceExporter.java:77)
at org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle(HttpRequestHandlerAdapter.java:51)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)
at com.haulmont.cuba.core.sys.remoting.RemotingServlet.doService(RemotingServlet.java:152)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.util.concurrent.TimeoutException: null
at java.util.concurrent.FutureTask.get(FutureTask.java:205)
at com.haulmont.reports.libintegration.CubaOfficeIntegration.runTaskWithTimeout(CubaOfficeIntegration.java:40)
... 78 common frames omitted
If I generate this report in xlsx format with the same parameters it generates without error
09:39:18.051 INFO c.h.r.libintegration.CubaReporting - Started report [Табель] with parameters [
pDepartment:kz.uco.tsadv.modules.personal.group.OrganizationGroupExt-c467916a-1a10-20f9-e7df-1f2fa134f2a0 [detached]
pCostCenter:null
pMonth:kz.uco.tsadv.global.dictionary.DicMonth-fc1cc926-0aaf-b277-9532-05dbe4e2e113 [detached]]
09:55:33.341 WARN o.d.jaxb.JaxbValidationEventHandler - [ERROR] : unexpected element (uri:"http://schemas.openxmlformats.org/markup-compatibility/2006", local:"AlternateContent"). Expect
09:55:33.341 WARN o.d.jaxb.JaxbValidationEventHandler - Column is 530 at line number 2
09:55:33.345 WARN org.docx4j.utils.XSLTUtils - Found some mc:AlternateContent
09:55:33.345 WARN org.docx4j.utils.XSLTUtils - Missing mc:Fallback! Dropping the mc:AlternateContent entirely.
09:55:33.441 WARN o.d.jaxb.JaxbValidationEventHandler - [ERROR] : unexpected element (uri:"http://schemas.openxmlformats.org/markup-compatibility/2006", local:"AlternateContent"). Expect
09:55:33.442 WARN o.d.jaxb.JaxbValidationEventHandler - Column is 530 at line number 2
09:55:33.444 WARN org.docx4j.utils.XSLTUtils - Found some mc:AlternateContent
09:55:33.444 WARN org.docx4j.utils.XSLTUtils - Missing mc:Fallback! Dropping the mc:AlternateContent entirely.
09:55:43.987 INFO c.h.r.libintegration.CubaReporting - Finished report [Табель] with parameters [
pDepartment:kz.uco.tsadv.modules.personal.group.OrganizationGroupExt-c467916a-1a10-20f9-e7df-1f2fa134f2a0 [detached]
pCostCenter:null
pMonth:kz.uco.tsadv.global.dictionary.DicMonth-fc1cc926-0aaf-b277-9532-05dbe4e2e113 [detached]]
How I could increase timeout parameters for generating PDF?
In my local.app.properties values
reporting.openoffice.path = /opt/libreoffice6.0/program
reporting.openoffice.docx.useOfficeForDocumentConversion = true
I also tryed set Application Properties parameters
reporting.backgroundReportProcessingTimeoutMs = 6 000 000
reporting.useBackgroundReportProcessing = true
The same error appears.
As I undersand there is timeout exeption while converting to PDF format. How can I prevent the error?