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

JDBC connects with 'jdbc:mysql://127.0.0.1:3306/xxx' but hangs and throw socket exception for 'jdbc:mysql://172.29.198.142:3306/xxx'

I have a very strange kind of problem here. JDBC connects to mysql server using '127.0.0.1' but when I use real IP-ADDRESS in that place it hangs like forever and throws some socket exception so "jdbc:mysql://127.0.0.1:3306/xxx"; works like a…
Saurabh Tripathi
  • 105
  • 1
  • 11
0
votes
2 answers

How to debug a JUnit test case with jdb?

I'm having problems debugging a JUnit testcase. I'm using Java v6 and JUnit Framework v3.8.2. I invoke jdb like this: jdb junit.textui.TestRunner MyTest The problem is that I don't know the name of the object TestRunner creates from my TestCase…
bug
  • 515
  • 1
  • 5
  • 17
0
votes
1 answer

JDB and the attach option

I was asked this question on a test and I'm not sure what the answer is and I'm having trouble finding it here and anywhere else online. So I hope someone on here can give me a quick answer and a quick explanation: You debug a Java program using…
Alphonse23
  • 113
  • 2
  • 10
0
votes
1 answer

Calling stored function error in Java

I am trying to call a stored function in Java. Function has no package, it's placed under user (schema) USER and returns a cursor. I tried twoways to call it and none of these works. First one Query query =…
Petr Mensik
  • 26,874
  • 17
  • 90
  • 115
0
votes
2 answers

SQL prepared statement not taking '?' on both sides of where clause

I have something like this in my sql query private static final String QUERY_PHYSICIAN_INFO= "SELECT * FROM PHYSICIAN_INFO WHERE ? = ?"; but following is not working.. Connection conn = null; PreparedStatement stmt = null; String…
user1065490
  • 305
  • 6
  • 16
0
votes
1 answer

jdb maven: InstallMojo source

I try to debug install::install using mvnDebug/jdb -attach 8000 I get easily to org.apache.maven.plugin.DefaultBuildPluginManager:101 and then step on mojo.execute() which leads me to: main[1] where [1]…
Marc
  • 45
  • 1
  • 5
0
votes
1 answer

Got badly stuck in integrating struts2 with hibernate

i want to integrate Struts with Hibernate. I am new to these technologies. Infortunately i get badly stuck in these for last 4 days and my table is not able to get mapped. Please help. I am working on netbeans 7.1.2. i have created database on derby…
codeofnode
  • 18,169
  • 29
  • 85
  • 142
-1
votes
1 answer

Eclipse Project ORA-28040 Exception Despite Updated OJDBC

I joined a new project and I am working on it through Eclipse. For reference, the server is running on Oracle 19c, and is being managed by a different team. I tried putting the project onto my Tomcat server and connecting to it, but it gives me an…
A_Name
  • 15
  • 7
-1
votes
1 answer

Error while connecting to mySql DB with tomcat server

Im working on a struts based web application with tomcat server, using jdbc to connect the DB, and using mySql and sql server DB, and added related jars as well, but having this exception how to resolve the…
NoNaMe
  • 6,020
  • 30
  • 82
  • 110
1 2 3
11
12