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
1
vote
0 answers

Catching uncaught Exception with JDWP

I'm trying to use JDWP to catch an uncaught Exception on Android. I've tried many different combinations of the following but it never gets any Exception Events, only the Single Step Events. It's not getting any composite Events, in each case the…
user1572522
  • 569
  • 2
  • 11
  • 26
1
vote
0 answers

Run SBT in debug mode. "libjdwp:transport.so: cannot open shared object file: No such file or directory"

I have system: debian-sid(8.0) sbt(0.13.7) java(tested different versions 1) openjdk 7u75-2.5.4-1 2) openjdk 1.8.0_40-internal-b09 3) oracle jdk 1.8.0_31-b13). When I try to run app in debug mode sbt -jvm-debug 9999 run I always get an…
vdshb
  • 1,949
  • 2
  • 28
  • 40
1
vote
1 answer

Maven jgit JDWP transport error

I have recently begun using jgitflow for maven and have the following issue. When I run mvn jgitflow:release-start everything works fine, the release branch is created, pom files are updated, etc. When I try to run mvn jgitflow:release-end I get the…
Dax Durax
  • 1,607
  • 5
  • 23
  • 31
1
vote
1 answer

How to turn off debugging on a project in eclipse?

My situation demands I have two copies of the same project. One is for development, the other is for debugging, testing and single stepping to understand the existing workflow. As a consequence I have two copies of the same project. I would like…
Ace
  • 1,501
  • 4
  • 30
  • 49
1
vote
1 answer

Can you attach a debugger to a Java process after detaching?

If you run a java process with arguments -Xdebug -agentlib:jdwp=transport=dt_socket,suspend=n,server=y,address=9000, the process stops listening on the port once the debugger attaches to it. Then, once the debugger detaches, you can’t connect to it…
yonran
  • 18,156
  • 8
  • 72
  • 97
1
vote
0 answers

J2ME XML Parsing

I have another question about a "JDWP Error: 21" logged: Unexpected JDWP Error 21 I am trying to parse some XML I gather from a servlet into a J2ME MIDlet with the code below. So far unsuccessfully, I think due to the JDWP error on my…
Stephen Murby
  • 1,407
  • 3
  • 17
  • 37
0
votes
0 answers

Weblogic remote debugging works locally, but not from remote client

We have Weblogic12c. I configure the Java startup args to enable remote debugging. jdb -attach
: works locally (and connects quickly) jdb -attach
: from another machine hangs indefinitely. telnet
The Archetypal Paul
  • 41,321
  • 20
  • 104
  • 134
0
votes
0 answers

How to integrate Intellij and Databricks, like when using the jdwp with a regular Spark cluster?

I have been looking online for awhile, but have found nothing, thus this question. I would like to be able to debug my Apache Spark code (written in Scala) remotely on Databricks, similar to the way it can be done on regular Spark clusters using the…
MrMuppet
  • 547
  • 1
  • 4
  • 12
0
votes
1 answer

How to programmatically detect whether current JVM is connected by a remote debugger?

The situation that I'm facing is when I debug my code in a sub-thread, whose wrapping future has a timeout, I always get a TimeoutException on the outter future.get(timeout), my idea is if I can know that a debugger is connected, I can dynamically…
D Blacksmith
  • 123
  • 2
  • 6
0
votes
1 answer

How to remotely debug java via HTTP protocol

My webapp base springboot is deployed in Kubernetes. Because the company restricts the use of NodePort type of service. Is there any way transfer jdwp to http so that remotely debug via http protocol.
0
votes
1 answer

How to debug an Android APK on a Genymotion emulator from a Linux command line?

I am using a Genymotion (VirtualBox) Android emulator. When I'm trying to attach a JDB to a running Android app from a command line, I get a java.io.IOException: handshake failed - connection prematurally closed delight, namely: $ adb…
Andrew
  • 197
  • 2
  • 3
  • 16
0
votes
2 answers

Newbie cannot properly run or debug fresh project using Gluon multi-view with FXML in IntelliJ

I created a brand new Gluon mobile multi view with FXML project in IntelliJ CE 2018.2.1 using the Gluon plugin version 2.7.0 and Gradle 4.10.1 I open the Gradle tool window, Pick Project(root), Tasks, Application, run and I do see the generated…
tpc1095
  • 109
  • 1
  • 12
0
votes
1 answer

Java profiling using jdwp

I have a java webserver (wildfly 10) running my java *.war applications. I managed to setup my Eclipse to "Remote Debug" listen to port 9797. This is all great but how do I profile how long each of my methods takes - using…
RonPringadi
  • 1,294
  • 1
  • 19
  • 44
0
votes
1 answer

How can I disable JDWP service?

I am getting Java Debug Wire Protocol Remote Code Execution Vulnerability in one of the servers. How can I disable the service?
sreesha sankar
  • 31
  • 1
  • 2
  • 5
0
votes
0 answers

Netbeans on OSX Yosemite: Starting Tomcat in debug mode is failing

I have installed Tomcat8 using homebrew on OSX 10.10.3. Here is how I have configured tomcat-users.xml:
cosbor11
  • 14,709
  • 10
  • 54
  • 69