To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=61146
                  Issue #:|61146
                  Summary:|Scripting Framework hangs if using a class that
                          |employs UNO reflection
                Component:|scripting
                  Version:|OOo 2.0
                 Platform:|All
                      URL:|http://wi.wu-
                          |wien.ac.at/rgf/rexx/bsf4rexx/tmp/OOo/Scriptinginterfa
                          |ceHangsWithMacro.zip-zip
               OS/Version:|All
                   Status:|NEW
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P1
             Subcomponent:|code
              Assigned to:|sb
              Reported by:|ronyf





------- Additional comments from [EMAIL PROTECTED] Wed Jan 25 03:48:51 -0800 
2006 -------
Using the class "org.oorexx.uno.RgfReflectUNO" in the zip file
(<http://wi.wu-wien.ac.at/rgf/rexx/bsf4rexx/tmp/OOo/ScriptinginterfaceHangsWithMacro.zip-zip>)
from the commandline (outside of the OOo Java scripting framework) with a Java
program works.

Unfortunately the class "org.oorexx.uno.RgfReflectUNO" hangs the Java Scripting
Framework if using a method that itself uses UNO reflection! (This is a real
showstopper problem at the moment for developing macros.) 

There is a readme briefly describing how to setup and invoke the enclosed short
test programs. Here's the content:

------------------ cut here -----------------
2006-01-25, ---rgf

Testcase to demonstrate the OOo Scripting Framework hanging, if using a class
with UNO reflection via Java.

Setting up:

1) unzip the archive

2) copy "oorexx-uno.jar" to "%OOo-Home%\program\classes"

   ... contains the class "org.oorexx.uno.RgfReflectUNO" together with the 
source

Testing:

1) Commandline, enter:

   java TestRgfReflectUNO

   ... will output type name and definition of a fuly qualified UNO IDL string
denoting
       "com.sun.star.resource.XResourceBundle", the UNO context object and the
       "XMultiComponentFactory" UNO service object

   ---> works!

2) OOo 2.0: Executing a macro, accessing RgfReflectUNO --> hangs

   - load swriter, choose "Tools->Macros->Organize Macros->BeanShell

   - create a new macro and replace the content with the code supplied in the
accompanying
     "beanShellMacro.bsh"

   - run the macro

   - it can access a public static field of the class 
("rgfReflectUNO.version"), but

   ---> does not return from invoking RgfReflectUNO.getTypeName(...) !

        - Scripting debug window cannot be closed

        - One needs to kill "soffice.bin" with the task manager in order to get
rid of the
          scripting debug window and the associate instance of Java

------------------ cut here -----------------

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to