Difference between revisions of "Extensions trouble shooting"

From Apache OpenOffice Wiki
Jump to: navigation, search
(added work-arounds as mentioned in http://www.oooforum.org/forum/viewtopic.phtml?t=42403)
Line 3: Line 3:
  
 
Collection of pitfalls and solutions regarding the extension development
 
Collection of pitfalls and solutions regarding the extension development
 
 
#[[#java_loader|Could not create Java implementation loader]]
 
 
 
 
 
  
 
<ol>
 
<ol>
Line 20: Line 13:
  
 
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.
 +
</p>
 +
</li>
 +
<li>
 +
Possible Work-Arounds
 +
<p>
 +
If you receive this message and think it is not related to the above mentioned problem the following work-arounds might help:</p>
 +
<p>
 +
- Rename/Remove your openoffice.org user folder. (e.g. in Ubuntu it is .openoffice.org2/user in your home directory)
 +
</p>
 +
<p>
 +
- Go into Options and uncheck Java/"Use a Java runtime environment."
 +
Restart OpenOffice and try to enable the extension again. Receive the same error.
 +
Return the check to the "Use a Java runtime environment" box.
 
</p>
 
</p>
 
</li>
 
</li>
 
</ol>
 
</ol>
 
[[Category:Extensions]]
 
[[Category:Extensions]]

Revision as of 14:12, 30 April 2008

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

    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.

  2. Possible Work-Arounds

    If you receive this message and think it is not related to the above mentioned problem the following work-arounds might help:

    - Rename/Remove your openoffice.org user folder. (e.g. in Ubuntu it is .openoffice.org2/user in your home directory)

    - Go into Options and uncheck Java/"Use a Java runtime environment." Restart OpenOffice and try to enable the extension again. Receive the same error. Return the check to the "Use a Java runtime environment" box.

Personal tools