Issue 93964 - Remove code which was used for old system integration + enhance netbeans debugging + java debugging
Summary: Remove code which was used for old system integration + enhance netbeans debu...
Status: ACCEPTED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: DEV300m31
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
: 106332 (view as issue list)
Depends on:
Blocks:
 
Reported: 2008-09-16 15:46 UTC by joachim.lingner
Modified: 2013-08-07 15:31 UTC (History)
3 users (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 joachim.lingner 2008-09-16 15:46:45 UTC
That is

unopkg gui extension

can be removed.
Comment 1 joachim.lingner 2008-10-21 15:24:44 UTC
.
Comment 2 joachim.lingner 2008-12-09 14:28:18 UTC
Retargeting.
Comment 3 joachim.lingner 2009-07-22 08:53:41 UTC
@sg: Please explain why the netbeans API - plugin still needs this and why it
cannot start OOo + extension to install the extension. Then we can decide what
to fix or if we leave it the way it is.
Comment 4 steffen.grund 2009-07-22 10:30:19 UTC
This is needed for debugging an extension in NetBeans. 
As an example: you have developed your extension that uses a license and you
need to debug something inside of it.

As it is now:

- unopkg is executed like this:
  unopkg gui -f yourextension.oxt
  -> click ok to register the extension, accpet the license, close extension
manager to proceed

- office is started with debug information
  -> do whatever is needed to trigger your extension, wait for any breakpoint to hit

Other scenarios we evaluated:

1. simply use 
    unopkg add -f yourextension.oxt
    -> does not work because of the license: you need to type yes to
acknowkledge the
        licensewhich you cannot do in NetBeans since the window where the
license appears
        is ouput only. There are possible workarounds, but unopkg gui is used by
us only
        because of the license problem in the first place.

2. use
    soffice yourextension.oxt
    -> first, extensions are not registered, when the Office is started with
debug parameters.
        To get around this, we would have to start the office first with
"soffice yourextension.oxt",
        wait for the user to register the extension and close the office, then
start the office again
        with debug parameters. From the user's point of view: why must he close
the office to
        get it started again afterwards?
        second, unfortunately with "soffice yourextension.oxt" the extension
manager appears
        behind the Office, not in front. You have to accept the license and then
change windows
        to the extension manager to proceed.
Comment 5 steffen.grund 2009-10-15 11:48:02 UTC
What should happen now to this bug? Close it as "won't fix", or does anyone have
a further suggestion?
Comment 6 joachim.lingner 2009-10-19 11:41:21 UTC
The problem is that "soffice extension.oxt" fails with the message "Java
implementation loader couldn't be created". Which is possible caused be the Java
VM  in the office process and the one in the uno process which use the same
debug parameters. The problem is described here
http://wiki.services.openoffice.org/wiki/Extensions_trouble_shooting

A possible solution would be to use the debug setting of the java framework. One
can use bootstrap parameters, such as 
-env:UNO_JAVA_JFW_PARAMETER_1=-Xdebug
   
-env:UNO_JAVA_JFW_PARAMETER_2=-Xrunjdwp:transport=dt_socket,server=y,address=8100

which are currently only usable in "Direct  mode". See jvmfwk/inc/jvmfwk/framework.h

The java framework could be adapted that the bootstrap parameter overrides the
user settings.

Then one needs a bootstrap variable for the extension manager, which is used to
pass particular bootstrap variables on to the uno child process. For example,
soffice is started like this:

soffice -env:EXTENSION_MGR_UNO_PARAMS=UNO_JAVA_JFW_PARAMETER_1=-Xdebug

The extension manager would then pass UNO_JAVA_JFW_PARAMETER_1=-Xdebug
to the uno process.
Comment 7 joachim.lingner 2009-10-19 11:44:27 UTC
.
Comment 8 joachim.lingner 2009-10-19 11:47:11 UTC
.
Comment 9 joachim.lingner 2009-10-27 11:01:37 UTC
*** Issue 106332 has been marked as a duplicate of this issue. ***
Comment 10 joachim.lingner 2009-10-27 11:22:59 UTC
The special bootstrap variable would solve the problem for the API plugin, but
it is still no solution for the case when the user installs in OO several java
extensions while having provided debug parameters. For this case, one should
prevent that the debug parameter from the options dialog are passed to the uno
processes. Of course, the java code in the uno process could then not be
debugged unless one specified "EXTENSION_MGR_UNO_PARAMS".
Comment 11 joachim.lingner 2009-10-27 11:23:46 UTC
.