Здравствуйте!
Я создал отчет с шаблоном doc
Настроил доступ к libre office
Содержимое папки /usr/lib/libreoffice/program
Операционная система:
Distributor ID: AstraLinuxCE
Description: Astra Linux CE 2.12.29 (Orel)
Release: 2.12.29
Codename: orel
При запуске отчета выходит ошибка:
Стек вызова:
java.lang.NoSuchMethodError: ‘void com.sun.star.comp.servicemanager.ServiceManager.setDefaultContext(com.sun.star.uno.XComponentContext)’
at com.sun.star.comp.helper.Bootstrap.createInitialComponentContext(Bootstrap.java:163)
at com.sun.star.comp.helper.Bootstrap.createInitialComponentContext(Bootstrap.java:132)
at com.haulmont.yarg.formatters.impl.doc.connector.BootstrapConnector.getLocalContext(BootstrapConnector.java:180)
at com.haulmont.yarg.formatters.impl.doc.connector.BootstrapConnector.disconnect(BootstrapConnector.java:152)
at com.haulmont.yarg.formatters.impl.doc.connector.OfficeConnection.close(OfficeConnection.java:84)
at com.haulmont.reports.libintegration.CubaOfficeIntegration.runTaskWithTimeout(CubaOfficeIntegration.java:55)
at com.haulmont.yarg.formatters.impl.DocFormatter.doCreateDocument(DocFormatter.java:129)
at com.haulmont.yarg.formatters.impl.DocFormatter.renderDocument(DocFormatter.java:88)
at com.haulmont.yarg.reporting.Reporting.generateReport(Reporting.java:134)
at com.haulmont.yarg.reporting.Reporting.runReport(Reporting.java:93)
at com.haulmont.yarg.reporting.Reporting.runReport(Reporting.java:116)
at com.haulmont.reports.ReportingBean.createReportDocumentInternal(ReportingBean.java:381)
at com.haulmont.reports.ReportingBean.createReportDocument(ReportingBean.java:330)
at com.haulmont.reports.ReportingBean.createReport(ReportingBean.java:235)
at com.haulmont.reports.ReportServiceBean.createReport(ReportServiceBean.java:61)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
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.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88)
at com.haulmont.cuba.core.sys.ServiceInterceptor.aroundInvoke(ServiceInterceptor.java:90)
at jdk.internal.reflect.GeneratedMethodAccessor148.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.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633)
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:95)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
at com.sun.proxy.$Proxy267.createReport(Unknown Source)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.haulmont.cuba.core.sys.remoting.LocalServiceInvokerImpl.invoke(LocalServiceInvokerImpl.java:94)
at com.haulmont.cuba.web.sys.remoting.LocalServiceProxy$LocalServiceInvocationHandler.invoke(LocalServiceProxy.java:155)
at com.sun.proxy.$Proxy67.createReport(Unknown Source)
at com.haulmont.reports.gui.ReportGuiManager.getReportResult(ReportGuiManager.java:289)
at com.haulmont.reports.gui.ReportGuiManager$1.run(ReportGuiManager.java:418)
at com.haulmont.reports.gui.ReportGuiManager$1.run(ReportGuiManager.java:413)
at com.haulmont.cuba.gui.backgroundwork.LocalizedTaskWrapper.run(LocalizedTaskWrapper.java:57)
at com.haulmont.cuba.web.gui.executors.impl.WebBackgroundWorker$WebTaskExecutor.call(WebBackgroundWorker.java:205)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at com.haulmont.cuba.web.gui.executors.impl.WebBackgroundWorker$WebTaskExecutor.lambda$startExecution$1(WebBackgroundWorker.java:376)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Подскажите, пожалуйста в чем может быть проблема?