Issue 22194 - Insertion of XAutoTextElement fails when selection contains table
Summary: Insertion of XAutoTextElement fails when selection contains table
Status: CLOSED NOT_AN_OOO_ISSUE
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: PC Windows 2000
: P3 Trivial
Target Milestone: ---
Assignee: ooo
QA Contact: issues@api
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-06 11:41 UTC by spenk
Modified: 2013-02-24 21:07 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 spenk 2003-11-06 11:44:23 UTC
I have been using OpenOffice 1.0.3 for my self-defined mailmerge facility, 
which contains functionality for copying arbitrary blocks of text.
This works as follows:

XTextCursor selection =	getText().createTextCursorByRange(beginTag);
selection.gotoRange(endTag, true);
xate = xatg.insertNewByName("NAE", "New AutoTextEntry", selection);
xate.applyTo(endTag);

With OpenOffice 1.1 a RuntimeException is raised while 
executing 'insertNewByName':
com.sun.star.uno.RuntimeException: 
	at java.lang.reflect.Constructor.newInstance(Native Method)
	at com.sun.star.lib.uno.protocols.urp.Unmarshal.readThrowable
(Unmarshal.java:315)
	at com.sun.star.lib.uno.protocols.urp.Unmarshal.readAny
(Unmarshal.java:157)
	at com.sun.star.lib.uno.protocols.urp.Unmarshal.readObject
(Unmarshal.java(Compiled Code))
	at com.sun.star.lib.uno.protocols.urp.urp.readReply(urp.java(Compiled 
Code))
	at com.sun.star.lib.uno.protocols.urp.urp.readMessage(urp.java(Inlined 
Compiled Code))
	at com.sun.star.lib.uno.protocols.urp.urp.readMessage(urp.java(Compiled 
Code))
	at 
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.in
voke(java_remote_bridge.java(Compiled Code))
	at 
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.ru
n(java_remote_bridge.java:173)
Comment 1 spenk 2003-11-06 11:50:29 UTC
Unfinished version of 22195
Comment 2 ooo 2003-11-06 17:32:20 UTC
closing