Questions tagged [jdb]

The Java Debugger, jdb, is a simple command-line debugger for Java classes.

The Java Debugger, jdb, is a simple command-line debugger for Java classes. It is a demonstration of the Java Platform Debugger Architecture that provides inspection and debugging of a local or remote Java Virtual Machine. Documentation available at http://docs.oracle.com/javase/7/docs/technotes/tools/windows/jdb.html .

174 questions
0
votes
1 answer

spring native query call a function that returns a json

I am new to java and I am trying to call a function that returns a json object, However the java method returns a String. Is there a way in postrgres to convert Json to VARCHAR, or in java to vonvert JSONObject to a json String @Repository public…
0
votes
0 answers

JDB Java debugger - how can I set verbose option to see why my app is crashing?

I'm trying to debug some Android app with JDB Java debugger. Here are my steps: adb shell am start -D com.appname.global.android/.MainActivity adb jdwp adb forward tcp:8700 jdwp: Add stop at com.appname.global.android.MainActivity:79 line…
westman379
  • 493
  • 1
  • 8
  • 25
0
votes
1 answer

Debugging with jdb

Trying to figure out my way around Sphinx 4 (the CMU speech recognition engine in Java), I tried to use a demo included with the distribution by altering it to what I wanted it to do (the name of the demo is Aligner). I am running into problems and…
Sriram
  • 10,298
  • 21
  • 83
  • 136
0
votes
1 answer

JDB -connect IO.Execption with no message

I have a java app running on a server (linux) whose ip is 10.7.185.168:8123, using this command. java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:8123 OurApplication and I try to debug it from another machine (windows) with: jdb…
robwill
  • 81
  • 1
  • 4
0
votes
1 answer

"adb.exe" forward tcp:23915 jdwp:%pid%, "jdb.exe" -connect" handshake failed - connection prematurally closed

I am trying to connect to JDWP process using jdb.exe. It all worked before I have reinstalled my Windows 10 and everything else. I have a following Batch script: "adb.exe" shell am force-stop com.rockstar.gta3 "adb.exe" shell am start -D -W -n…
fastman92
  • 351
  • 2
  • 9
0
votes
0 answers

Trouble running Frida together with JDB on a Java program

In my quest to understand the Frida magic regarding re-implementing methods, I am having trouble running JDB in parallel with Frida on a simple Java application. The Frida script is as follows, only adding logs when passing through the method Main.a…
AntoineG
  • 93
  • 7
0
votes
1 answer
0
votes
1 answer

@OneToOne Or @ManyToOne?

can somebody confirm me following? I have following Entites: public class Book { ............. } public class Student { @OneToOne Book favoriteBook } public class StudentOrderHistory{ Student student; @OneToOne Book lastBook; } In case if…
0
votes
1 answer

Facing Issue with JDB - Breakpoint not being hit

I have the following piece of code: void func() { try { f1() } finally() { if (resource != null) resource.close(); } } I put three breakpoints: call to f1(), inside f1(), on the if statement in the finally block. It…
Rohit Banga
  • 18,458
  • 31
  • 113
  • 191
0
votes
1 answer

Start JDB with list of breakpoints

Is there a way to start jdb and attach from the beginning a list of breakpoints? Something along the line of jdb - ./breakpoints Main It is trully tedious entering these breakpoints manually upon starting a new debugging session, and I…
cstml
  • 350
  • 1
  • 12
0
votes
1 answer

Cannot close derby connection with EntityManagerFactory

I need to compress a database inside a zip file after it's been created (and delete the original version of the database). After creating it using EntityManagerFactory I close it so that the connection is freed and I can manipulate the database…
AwesomeGuy
  • 537
  • 1
  • 6
  • 17
0
votes
0 answers

JDB(The Java Debugger) Command not accepting spaces in classpath option

I am debugging my code from JDB(Java Debugger). My Code uses the external jar files which I have kept in a separate folder. If the path of external java files contains spaces then JDB gives the error. If path does not contains any spaces the…
raunakchoraria
  • 358
  • 2
  • 15
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
1 answer

Running java program through command-line jdb executes correctly but fails when executed as java command-line

I am relatively unexperienced in java, so hopefully I will be able to provide enough information here for this to be relevant and useful for other people. I am trying to run someone else's codebase that takes two input files, prints some information…
719016
  • 9,922
  • 20
  • 85
  • 158
0
votes
1 answer

Data duplicates in Arraylist

I want to fill my ArrayList with data selected from my database but it duplicates all the rows i don't get it. Connection conn = DriverManager.getConnection(url, userid, password); String strSql = "SELECT * FROM events, eventStats"…
ogtm
  • 259
  • 1
  • 2
  • 10