com.sun.star.uno.RuntimeException "Could not create system bitmap!" [closed]

asked 2015-12-03 19:24:20 +0200

psg gravatar image

updated 2020-08-27 21:00:33 +0200

Alex Kemp gravatar image

Hi,

I run LibreOffice dev version 4.4.4.0.0+ Build ID: d276993a1b60f66ce4322c29709c0c3907977663 in a headless mode - soffice.exe -accept="socket,host=0.0.0.0,port=8100;urp;StarOffice.ServiceManager" -headless -nodefault -nofirststartwizard -nolockcheck -nologo -norestore

A separate web app requests a conversion of file.docx to file.pdf followed by a print command and I got (for now just one time):

Caused by: com.sun.star.uno.RuntimeException: Could not create system bitmap!
    at com.sun.star.lib.uno.environments.remote.Job.remoteUnoRequestRaisedException(Job.java:161)
    at com.sun.star.lib.uno.environments.remote.Job.execute(Job.java:125)
    at com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:319)
    at com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:288)
    at com.sun.star.lib.uno.environments.remote.JavaThreadPool.enter(JavaThreadPool.java:80)
    at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest(java_remote_bridge.java:619)
    at com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.request(ProxyFactory.java:142)
    at com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.invoke(ProxyFactory.java:123)
    at com.sun.proxy.$Proxy122.print(Unknown Source)
    at com.as.beacons.srv.cmd.util.office.impl.OfficeMgrImpl.printDocument(OfficeMgrImpl.java:417)
    at com.as.beacons.srv.cmd.util.office.impl.OfficeMgrImpl.convert(OfficeMgrImpl.java:166)

The document is a simple one containing only text. The exception is thrown on the last line of the following code:

XPrintable xPrintable = UnoRuntime.queryInterface(XPrintable.class, document);
Map<String, Object> props = new HashMap<String, Object>();
props.put("Name", printerName);
xPrintable.setPrinter(toUnoProperties(props));
props.clear();
props.put("Wait", true);
props.put("CopyCount", copyCount);
xPrintable.print(toUnoProperties(props));

What could be the reason for this exception? I couldn't find any information on the web or in libreoffice forums.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by Alex Kemp
close date 2020-08-27 21:00:46.983954