JPDA and lauching

418 byte By guigucha at 2007-9-28 2:04:09
When an java application is launched with the parameters for debugging (like -Xdebug -Xnoagent -Xrunjpwd:... ) the application wait for a connection with a debugger.Is there a way to launch this application with some debug parameters without this one stop for waiting the connection?And is there ...

URGENT: problem running TRACE in example.jar

305 byte By honggo_81a at 2007-9-28 2:20:59
Could somebody tell mehow can I obtain the Trace exampleI've search thru examples.jar (under demo/jpda)but couldn't find the above-mentioned "Trace.java" filenor could I find the so-called "trace" packageany help or hint will be greatly ...

How to get the return status of a jdb command?

179 byte By mbeea at 2007-9-28 3:57:07
How can I know if a jdb command (any command - run, step, where etc.) succeeded or failed?I'm looking for something like "echo $?" in dbx.Thanks,Maya.

how to use Sun One Studio 3.0 ...with weblogic 6.1

366 byte By Sangitava at 2007-9-28 5:35:39
Hi,We are having problems with sessions in our application( which uses JSPS and Servlets )..."session Time outs"....Then we downloaded Forte( Sun One 3.0) for debugging purposes. BUT we don't know how to start after downloading Sun One ....does anybody can help me finding documentation of how ...

CanJDB get infected? Please help

197 byte By godongangea at 2007-9-28 6:51:28
I have had an e-mail telling me to delete JDBGMGR.EXE because it 'isa virus'. Is my cntact misinformed, is he right, or is someone trying to get me to disengage JDB so they can infect me?

Can't do JDB with J2ME on WinXP

976 byte By jpanettierea at 2007-9-28 6:55:24
I don't normally cross-post, but I haven't received any feedback from the new user forum, so I'm posting this message here.I have the latest sdk installed on my Windows XP machine, and I've been successfully writing MIDlets for several weeks now. I've been relying on printf-style ...

simple example

289 byte By madtown54a at 2007-9-28 7:04:28
I am very proficient in java, but I am new to jdb. I have read all the "tutorial" and I have an understanding of how to use the tool to execute a java program, but I was wondering if someone might post a simple example of how I would use this technology in creating my own debugger.

Need Error Id format or hserror

719 byte By clickcliquea at 2007-9-28 7:43:10
How do you decode the Error Id found in a HotSpot Virtual Machine Error hs_err_pidnnnn.log file? These files are typically created by the JVM as part of unrecoverable error processing. There exists a tool called hserror which translates the encoded ErrorId into a source file name and line ...

URGENT! debugger for debugging java mixed with c Program

212 byte By loufira at 2007-9-28 8:11:31
hi,i am assigned to do a project to develop a tool which can debug java programin which calls to native functions are made .Can anyone give some valuablesuggestions how to proceed.bye

set a breakpoint in getXXX functions fails

