Issue 114195 - xBitmapContainer.insertByName does not seem to work
Summary: xBitmapContainer.insertByName does not seem to work
Status: UNCONFIRMED
Alias: None
Product: udk
Classification: Code
Component: code (show other issues)
Version: OOO330m3
Hardware: Unknown All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-30 08:57 UTC by scanti
Modified: 2017-05-20 11:33 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description scanti 2010-08-30 08:57:07 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
Comment 1 kay.ramme 2010-11-16 09:32:46 UTC
Please dispatch.
Comment 2 Marcus 2017-05-20 11:33:21 UTC
Reset assigne to the default "issues@openoffice.apache.org".