Git Product home page Git Product logo

Comments (3)

andreysubbotin avatar andreysubbotin commented on July 17, 2024

Hi @srinivas460

I tried to reproduce the problem on Ubuntu. Conversation from Excel to PDF using Open Office works correctly without errors.

Could you provide sample application and sample report for the test case?

Thanks.

from yarg.

srinivas460 avatar srinivas460 commented on July 17, 2024

i am still facing the same below is the error i face..

Sample is simple just 2 column of sample data and using the template to export to pdf ..
and my path in linux is : /usr/bin/openoffice4
Error Log below :

java.lang.RuntimeException: java.lang.RuntimeException: com.haulmont.yarg.exception.OpenOfficeException: Unable to create Open office components.

Caused by: com.haulmont.yarg.exception.OpenOfficeException: Unable to create Open office components.
at com.haulmont.yarg.formatters.impl.doc.connector.OfficeConnection.open(OfficeConnection.java:78) ~[yarg-1.0.70.jar:na]
at com.haulmont.yarg.formatters.impl.doc.connector.OfficeIntegration$1.call(OfficeIntegration.java:81) ~[yarg-1.0.70.jar:na]
at com.haulmont.yarg.formatters.impl.doc.connector.OfficeIntegration$1.call(OfficeIntegration.java:78) ~[yarg-1.0.70.jar:na]
at java.util.concurrent.FutureTask.run(FutureTask.java:262) ~[na:1.7.0_60]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_60]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_60]
... 1 common frames omitted

Caused by: com.sun.star.comp.helper.BootstrapException: null
at com.haulmont.yarg.formatters.impl.doc.connector.BootstrapConnector.connect(BootstrapConnector.java:131) ~[yarg-1.0.70.jar:na]
at com.haulmont.yarg.formatters.impl.doc.connector.BootstrapSocketConnector.connect(BootstrapSocketConnector.java:48) ~[yarg-1.0.70.jar:na]
at com.haulmont.yarg.formatters.impl.doc.connector.OfficeConnection.open(OfficeConnection.java:60) ~[yarg-1.0.70.jar:na]
... 6 common frames omitted

from yarg.

tinhol avatar tinhol commented on July 17, 2024

Have you tried to put Open Office jars to your classpath? In YARG dependencies there are jars for Open Office 3.0, which can fail to connect to modern versions of Open/Libre Office.

compile(group: 'org.openoffice', name: 'juh', version: '3.0.0')
compile(group: 'org.openoffice', name: 'ridl', version: '3.0.0')
compile(group: 'org.openoffice', name: 'unoil', version: '3.0.0')

You need just to replace the above jars in your classpath with jars from your Open Office version. Usually the jars are in /usr/share/libreoffice/program/classes or /usr/share/openiffice/program/classes directories.

from yarg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.