Issue 71798

Summary: OLE2Shape missing 'Name' property
Product: Impress Reporter: unlord <nathanegge>
Component: programmingAssignee: AOO issues mailing list <issues>
Status: UNCONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: elish, issues
Version: OOo 2.0.4Keywords: needhelp
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
Example program demonstrating bug
none
Sample file with Name'd OLE2Shape none

Description unlord 2006-11-21 08:15:40 UTC
I am trying to programmatically manipulate one of many Chart objects on a given
DrawPage.  In order to make my life easier, I have named all Shape objects (by
right clicking and selecting 'Name Object...').  However, when I then go and try
to programmatically print out the Name property of the Shape objects I get an
UnknownPropertyException when reach the OLE2Shape object.  This is curious since
I can clearly see the Name property using ooBasic.


I've created a stand-alone Java program that demonstrates this problem along
with a sample *.odp file.  This is the output I get when I run it:

$ java -classpath
.:lib/commons-io-1.2.jar:lib/jooconverter-2.1rc1.jar:lib/openoffice-juh-2.0.2.jar:lib/openoffice-jurt-2.0.2.jar:lib/openoffice-ridl-2.0.2.jar:lib/openoffice-unoil-2.0.2.jar:lib/spring-core-1.2.8.jar:lib/commons-logging-1.1.jar
NameBug
Nov 21, 2006 3:04:43 AM
net.sf.jooreports.openoffice.connection.AbstractOpenOfficeConnection connect
INFO: connected
shapeCount=2
shape 0 has name=shape0
shape 1 missing property 'Name'
Nov 21, 2006 3:04:54 AM
net.sf.jooreports.openoffice.connection.AbstractOpenOfficeConnection disposing
INFO: disconnected
Exception in thread "main" com.sun.star.beans.UnknownPropertyException:
        at
com.sun.star.lib.uno.environments.remote.Job.remoteUnoRequestRaisedException(Job.java:275)
        at com.sun.star.lib.uno.environments.remote.Job.execute(Job.java:141)
        at
com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:377)
        at
com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:346)
        at
com.sun.star.lib.uno.environments.remote.JavaThreadPool.enter(JavaThreadPool.java:106)
        at
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest(java_remote_bridge.java:860)
        at
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest(java_remote_bridge.java:809)
        at
com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.request(ProxyFactory.java:159)
        at
com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.invoke(ProxyFactory.java:141)
        at $Proxy2.getPropertyValue(Unknown Source)
        at NameBug.main(NameBug.java:70)


I will attach the relevent files.
Comment 1 unlord 2006-11-21 08:18:04 UTC
Created attachment 40783 [details]
Example program demonstrating bug
Comment 2 unlord 2006-11-21 08:19:37 UTC
Created attachment 40784 [details]
Sample file with Name'd OLE2Shape
Comment 3 wolframgarten 2006-11-21 10:15:11 UTC
Please have a look. You are more into Java, maybe you can help. Thanks.