Apache OpenOffice (AOO) Bugzilla – Issue 71798
OLE2Shape missing 'Name' property
Last modified: 2014-04-16 16:16:45 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.
Created attachment 40783 [details] Example program demonstrating bug
Created attachment 40784 [details] Sample file with Name'd OLE2Shape
Please have a look. You are more into Java, maybe you can help. Thanks.