685 byte By mbeea at 2007-9-28 9:01:53
I have typical getXXX functions in my code, for example:String getName(){return name; // name is a member of class Test}After running jdb, I set a breakpoint in getName, and it succeeds (at least I get the message "Set breakpoint Test.getName").But when running the program the breakpoint is not ...

JPDA

773 byte By guigucha at 2007-9-28 9:10:50
Hi,I'm using the jdk1.2.2 on a windows XP platform and I want to launch an application in a debug mode using JPDA.I'v downloaded JPDA. Moreover i add the JPDA_HOME/bin directory to my path.My problem now is that i can't lmaunch an application in a debug mode.I've always the following ...

Setting breakpoints in unloaded classes

475 byte By mbeea at 2007-9-28 9:31:53
When setting a breakpoint in a class that is not loaded, jdb prints the message:Deferring breakpoint XXX. It will be set after the class is loaded.Is there a way to change jdb to load unloaded classes when we try to set a breakpoint, and not wait until the vm loads the class?I'm looking at the ...

How to trace an application which is not in the current directory?

662 byte By seafonga at 2007-9-28 10:08:38
Hi,When I use simple example 'Trace' to trace my application in current directory, it works well.But I cannot trace the applications which are in different directory or in an .jar file. Even I've already add it to the classpath.The following is my test:I put Myapp.class in .\classes > ...

How to get the system information outside debug?

700 byte By whitemaya at 2007-9-28 10:15:28
I have a server written in Java. There may be a bug in it, so the server will slow down instantly after a long time.At this time, I can find that most of the CPU was used, even if nothing doing.So I guess there were sth like dead cycle in the program. But I just can't findit. And it only ...

trouble with trace

595 byte By ciaranhursta at 2007-9-28 10:16:30
Hi,I'm working on a home made debugger if you like. It's going fine but I have never been able to get the trace example to work (even after looking at examples on this forum). Here is what I do. I extract the file to a location and then run a bat file with the following three ...

No linenumber table found

1707 byte By gggka at 2007-9-28 10:25:31
hi,When I try to set a breakpoint in a file which is inside a package, I get the following errorThe toolkit displays:No linenumber table found for class example/trial/TestThe command prompt displays:KVM_main[1] run> com.sun.jdi.InternalException: Unexpected JDWP Error: 41at ...

Static class instantiations? HELP

622 byte By mightymightyeddturnipa at 2007-9-28 10:36:27
Hi there again,I would like to know whether static classes only have one object for them created during a jvm run? I'm a little confused, and always have been since this fact wasn't really explicitly mentioned during the lectures I've been given on Java.Also, in regards to the JDI and JDB, I ...

classunloadevent doesn't seem to occur

653 byte By mary_murphya at 2007-9-28 10:49:14
Hi,I am having trouble with the classunloadevent. basically it doesn't seem to occur. I have created it in the typical way (see below) but it doesn't seem to occur. Could someone explain why.private String[] excludes = {"java.*", "javax.*", "sun.*", "com.sun.*"};ClassUnloadRequest cur = ...

getting calling class name

441 byte By ciaranhursta at 2007-9-28 10:58:56
Hi,I have a project where it is imperative that i know the calling class and the called class name. I have a solution working where i place the caled class on a stack and record it as a possible calling class. However there must be a simpler means of doing this. My code is poor. Is there a ...

how to use SourceDebugExtension:A source-to-source compiler?

2644 byte By lzy7886a at 2007-9-28 11:46:45
I wanna develop one dedicated language using java as the Intermediate Code, that is a source-to-source compiler converting the new language to java and a debugger to transform the debugging information from VM to the vocabulary of my languge.In jdk1.4.x documentation,I found the following ...

Using JDB

209 byte By s_u_ma at 2007-9-28 11:47:59
I have a problem with JDB - have compiled all code using -g, attached using Socket - but cannot access local variable valuesAlso - how do I get the exact object reference ... can someone help!!!!

Me Again! PLEASE HELP!

1694 byte By mightymightyeddturnipa at 2007-9-28 14:02:37
Hi there, yep, its me, Edd. I'm sure you lot are sick of me by now....Right, since I don't ever seem to get replies to my question "is it possible to get the actual source code object identifier from the jvm using the JDI? - and not just a unique long?", I'll take it that you can't.So, ...

Setting a watchpoint in a local variable

573 byte By mbeea at 2007-9-28 14:19:16
Hi,I'm interested in setting a modification watchpoint on a local variable.From jdb source code I see that to set a modification watchpoint, EventRequestManager.createModificationWatchpointRequest is called, and that this method receives a Field argument.Does field must be a data member of a ...

getting argument type names

1735 byte By ciaranhursta at 2007-9-28 14:24:17
Hi all, I am doing a final year student project in constructing a visual tracing tool in java. I have a problem getting the method arguments and method argument types similar to problem posted before http://forum.java.sun.com/thread.jsp?forum=47&thread=200408basically every time i track the ...

Sun ONE Debug Hanging on JDK 1.4 NT

410 byte By alex_ivanskya at 2007-9-28 14:32:08
I compiled a minimum (just main() and System.out.println("Hello") ) app with Sun ONE Studio 4 update 1, CE on J2SDK 1.4.1_01 runtime on NT station.I compile and Execute this app all right but as sson as I do whatever with Debug, the whole Studio hangs and doesn't respond to clicks.I ...

"HotSwap" Class File Replacement

1547 byte By amitkumar_agrawala at 2007-9-28 14:41:16
"HotSwap" Class File Replacement . This is the feature that is specified since jdk 1.4. When i tried using it to replace a class file i get an error :java.lang.UnsupportedOperationException: schema change not implemented.The environment that i am using is :This is jdb version 20 April 2002 ...

Using JDB in a multithreaded gui environment

748 byte By mike_phia at 2007-9-28 14:50:50
Hi there all I am currently working in a multithreaded gui environment, I would like to use jdb, I manged to launch my project using the jdb in place of the java command ( I did the javac -g thing), I then type run it all launches fine and I am prompted with main[]then I type cont abd then it ...

Attach to a running process, without its knowledge

426 byte By mbeea at 2007-9-28 15:08:10
Is it possible to debug a running process without its "knowledge"?I mean, the process I want to debug was run with "java <class>" and not with "java -XX:-UseFastAccessorMethods -Xdebug -Xrunjdwp:transport=dt_socket,address=43252,suspend=y,server=y <class>" (or a similar command).I ...

How to find out the value a method is returning using JDI

179 byte By AlistairHuttona at 2007-9-28 16:28:34
Is it possible to find out what value (not simply the type) a method returns. I'd have thought there would be some access under MethodExitEvent but I can't find anything.

newbie question

306 byte By ciaranhursta at 2007-9-28 16:54:47
Hi,I'm trying to get the methods for each class. I have been using List list = ClassPrepareEvent.referenceType().visibleMethods()however I only want to get the methods that are created in the users code and not the constructors etc.. How is this donecheersciaran ...

Is it possible to get and operate the objects declared in debuggee !?

610 byte By jamesnya at 2007-9-28 17:01:02
Hi, I can get the ObjectReferences of the local variables or fields and get or set their values.But what I want is to get the real object instance, is it possible ?for example: I have a class A, and I want to debug itclass A{ StringBuffer sb = new StringBuffer("This is "); A(){...}}I can get ...

Disconnect debuggee virtual machine

921 byte By mightymightyeddturnipa at 2007-9-28 17:11:53
Hi there again,I'm trying to find a way of disconnecting from a debuggee virtual machine without my debugging program terminating also. I have used my own code using, VirtualMachine.dispose() and also tried using the Env.shutdown() method in the TTY program supplied with the jdi examples.jar.I ...

Stepping without user interaction

568 byte By JohnCCa at 2007-9-28 17:27:42
Hi,Is there a way to keep stepping the program on but without the user being there? I need the information about the instruction being executed, I just want it to be run non-interactively.I understand you can write a file of commands, but this will always fall short. I was wondering if there ...

Remote debugging

995 byte By smanicksa at 2007-9-28 17:39:13
Hi i'm facing problem in connecting to remote debugger.i'm using codeguide 6.0 tool for remote debugging. my web application located in solaris os, interstage application server, jdk1.3.i want to debug that web application from my system which is windows os,jdk1.4,codeguide 6.0 tool.i tried ...

Java.sql.SQLException:[Microsoft][MS Access Driver] Could not find file

1864 byte By manps1a at 2007-9-28 17:55:18
I keep getting this message when I try and execute a test.java file which I have got to establish a database from which I can retreive information:Java.sql.SQLException:[Microsoft][MS Access Driver] Could not find file (unknown)My code in the test.java file is:import java.sql.*;class ...

kill VM client without killing debugger!

748 byte By TPEMcKiernana at 2007-9-28 19:04:55
Hello there, I am posting a question similar to mightymightyedd I think, but since he has no responses I'll post it again. In an experiment of mine I am using the JDI to create a java debugger that can debug serveral java programs, one at a time, without it exiting after debugging one program ...

System crashed, need JDBC-ODBC drivers

202 byte By TheBladeStonea at 2007-9-28 19:10:13
I lost everything and I'm pulling code from my back ups but there is no jdbc-odbc drivers any where, and I can find them online, need some one give or point the exact down load location for one.

Trace example program

1036 byte By JohnCCa at 2007-9-28 19:16:13
Hi,I have been looking at the Trace example in the examples.jar, and I am having a couple of problems with it.First - it seems to exit normally, but not where I expect it. Adding a statement in main(String[] args) after the Trace constructor call does not get executed.I.e.public static void ...

JDI event model: Who generates Events?

1384 byte By mightymightyeddturnipa at 2007-9-28 19:19:02
Hi there,While reviewing my JDI knowledge I found a short coming:What I understand from reading the documentation for the JDI is that when there is an occurence of interest to a debuggee (an event, like hitting a breakpoint), an EventSet containing an Event (i.e. instance of the Event ...

Updatable ResultSet

2336 byte By mcmoulia at 2007-9-28 19:42:07
Hi,I am trying the following program but I got the following exeception. How to overcome this problem.Code:import java.sql.*;public class TestUpdateResultSet{public static void main(String args[]){try{DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());Connection conn = conn = ...

Need technology to transfer Oracle database to Microsoft Excel file.

337 byte By dung_t_nguyena at 2007-9-28 21:49:17
I have been looking for any utility or java technology to render the database from Oracle to be Microsoft Excel files. I know that FOP from Apache has similar process to take XML file, and render to PDF file. If you guy out there happen to know any technology related to Java that can solve this ...

Difference between JDB of jdk1.3 & jdk1.4 (hot swap)

922 byte By kipritia at 2007-9-28 21:51:42
Hello all, I have compiled & enahnced ny classes using jdk1.3. By enhancing the classes I mean I am modifying the classfile at bytecode level & not at source code level. For enhancing the classes we load the original classes once & then change the bytecodes. When I try to debug the ...

Need Help.URGENT!

360 byte By sekocha at 2007-9-28 22:13:55
Hi everyone! How can I resolve this task by Java: Check ASCII(.txt) file (one time per day) with data for SQL Loader in specific directory(Windows 2000 Server). If it has new data ,run SQL Loader for update specific table in Oracle(9.2) database. Could you give an answer or post link on that ...

Newbie question

775 byte By gushalmena at 2007-9-28 23:15:05
Probably there is a easy solution for my problem. Here it goes:1) I Got 2 java files: Applet102.java and Des.java2) Both files are compiled and everything is ok3) Within Applet102 i call a function from Des4) I Set a breakpoint at the beggining of that specific function and then I launch the ...

