Issue 71798 - OLE2Shape missing 'Name' property
Summary: OLE2Shape missing 'Name' property
Status: UNCONFIRMED
Alias: None
Product: Impress
Classification: Application
Component: programming (show other issues)
Version: OOo 2.0.4
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: needhelp
Depends on:
Blocks:
 
Reported: 2006-11-21 08:15 UTC by unlord
Modified: 2014-04-16 16:16 UTC (History)
2 users (show)

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


Attachments
Example program demonstrating bug (2.87 KB, text/plain)
2006-11-21 08:18 UTC, unlord
no flags Details
Sample file with Name'd OLE2Shape (14.61 KB, application/vnd.oasis.opendocument.presentation)
2006-11-21 08:19 UTC, unlord
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
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.