Apache OpenOffice (AOO) Bugzilla – Issue 114195
xBitmapContainer.insertByName does not seem to work
Last modified: 2017-05-20 11:33:21 UTC
I have a Java application that uses OpenOffice.org to create Presentation. It used to work till OOo 3.2. Recently I have updated to OOo 3.3 beta and I got this this exception com.sun.star.container.NoSuchElementException: at com.sun.star.lib.uno.environments.remote.Job.remoteUnoRequestRaisedException(Job.java:182) at com.sun.star.lib.uno.environments.remote.Job.execute(Job.java:148) at com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:344) at com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:313) at com.sun.star.lib.uno.environments.remote.JavaThreadPool.enter(JavaThreadPool.java:101) at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest(java_remote_bridge.java:652) at com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.request(ProxyFactory.java:154) at com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.invoke(ProxyFactory.java:136) the exception comes from this code: private String loadGraphicIntoDocument(XMultiServiceFactory factory, String cUrl, String internalName) { try { XNameContainer xBitmapContainer = (XNameContainer) UnoRuntime.queryInterface( XNameContainer.class, factory.createInstance("com.sun.star.drawing.BitmapTable")); xBitmapContainer.insertByName(internalName, cUrl); String internalURL = AnyConverter.toString(xBitmapContainer.getByName(internalName)); return internalURL; } catch (Exception ex) { Logger.getLogger(OOoWorker.class.getName()).log(Level.SEVERE, "Cannot load data", ex); return null; } } I hope this can be fixed for the release
Please dispatch.
Reset assigne to the default "issues@openoffice.apache.org".