jdi or tty problem, how to solve it?

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 ...

A debug trouble, need you help!~~

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: ...

How to use JDI handle event, need you help!~

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 ...

newbie question: command classes and threads

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 ...

tty in jdk i.2 and 1.1

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 ...

to reuse or not to reuse

979 byte By sonOfTimea at 2007-9-29 17:33:25
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 ...

Proecess and OUTPUT/INPUT streams

758 byte By kirankumar_ja at 2007-9-29 18:10:34
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 ...

line number of a class file

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 ...

problem to debug applet, please help...

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 ...

need source code of AppletViewer for debug

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

story of appletviewer.exe

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

problem on debug Applet

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 ...

need idea

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

Debugging with JBuilder

553 byte By guineumana at 2007-9-29 19:37:17
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 ...

get file name in tty

478 byte By soso0000a at 2007-9-29 20:07:21
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 ...

Using JDB for Fault recovery

828 byte By CyberTeTa at 2007-9-29 20:09:26
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 ...

How to use jdb for debugging a servlet?

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 ...

ThreadReference.getValues(List a)

195 byte By Sami_Lakkaa at 2007-9-29 20:15:45
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?

Thread status in jdb

288 byte By redonetwoa at 2007-9-29 21:31:01
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?

how to add applet into jbuilder Application.

13237 byte By ravisinha_11a at 2007-9-29 22:39:00
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 ...

JDB help?

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 ...

How can an client-applet connect to server-DB?

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 ...

Accessing local variables in j2sdk 1.5

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

code testing tool

418 byte By rajivsikka_11a at 2007-9-30 0:52:45
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 ...

debugger for memory leakage

59 byte By kelvin5360a at 2007-9-30 1:04:41
Any suggestion for good debugger for memory leakage?

visibility modifiers + System.exit

571 byte By sonOfTimea at 2007-9-30 1:15:34
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) ...

Jbuilder X and 1.5

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, ...

Get Object from ObjectReference

258 byte By vaidhykumara at 2007-9-30 1:31:54
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

new to remote debugging (JPDA) and need help

1861 byte By oliver_watkinsa at 2007-9-30 1:53:41
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 ...

Leak memory

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 ...

Enabling line numbers in StackTrace ..

406 byte By Aamir_Shafia at 2007-9-30 2:25:34
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 ...

AttachingConnector Q [port number trouble]

1794 byte By bluecoder at 2007-9-30 2:48:53
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 ...

CPU usage of my Java application

854 byte By 0xdeaddeaf at 2007-9-30 2:48:57
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 ...

Ant, NetBeans, Deploytool

702 byte By itchyoinker at 2007-9-30 3:24:46
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 ...

information about class files debugging information

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!!

Debugging using Sun ONE Studio mobile edition

303 byte By sy_cheung at 2007-9-30 3:51:15
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? ...

Accessing the object mirrored by an ObjectReference

2205 byte By Daniel_Rowley at 2007-9-30 3:52:42
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 ...

JVMTI

195 byte By arunava09 at 2007-9-30 3:56:13
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?

Problem debugging jdk1.5 program

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 ...

Integra Enterprise

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.

Setting breakpoints for unloaded classes.

195 byte By jasonrickabaugh at 2007-9-30 4:41:56
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?

Debug JSP pages?

307 byte By MartinHilpert at 2007-9-30 4:47:34
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? ...

non-static version of java.lang.Thread.dumpstack?

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 ...

What is the best debugger?

89 byte By amiddlek at 2007-9-30 5:12:42
What is the best visual debugger out there for debugging Java applications?

JPDA Examples TTY kill thread.

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 ...

Accessing the static field

287 byte By taweewat_l at 2007-9-30 5:32:27
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 ...

Memory Management of a Server

501 byte By johnnygo123456 at 2007-9-30 5:43:01
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 ...

ArrayList Help

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(); ...

Automated Debugging

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 ...

Debugging thru org.apache.commons.logging package

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 ...