Questions tagged [jdwp]

The Java Debug Wire Protocol (JDWP) is the protocol used for communication between a debugger and the Java virtual machine (VM).

The Java Debug Wire Protocol (JDWP) is the protocol used for communication between a debugger and the Java virtual machine (VM) which it debugs.

JDWP is one layer within the Java Platform Debugger Architecture (JPDA).

The JDWP differs from many protocol specifications in that it only details format and layout, not transport.

The JDWP is designed to be simple enough for easy implementation, yet it is flexible enough for future growth.

For more information on the Java Platform Debugger Architecture.

69 questions
77
votes
6 answers

ERROR: JDWP Unable to get JNI 1.2 environment

I get this error after debugging in Eclipse. The debug is successful though. ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2 JDWP exit error AGENT_ERROR_NO_JNI_ENV(183): [../../../src/share/back/util.c:820] What does…
Carlos Blanco
  • 8,592
  • 17
  • 71
  • 101
21
votes
7 answers

JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690]

I have been trying to run with JRebel this configuration: Here is my output: c:\JBOSS\jboss-portal-2.7.2\bin\run.bat -c default c:\JBOSS\jboss-portal-2.7.2\bin>set JAVA_OPTS=-Dhttp.proxyHost=188.173.32.78 -Dhttp.proxyPort=3128 -DproxySet=true…
abg
  • 2,002
  • 7
  • 39
  • 63
15
votes
2 answers

How to debug an android application started from 'adb shell am start -D '?

I need to debug an android application that is already installed on a phone. I am able to start the application in debug mode but I can't connect to the process using JDWP. I have try two different ways that both fail. (see following…
h3xStream
  • 6,293
  • 2
  • 47
  • 57
15
votes
18 answers

Cannot connect to VM in Eclipse

I have suddenly begun getting this weird error when I try to debug any of my projects on Eclipse. I don't remember changing anything for this problem to start so suddenly. 'Launching ' has encountered a problem. Cannot connect to…
Menezes Sousa
  • 1,448
  • 2
  • 18
  • 18
13
votes
3 answers

Java JVMTI doesn't work alongside -Xdebug -Xrunjdwp

I spent the last 4 hours trying to set up Eclipse TPTP memory profiling on a Tomcat instance that must be run remotely (i.e. not in Eclipse). This should be possible according to the TPTP and Agent Controller docs. I installed the TPTP components…
Jim Garrison
  • 85,615
  • 20
  • 155
  • 190
10
votes
5 answers

How to run Apache Tomcat 8 in debug mode?

I am trying to run Apache Tomcat 8.0.21 in debug mode. When I give the command sh catalina.sh jpda start it gives this error. error message ERROR: Cannot load this JVM TI agent twice, check your java command line for duplicate jdwp options.…
9
votes
2 answers

Java remote debugging overhead

I just wonder about additional overhead of remote debugging. I start application using HotSpot with these parameters: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 I heard about large impact on performance in much older…
Tymur Yarosh
  • 553
  • 1
  • 6
  • 19
6
votes
1 answer

Enabling jdwp on a jdk 14 app results in Address family not supported by protocol error

For a JDK 14 application, running on linux, adding the following JVM parameter -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005 results in the following error Starting Main... ERROR: transport error 202: socket creation failed:…
MrPlow
  • 1,295
  • 3
  • 26
  • 45
5
votes
1 answer

How to debug remote Java application through nginx reverse proxy

I need to debug a remote java application running behind an nginx reverse proxy. I get the following error: Failed to attach to remote debuggee VM. Reason: java.io.IOException: Received invalid handshake What should be the right nginx…
4
votes
0 answers

JDWP Out of memory error from long running java server

I'm running a server with following command: java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:8000 -server -jar -Dlog4j.configurationFile=properties/log4j2.xml myApp.jar The server is running on the AWS cloud (EC2 small…
hylowaker
  • 966
  • 2
  • 9
  • 24
4
votes
1 answer

Will breakpoints set via SetBreakpoint in JVMTI from one agent be visible to a remote debugger connected to the JVM?

Let's assume a remote debugger is connected to the local JVM. At some point if a JVMTI agent (other than the debugger one) sets a breakpoint via SetBreakpoint, will it be visible to the remote debugger? Will the remote debugger be able to step over…
eugen
  • 5,856
  • 2
  • 29
  • 26
4
votes
1 answer

Android Fatal signal 11 (SIGSEGV), code 1, fault addr 0x14 in tid 29469 (JDWP)

Each time when I attach a debug thread to Android studio , run to breakpoint, the app crashes. Here is the crash stack, can some one tell me why and give me some advice to solve it, thanks a lot!: 09-30 13:53:43.250 29461 29469 F libc : Fatal…
陈邦卿
  • 41
  • 3
4
votes
5 answers

"DeviceMonitor]Sending jdwp tracking request failed!" in Eclipse / Android

I'm a noob learning Eclipse and Android. Whenever I close the emulator I get "DeviceMonitor]Sending jdwp tracking request failed!" in the Console tab. Infact that seems to be the ONLY thing I get in the console tab - I don't get all the…
Peter Nelson
  • 5,917
  • 17
  • 43
  • 62
4
votes
1 answer

Using JDWP and JVMTI to obtain information of the running Java application

We are developing an application for obtaining the information of a running java application using JDWP and JVMTI. Sun Java comes with a reference implementation of JDWP so using agentlib -jdwp: will use the reference implementation. Our aim is to…
MohamedSanaulla
  • 6,112
  • 5
  • 28
  • 45
4
votes
3 answers

Eclipse JDWP error when trying to debug

I get the following error when trying to debug a local java application in eclipse. FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197) ERROR: transport error 202: connect failed: Connection…
Peter
  • 1,047
  • 2
  • 18
  • 32
1
2 3 4 5