Apache OpenOffice (AOO) Bugzilla – Issue 26074
API: sfx.DocumentTemplates::XDocumentTemplates
Last modified: 2013-02-24 21:09:36 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)
.
Seems I had a typo-festival ;-) %SOLARENV\bin\checkapi -tdoc %SOLARSRC\sfx2\qa\unoapi\testdocuments -o sfx.DocumentTemplates should make the problem reproducable.
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".
AS->SW: Please verify it on the cws again. THX.
SW: fixed in cws_fwkbugfix01
SW: works as expected in cws_fwbugfix01 => verified
SW: and now I really pressed the verified button too ;-)
SW: ok in src680_m32 => closed