Selective Method entry and exit events

347 byte By harihar_na at 2007-9-28 23:24:05
Is there any way in which I can set MethodEntryRequest and MethodExitRequest for only specific methods within a class ?Now when I try to make a MethodEntry Request and set the class using addClassFilter, I am getting the events for all methods within this particular class.any help will be ...

MSFT: threads vs. jdb and java

988 byte By Hilpea at 2007-9-28 23:46:17
Hi,jdb -launch <java program>invokes 13 threads per jdb and 7-8 threads per a java program. Do you have any idea what is the base for these many threads?If "threads" is given, it shows as followsmain[1] threadsGroup system: (java.lang.ref.Reference$ReferenceHandler)0x3 Reference Handler ...

JDI and object instances

182 byte By Sami_Lakkaa at 2007-9-29 1:08:33
Hi,I'm having trouble at finding the instantiated objects in JVM.What would be the best way to find objects that are instantiated?Thank you,- Sami

list command and source path

755 byte By cbruccoleria at 2007-9-29 1:24:26
Hi,I am trying to start working with JDB but the command 'list' seems always unable to find my source ! I compiled with the -g option and my classes are part of a package. Now, it seems to me that jdb just assumes that my .java files must be in the same directory (reflecting package name) as ...

aThreadReference.status() returns wrong state

642 byte By clinteasta at 2007-9-29 2:13:50
Hi,i'm using jdk1.4.2_beta and Linux. I have an application with two threads: foo and bar. When a WatchPoint in foo is reached i use jdi calls to get information about my application theards. Whenn the WatchPoint is reached bar has already called Thread.sleep(30000) and is sleeping. Both ...

servlet debugging using jdb

179 byte By ashwin_ga at 2007-9-29 4:01:47
hello friends, could anyone help me in debugging servlets using jdb. I am using tomcat as the web server. any suggestions or tip would be greatly appreciated. Thanks a lot.