Difference between revisions of "Extensions trouble shooting"

From Apache OpenOffice Wiki
Jump to: navigation, search
Line 17: Line 17:
 
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8100
 
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8100
 
</pre>
 
</pre>
If there is also a Java running in the office process, then the creation of the virtual machine in the second process will fail. The reason is, that the latter receives also the same debug settings. It appears that two virtual machines, although in separate processes, cannot use the same port for debugging. If one changes the port number before adding the extension (and after the Java has been created in the office process), then the extension will be installed properly.
+
If there is also a Java running in the office process, then the creation of the virtual machine in the second process will fail. The reason is, that the latter receives the same debug settings. It appears that two virtual machines, although in separate processes, cannot use the same port for debugging. If one changes the port number before adding the extension (and after the Java has been created in the office process), then the extension will be installed properly.
  
 
The same effect can be seen when running "unopkg gui". When installing the second Java component then a second uno.exe is created and the creation of the virtual machine in this process will fail.
 
The same effect can be seen when running "unopkg gui". When installing the second Java component then a second uno.exe is created and the creation of the virtual machine in this process will fail.

Revision as of 14:04, 15 May 2007

OOo Extensions project

Please view the wiki usage guidelines
before contributing.

Categories:

Pages:

Extensions on the main site

Extensions in other languages:
ES - FR - IT - JA - NL - OC -

Collection of pitfalls and solutions regarding the extension development


  1. Could not create Java implementation loader



  1. Could not create Java implementation loader

    When installing an extension containing a java service, then a message box may appear reading "Could not create Java implementation loader". This usually happens when one wants to debug Java in the office process and therefore has provided the debug options for Java in the options dialog. The Java service of the extension will be registered in a separate process (uno.exe) which also needs to start Java. This Java uses the same settings from the options dialog. For example:

    -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8100
    

    If there is also a Java running in the office process, then the creation of the virtual machine in the second process will fail. The reason is, that the latter receives the same debug settings. It appears that two virtual machines, although in separate processes, cannot use the same port for debugging. If one changes the port number before adding the extension (and after the Java has been created in the office process), then the extension will be installed properly.

    The same effect can be seen when running "unopkg gui". When installing the second Java component then a second uno.exe is created and the creation of the virtual machine in this process will fail.

Personal tools