Hi Felix,

the stack should be printed to the stderr, it might be that it is redirected. Please try to print to a file using java.io.PrintStream and e.printStackTrace( PrintStream ). Additionally you could the printing at the beginning of the method and in the constructor to be sure that the printing works at all.

Best regards,
Mikhail.

On 06/02/09 11:22, Zhang Xiaofei wrote:
Hi Mikhail,

Sorry, but after I delivered the modified jurt.jar to the installation path, I looked both from Visual Studio output with OOo being debugged, and from running unopkg from console, but neither seems to be the right way to see the call stack printed. Could you please give me a hint please?

Thanks and Best Regards,
Felix.

Mikhail Voytenko
Hi Felix,

The problem with debugging of the registration process was indeed the java implementation of the JavaLoader. For the further investigation please introduce the change in the JavaLoader implementation
jurt/com/sun/star/comp/loader/JavaLoader.java
in method
public boolean writeRegistryInfo()

The caught in the method exception should be used to print the call stack. You could use "e.printStackTrace()" call to get the stack to the exception. By the way, please change "catch ( Exception e )" to "catch( Throwable )" to catch all the exceptions.

Best regards,
Mikhail.





--
Sun Microsystems GmbH                Mikhail Voytenko
Nagelsweg 55                         Software Engineer
20097 Hamburg                        Phone: (+49 40)23646 500
Germany                              Fax:   (+49 40)23646 550
http://www.sun.de                    mailto:mikhail.voyte...@sun.com

Sitz der Gesellschaft:
Sun Microsystems GmbH, Sonnenallee 1, D-85551 Kirchheim-Heimstetten
Amtsgericht München: HRB 161028
Geschäftsführer: Thomas Schröder, Wolfgang Engels, Wolf Frenkel
Vorsitzender des Aufsichtsrates: Martin Häring



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@framework.openoffice.org
For additional commands, e-mail: dev-h...@framework.openoffice.org

Reply via email to