Hello Fabio,

could you try the following?

1. Check if remote debugging works "by hand" without the help of the NetBeans plugin.

Open OpenOffice.org and register your extension, then do the following:

(Copied from http://user.services.openoffice.org/en/forum/viewtopic.php?f=45&t=3145)

* Enable Java remote debugging in OOo: Start OOo, and call "Tools" > "Options..." > "OpenOffice.org" branch > "Java". Select the JRE OOo uses and press the button "Parameter...". Enter now the Java start parameters

-Xrunjdwp:transport=dt_socket,server=y,address=12999,suspend=n

and press "Assign". Thats all, you have to do in OOo to enable remote debugging. (...)

* Set up NetBeans IDE for remote debugging: Start NetBeans IDE, and call "Run" > "Attach Debugger...". Select the Debugger "JPDA Debugger", the Connector "SocketAttach (Attaches by socket to the other VMs)", the Host "localhost" or "YOUR_HOSTNAME", the Port "12999" and leave the Timout empty.


2. I assume that you use the OpenOffice.org that comes with Ubuntu. I know of cases where the packaged versions of OpenOffice.org in Ubuntu did not behave as expected. Could you download and install OpenOffice.org and thze OpenOffice.org SDK from the website and try to reproduce the behaviour?

Regards, Steffen

Fabio Miranda wrote:
Hello,

I am trying to debug a extension in Ubuntu 64 with NB 6.8 and OO SDK latest
version. But, I came across this error:


debugging UNO extension package ...
/opt/openoffice.org3/program/unopkg gui -f
/home/fabio/NetBeansProjects/UniOffice/dist/UniOffice.oxt
starting the Office with ...
user installation:
file:///home/fabio/NetBeansProjects/UniOffice/build/soffice_debug
debug options:     "-Xdebug"
"-Xrunjdwp:transport=dt_socket,address=lesbia:39057"
/opt/openoffice.org3/program/soffice
Picked up JAVA_TOOL_OPTIONS: "-Xdebug"
"-Xrunjdwp:transport=dt_socket,address=lesbia:39057"
FATAL ERROR in native method: JDWP No transports initialized,
jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
ERROR: transport error 202: connect failed: Connection refused
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized
[../../../src/share/back/debugInit.c:690]
JavaVM: JNI_CreateJavaVM called _exit, caught by abort_handler in javavm.cxx
[Java framework] sunjavaplugin.soCan not create JavaVirtualMachine, abort
handler was called.
[Java framework] sunjavaplugin.soCan not create Java Virtual Machine



fa...@lesbia:/tmp/UniOffice$ java -version
java version "1.6.0_15"
Java(TM) SE Runtime Environment (build 1.6.0_15-b03)
Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02, mixed mode)
fa...@lesbia:/tmp/UniOffice$


thanks for any advise,

fabio.


--
Steffen Grund <steffen.gr...@sun.com>                  Sun Microsystems
Software Engineer - StarOffice                             Nagelsweg 55
Phone:  +49 40 23646 647                                D-20097 Hamburg
Fax:    +49 40 23646 550                  http://www.sun.com/staroffice
-----------------------------------------------------------------------
Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1,
D-85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Wolf Frenkel
Vorsitzender des Aufsichtsrates: Martin Haering

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

Reply via email to