664 byte By
soso999a at 2007-9-29 16:49:22
i use tty to debug a Frame based application, i met a problem, it may be from tty, but i think it is possible from jdi itself.after set few breakpoints, attach tty to java, i send command "cont" one by one, tty gives feedback for each command properly (vs out.print?() and err.print?()).but ...
461 byte By
duanyha at 2007-9-29 17:00:39
Hi, I want to debug TTY. And I try to using commonds as following:C:\jdb -classpath F:\com\sun\tools\example\debug\tty TTYC:\jdb -classpath F:\com\sun\tools\example\debug\ttycom.sun.tools.example.debug.TTYBut I got the erro:"Exception in thread "main" java.lang.NoClassDefFoundError: ...
1116 byte By
duanyha at 2007-9-29 17:08:27
Hi, In our recent project, I need listen some event such as ClassPrepareEvent, MethodEntryEvent using JDI and handle it. I am trying to mend the TTY and let itdo something simple when MethodEntryEvent occur. I just add a print line in the method methodEntryEvent in TTY.java. But I noticed that ...
386 byte By
soso999a at 2007-9-29 17:18:24
i guess command "classes" generates same output info at any time for a specified bebug class.i.e. if debugging MyClass, sending command "classes" at begining, in the middle and at end of the debugging, the command generates same output (or feedback from java) info. is this right?does command ...
319 byte By
soso999a at 2007-9-29 17:22:48
hi, all,i see jdb.exe is in both jdk 1.1 and 1.2, but i can not find example of tty in both of them.i know tty uses classes which are "since 1.3", but i think there must be a similar "tty" in 1.1 and 1.2.where is the similar "tty" in 1.1 and 1.2? i need the example for my ...
Hi,I'm trying to create a OOP visual simulator, that goes through a program and describes what's going on. This sounds a lot like a "dolled-up" debugger. Well, that's where my problem lies. I'm thinking I need to either write a debugger or reuse an existing one. So, I was wondering if ...
Hi,I am writing a gui , sending all the commands of jdb.exe from my gui.It is not working wellI m sending to jdb as outputstream(writing to jdb) and getting the output from jdb as inputstream.. (reading from jdb)I can succesfully send 1 as process initilization like runtime.exec("jdb ...
624 byte By
soso999a at 2007-9-29 18:15:29
when i use jdb with command "lines MyClass", i see jdb outputs line numbers of MyClass, which include line numbers of fields.my Q is:i am using c++ to open *.class file, but i can only find line numbers of method, i can not find line numbers of fields in the opened class buffer (i have doc of ...
1581 byte By
soso999a at 2007-9-29 18:43:12
i use windows.there are 3 files under "c:\current" directory, they arefile 1. mem_appletviewer.bat - with content:"e:\install\java\jdk1.3.1_05\bin\appletviewer" -J-Xdebug -J-Xrunjdwp:transport=dt_shmem,address=conn001122,server=y,suspend=y test.htm file 2. mem_jdb.bat - with ...
227 byte By
soso999a at 2007-9-29 18:50:58
hi all,i need source code of AppletViewer, because i want to develop my own "viewer" to debug Applet, could u give me a link to suitable web-site?or, any sample similar to AppletViewer is helpful.thx
286 byte By
soso999a at 2007-9-29 18:51:52
i see a class called sun.applet.AppletViewer.classi think sun's tool appletviewer.exe uses the class, is that true?if yes, how does appletviewer.exe use AppletViewer.class (i.e. how to call the class).if not, what story is inside appletviewer.exe?thx
552 byte By
soso999a at 2007-9-29 18:57:33
hi all,i am developing an user debugger which is used to debug Applet.problem is, the Applet debugged must be in same directory as the debugger, simply says, the command must be:appletviewer MyAppletorjava sun.applet.AppletViewer MyAppleti need following command work:appletviewer ...
112 byte By
soso999a at 2007-9-29 19:08:35
i need idea to debug a normal class, i.e. tools (similar Appletviewer for applet), command etc.thx
Hi, all!I'm using JBuilder 9 Personal Edition and I need to debug a class, which I'm developing, that is called by an application that is already developed (not by me).I've tried setting the Runtime Configuration Properties to use the application as the main class, but that doesn't seem to ...
hi all,i am modifying tty now.i need to get java file name from tty.i.e. print following info:line=37, com.user.MyClass.getType(), MainClass.javaline number and class.method (here is line=37, com.user.MyClass.getType) can be obtained from instance of Locationbut i can not find how to obtain ...
Hi,I am analyzing the possiblity of using the JDB in our J2SE based application server for status monitoring and fault tolerance (MFT in short). Here are a few queries I have before I can dig deep into using JDB.1. Is it best to use the JDI for application monitoring. Else, which is the best ...
2127 byte By
chattpa at 2007-9-29 20:10:12
I'm using Apache/JServ with jdk 1.4 (via Textpad on win2K SP 3).The 'gospel' I'm trying to follow is:'Start the server manually and record the password for remote debugging(this is displayed on the console).''Start the Java debugger:''jdb -host your_host -password the_password''You ...
Hello,when I call ThreadReference.getValues(List a) I get a mapof values (Value). Does these references represent for example the instantiated objects in this thread?
I'm trying to track down a possible memory leak, and am using jdb to look at my process. In it, I'm finding a lot of threads of a particular type that are in state "unknown". Does this imply that they have exited, but not been garbage collected, or are they hung for some reason?
Hi there! I made one applet .now i want that applet inside my jubuilder application.if paste the applet code( paint ()method) then it overrides everthing & now i m not able to see the my jbuilder component. i want in half i m able to see applet & in rest part i m able to see my jbuilder ...
1473 byte By
bhadura at 2007-9-29 23:47:51
Hi,As a part of my project, I need to use Java Debugger and I'm new to this.I want to trace the flow of control and the values of the objects at every position of my JAVA Application Program.I'm working on RedHat Linux& I've j2sdk1.4.0I tried to compile the Trace.java which is in ...
419 byte By
sheawha at 2007-9-30 0:16:42
as the subject.I want the applet@client-side connect to DataBase@server-side,I am using Tomcat as engine & JDBC-mysqlas tools where should the jdbc class placed in? WEB-INF/classes ? WEB-INF/lib ? or others?now i am facing the problem that the applet seems cannot access WEB-INF and cannot ...
266 byte By
umbfera at 2007-9-30 0:18:16
Hi all, is it possible with the j2sdk 1.5 JPDA implementation to know which is the value of the arguments of the methods in the current stack frame without using -g option? Again, if not, is there any workaround?Thanks in advance.Umberto Ferraro
Hi,Can anybody tell me about a "testing tool" which checks for the correctness in the naming conventions.Say, If we feed all the naming convention standards in some dictionary of the tool and then allow the tool to parse a given ".java " file,then it should tell me the errors in the naming ...
Any suggestion for good debugger for memory leakage?
Hi,I'm using jdb in a OOP simulator that I'm developing and I've got two potential problems that I need to solve quick. Ok ...1. Is there anything in JDI that allows me to get the visibility modifier for which a field was declared with. Currently, an object can inherit (and consequently) ...
429 byte By
JPJ2004a at 2007-9-30 1:27:35
Has anyone been able to compile anything in JDK 1.5 using Borland齭 JBuilder X Foundation IDE.I get the following error with anything I try to compile:cannot access javax.swing.JFrame,bad class file: C:\java\jre15beta\sdk\jre\lib\rt.jar\javax\swing\JFrame.class,class file has wrong version 49.0, ...
How do I get the underlying object from the ObjectReference? Seems straighforward but I have no luck. I have a objectreference that points to a HashMap. I would like to like to get its contents and print them.Any tips?ThanksVaidhy
Hi,I am trying to set up remote debugging on the system I am developing. I am using JBuilder9, Swing as client, EJBs on back end, and Sun One Application Server.I have installed the JPDA remote debugger on the server. remotedebugger.bat and remotedebugger.jar are both in the directory ...
401 byte By
LonnyBa at 2007-9-30 2:01:19
In what situations can a Java-program leak memory?Few hunches:- unnecessarily holding static references to objects- unnecessarily holding references to objects in a long-living thread- not closing connections, statements or resultsets- writing native code that leaks memory- using libraries or ...
Hi,If you see the below stack trace, you see Unknown Source . Can any one suggest how do print the line number ? java.lang.NullPointerExceptionat mpjdev.ReadBuffer.readHeader(Unknown Source)at mpjdev.ReadBuffer.read(Unknown Source)at BufferTest2.<init>(BufferTest2.java:151)at ...
Hi All,I have been searching on the web for some hours now and cannot get any example code I have found to do what I want. If you could point me to examples/tutorials I would be delighted as they are not easy to find. I am using java 1.4.2 and netbeans on Linux. I am trying to connect to a ...
Dear everyone,I have a Java application that runs as a server - serving data to client apps.So, the server app is designed to run infinitely, unless stopped.The problem is that nearly after two weeks of operation, the server app startsconsuming large amounts of CPU progressively.In windows task ...
Hi everyone,Im using NetBeans to debug and compile my applications, but I ve read in many places that it is good practice to also use Ant directly for some tasks. Ive got Ant, NetBeans and also J2EE Deploytool installed and was success in using them all. But would some of you please tell me ...
266 byte By
smoogli at 2007-9-30 3:44:32
Hi,As known, when compiling "javac -g ..." the class files contain debugging information.my Naive question is WHAT is this information?could you please add any links to articles about this debugging information?Many thanks!!
Hi,How can I debug my midp which I built using ANT script?the ANT script will update the jad and jar files?And how can I debug a midp which deploy using OTA to the emulator?And where is the best place to post my quetions regarding Sun ONE Studio mobile edition? ...
Hi there,For the past year, I've been developing tool support (using the JPDA) for my PhD study in debugging heterogeneous meta-programs. See http://www.csse.monash.edu.au/~rowley/research/index.html. In my graphical debugger, I have a local variables pane which displays a JTree structure ...
Hi,Where do we get the JVMTI source file?JVMTI document says that it does not support object allocation events while doing profiling...Is there any other way to do it?
416 byte By
arya_18 at 2007-9-30 4:33:08
Hi I use IntelliJ to write and debug my programs. I am debugging a simple program and I get this errorFATAL ERROR in native method: JDWP No transports initialized, jvmtiError=JVMTI_ERROR_INTERNAL(113)Warning: classic VM not supported; client VM will be usedERROR: JDWP Transport dt_socket failed ...
189 byte By
tgk26 at 2007-9-30 4:39:46
hai i want to download the Integra Enterpirise(Solstice Software) . but i can't able to find the excat site. Please send me the URL address from where i can download.
How do I set a breakpoint for a particular line in a class that has not been loaded?how do I get the Location to use createBreakpointRequest with out having the class loaded?
I set up Eclipse and Sun Application Server (8) to be able to debug my web application (WAR with servlet and JSP pages) in Eclipse. I can set breakpoints in my java classes and debug them. but i can't set breakpoints in the JSP files. so have can i debug the JSP files? is it possible at all? ...
495 byte By
asjf at 2007-9-30 4:49:00
hi, it would be useful sometimes to have a graphical debug panel on an application I'm working on which shows the active threads and allows further information to be shown if wanted - the problem is that I can't find an API call to get the current stack dump of an arbitrary thread - does ...
89 byte By
amiddlek at 2007-9-30 5:12:42
What is the best visual debugger out there for debugging Java applications?
647 byte By
jobard69 at 2007-9-30 5:25:13
Hi all:I've try to run the example com.sun.tools.example.debug.tty.TTY it works pretty well but I dont understand exactly how to use the command kill:kill <thread> <expr>-- kill a thread with the given exception object<expr>: a Java(tm) Programming Language expression. I dont ...
I have problem when I try to get and set the static field in main method.Because static field don't need to initiate the instance then when I use "event.object()" it'll return null value.How can i set and get the value of this field ...
Hi, I want to write a high performance server. The server will cache several objects in memory. I want to use all the hardware ressources availables, but without having OutOfMemoryError! How can I achieve that? I have thinking to use JVMTI for monitoring the memory used. Maybe it's better to ...
329 byte By
ApPle5 at 2007-9-30 5:48:03
Help~!! I'm currently doing a project for my Java lessons but I got this error for one of the classes that I'm writing. Could anyone help me please? The error is A:\AppointmentOrganizer.java:11: Class ArrayList not found in type declaration.ArrayList appointmentList = new ArrayList(); ...
792 byte By
abalde at 2007-9-30 5:48:46
Has anyone out there done any work or research on the topic of automated debugging? I don't have anything specific in mind, but the general idea is that a user wouldn't have totest every element of the interface by hand after each rebuild. It could do something like record all events from ...
428 byte By
Sonali11 at 2007-9-30 6:13:46
Hey, I am using org.apache.commons.logging package fordebugging.By default,it displays all messages onconsole but I want to put all messages in a file andthen view that file as i am using web application so icannot see messages being displayed on console.Cananybody tell me what to do in order ...