Issue 26074 - API: sfx.DocumentTemplates::XDocumentTemplates
Summary: API: sfx.DocumentTemplates::XDocumentTemplates
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: stephan.wunderlich
QA Contact: issues@api
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-03 13:14 UTC by stephan.wunderlich
Modified: 2013-02-24 21:09 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 stephan.wunderlich 2004-03-03 13:14:37 UTC
An 'java.lang.reflect.UndeclaredThrowableException' is thrown when the method
storeTemplate() is called.

Just execute 

%SOLARENV\bin\checkapi -tdoc %SOLARSRC\sc\qa\unoapi\testdocuments -o
sfx.AppDispatchProvider

to reproduce the behaviour.

Java-Stack:
java.lang.reflect.UndeclaredThrowableException
LOG>    at $Proxy8.storeTemplate(Unknown Source)
LOG>    at
ifc.frame._XDocumentTemplates._storeTemplate(_XDocumentTemplates.java:186)
LOG>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
LOG>    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
LOG>    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
LOG>    at java.lang.reflect.Method.invoke(Method.java:324)
LOG>    at lib.MultiMethodTest.invokeTestMethod(MultiMethodTest.java:409)
LOG>    at lib.MultiMethodTest.callMethod(MultiMethodTest.java:392)
LOG>    at lib.MultiMethodTest.executeMethod(MultiMethodTest.java:383)
LOG>    at lib.MultiMethodTest.run(MultiMethodTest.java:259)
LOG>    at base.java_fat.executeTest(java_fat.java:286)
LOG>    at org.openoffice.Runner.main(Runner.java:102)
LOG> Caused by: com.sun.star.container.NoSuchElementException: Configuration -
Child Element '_query_writer:iflags=54:eflags=64:default_first' not found in
/org.openoffice.TypeDetection.Filter/Filters
LOG>    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
LOG>    at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
LOG>    at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
LOG>    at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
LOG>    at
com.sun.star.lib.uno.protocols.urp.Unmarshal.readThrowable(Unmarshal.java:315)
LOG>    at com.sun.star.lib.uno.protocols.urp.Unmarshal.readAny(Unmarshal.java:157)
LOG>    at
com.sun.star.lib.uno.protocols.urp.Unmarshal.readObject(Unmarshal.java:404)
LOG>    at com.sun.star.lib.uno.protocols.urp.urp.readReply(urp.java:196)
LOG>    at com.sun.star.lib.uno.protocols.urp.urp.readMessage(urp.java:312)
LOG>    at com.sun.star.lib.uno.protocols.urp.urp.readMessage(urp.java:615)
LOG>    at
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.invoke(java_remote_bridge.java:186)
LOG>    at
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.run(java_remote_bridge.java:171)
Comment 1 andreas.schluens 2004-03-04 09:08:03 UTC
.
Comment 2 stephan.wunderlich 2004-03-04 09:31:07 UTC
Seems I had a typo-festival ;-)

%SOLARENV\bin\checkapi -tdoc %SOLARSRC\sfx2\qa\unoapi\testdocuments -o
sfx.DocumentTemplates

should make the problem reproducable.
Comment 3 andreas.schluens 2004-03-04 10:31:26 UTC
AS: Done. But please note: there exists a bug for the SRC680 m28 version, which
makes it inpossible to load the required writer template "report2.stw". I've
tried it with the following one and it worked:
"<officeinst>\share\templates\english\forms\intrnlnt.stw".
Comment 4 andreas.schluens 2004-03-10 12:19:21 UTC
AS->SW: Please verify it on the cws again. THX.
Comment 5 stephan.wunderlich 2004-03-11 11:26:09 UTC
SW: fixed in cws_fwkbugfix01
Comment 6 stephan.wunderlich 2004-03-11 11:26:42 UTC
SW: works as expected in cws_fwbugfix01 => verified
Comment 7 stephan.wunderlich 2004-03-11 11:27:23 UTC
SW: and now I really pressed the verified button too ;-)
Comment 8 stephan.wunderlich 2004-03-22 14:51:10 UTC
SW: ok in src680_m32 => closed