Comments (3)
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.
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.
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)
- Text formatting from TextArea component is not saved during report generation
- Yarg tries to parse the UUID of the document from the link inside formula and fails.
- How to get Loop data printed in DOC? HOT 1
- Excel styling
- SQL refcursor type data
- Convert parameter / field in LibreOffice QR Code / Barcode
- LibreOffice not responding for long time without timeout
- Do not copy the "PrintArea" settings to the output for XLSX format
- Provide transitive vulnerable dependency itext:2.1.7
- Avoiding Groovy string length max size
- Error while generation report with more than 65535 rows HOT 1
- Missing "Notes" element on docx to pdf converting HOT 1
- Disable calcChain processing
- docx template containing a table generates java.lang.NullPointerException
- Variables are not substituted with values in docx template
- LocalDateTime, LocalDate, LocalTime saved as String in xlsx
- Xlsx-report causes 'Index out of bounds' exception
- Upgrade dependencies HOT 5
- Responsibility for shutting down the ExecutorService
- DOCX template watermark support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yarg.