[Java lista] Linux frissites utan nem lehet debug-olni

zamek zamek at vili.pmmf.hu
2009. Dec. 28., H, 16:29:58 CET


2009-12-28 16:16 keltezéssel, Peter Verhas írta:
> java -Xdebug -Xrunjdwp:transport=dt_socket,address=localhost:8000,server=y,suspend=y
> CLASS
Ez igy elindul es hallgatozik is a 8000-es porton, az nmap latja. Tehat 
akkor az a gond, hogy sem a netbeans, sem az eclipse nem inditja el ezt 
a process-t.

java -Xdebug 
-Xrunjdwp:transport=dt_socket,address=localhost:8000,server=y,suspend=y
Listening for transport dt_socket at address: 8000

zamek:/home/zamek/NetBeansProjects/v4l4jTest/nbprojectnmap -O  localhost
Starting Nmap 5.00 ( http://nmap.org ) at 2009-12-28 16:17 CET
Warning: Hostname localhost resolves to 2 IPs. Using 127.0.0.1.
Interesting ports on localhost (127.0.0.1):
Not shown: 995 closed ports
PORT     STATE SERVICE
111/tcp  open  rpcbind
631/tcp  open  ipp
3306/tcp open  mysql
5432/tcp open  postgresql
8000/tcp open  http-alt
Device type: general purpose
Running: Linux 2.6.X
OS details: Linux 2.6.17 - 2.6.28
Network Distance: 0 hops

OS detection performed. Please report any incorrect results at 
http://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 2.12 seconds

Egy egyszeru minta (helloworld) build.xml ant debug eredmenye is ez:
...
-post-compile:

compile:

-debug-start-debugger:

-debug-start-debuggee:
      [java] ERROR: transport error 202: connect failed: A csatlakozás 
megtagadva
      [java] ERROR: JDWP Transport dt_socket failed to initialize, 
TRANSPORT_INIT(510)
      [java] JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No 
transports initialized [../../../src/share/back/debugInit.c:690]
      [java] FATAL ERROR in native method: JDWP No transports 
initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
      [java] Java Result: 134

debug:

Tehat elotte elinditja a debugger-t, aztan probal hozzakapcsolodni.
a -debug-start-debugger igy nez ki az build-impl.xml-ben:

<target depends="init" if="netbeans.home" name="-debug-start-debugger">
	<j2seproject1:nbjpdastart name="${debug.class}" />
</target>
  itt lehet valami gubanc, keresem mit csinal ez itt...

-- 
  thx,
----------------------------------
Zoltan Zidarics programmer
PTE-PMMFK H-7621 Pecs, Boszorkany u. 2. Hungary
E-Mail: zamek at vili.pmmf.hu
----------------------------------



További információk a(z) Javalist levelezőlistáról