How to debug a Thread-running application?

2005 byte By jdevnewbiea at 2007-10-2 19:55:53
Hello,How to debug a Thread-running application by Netbeans 5.0?Although I set breakpoints to the method of the Thread, the debugger never step into it? What can I do?The code for implementation is like this:[01] public class MyClass[02] {[03]public static void main(String[] args)[04]{[05]// ...

java.lang.UnsupportedClassVersionError:

1999 byte By srikanta at 2007-10-2 20:10:12
Hello EveryBody I am doing an application uising servlet in Eclipse editor.I also using Junit for testing the individual module.When i am testing a module it shows me the following error.java.lang.UnsupportedClassVersionError: junit/framework/TestListener (Unsupported major.minor version ...

junit test with debugging

291 byte By nil4ua at 2007-10-2 20:16:45
Hi All,I have my project souce with adding System.out.println statement and bundle it into jar file.When i running junit test . I cant see project source's println statement. Any properties file need to be modify to see println statement?Thanks,Nil

debugging jconsole connection

473 byte By dberanskya at 2007-10-2 20:21:19
Hi,Is there a way to debug why I get "Connection failed" from JConsole?I have JMXRemote enabled on the JVM I want to monitor (I can telnet to the jmx port manually from the computer running JConsole). I've setup a password file and made sure I don't get JMX related error messages when ...

JSP

127 byte By kris_418a at 2007-10-2 20:26:34
HiCan any one tell me how to debug Jsp's ?Iam using eclipse 3.1.2 and weblogic serverthanks

How to debug from C++ to Java code

344 byte By Bhawnaa at 2007-10-2 21:13:04
I want to debug from C++ to java code.Is there IDE to do that?i dont think that there will be any IDE but what can be the other way..is there any plugin which can provide this feature .For C++ code i'm using VisualStudio.net 2003 and for java i hvae both Eclipse and Net Beans.My application is ...

JProfiler starting error

2129 byte By Murata at 2007-10-2 21:24:51
Hi friends, I am new to Jprofiler, I try to run local session, My settings aregiven below:Working Directory: /home/mbayir/trace/outputVM Argument: Noneexecuteble jar: org.apache.nutch.crawl.bw.BWInjectorArguments: ~/trace/bwdb ~/URL/PositiveURLS/ -whitewhen I start the session, I takes the ...

Eclipse IDE ?

731 byte By ibn_aziza at 2007-10-2 21:40:31
Dear Forumers,i apologise for (probably) posting on the wrong forum... but since I am new... I have not been able to find a suitable place...... anyhow... my question pertains to the eclipse ide......I would like the editor to show a separator between each method... so that I can easily ...

Is it possible to run debug mode in struts

560 byte By sherin_poojaa at 2007-10-2 22:08:07
hi friends Normal VB application we run each and every line in debug menu which contains step into, step over.the same concept i want to use in struts framework. Is it possible to run in struts application.I am Using tomcat 5.0, exadel studio and Eclipse 3.0.1. if anybody knows please tell me ...

util.NoSuchElementException

103 byte By student14a at 2007-10-2 22:18:02
hello:can u tell the reasons for this exception?util.NoSuchElementException

debug existing project

316 byte By kim.gonzoa at 2007-10-2 22:29:28
I've inherited an existing java project, but the debugger that was used is no longer available. I'm looking into Eclipse, but will I have to first create a project and import the code into that project in order to debug it? Does anyone know of an easier way? I want to use a graphical ...

How to find the java thread's pid on linux?

530 byte By Morfeibga at 2007-10-2 23:33:09
Hello,How do I find the java thread process ID on Linux? I have to analyze high CPU usage and especially which thread is using most of the CPU. The most current Linux kernels show only the process ID of the java. However I would like to find out how much processor time each of my threads ...

JVM 1.5 hang at system.exit(): how to debug ?

1522 byte By dgiboua at 2007-10-3 0:00:31
Our Java application seems to sometimes hang indefinitely at System.exit().So far, we have observed that:- the hang does not happen when running JDK 1.4, but only with JDK 1.5 (we are trying to migrate to JDK 1.5.0_06)- it seems that if we comment out code that calls PrinterJob.print(), the ...

what are tools availble for debugging a Java Program?

168 byte By er_mandeep_btecha at 2007-10-3 0:34:15
Hi Friends, I find difficulty to find errors in Java Client in JMS.Please tell me debug tool.Please reply as earlier as possible.Thanks Bye

JDI losing events on VM exit

1024 byte By meemua at 2007-10-3 0:38:43
Hello all, I have been writing a simple debugger application using the JDI architecture where i start the debugger, the debugger listens for a remore VM to attach, then the debugger monitors the remote VM until the remote VM exits. I have been tracing method entries, but the JDI seems to lose ...

JAMon 2.1 SQL/JDBC Monitoring now available

375 byte By ssouzaa at 2007-10-3 0:41:32
For an easy way to monitor JDBC and SQL statements check out the new release of the JAMon open source project. JAMon 2.1 adds the ability to monitor the method calls of ANY Java interface, as well as SQL statments and JDBC calls. Both summary statistics and details of these operations will be ...

Hunting down program freeze

529 byte By Mark_McKaya at 2007-10-3 0:51:12
I have a huge program that is occassionally freezing for no obvious reason. Best I can fiure is that swing EventListeners are causing an infinite loop of callbacks. There is no error message generated, and if I try to profile my project, the profiler is unable to keep up with the strain. I'd ...

Eclipse IDE

162 byte By godfreda at 2007-10-3 0:55:00
i am new to java and eclipse, i want to know how to add add delete items in a list box. And how do i use the defaultlistbox model. thank you godfred

JVM core dump and attach to jsadebugd problem

2217 byte By painkillera at 2007-10-3 1:31:46
Hi everyone,I was looking for a way to dump the complete state of a JVM (all runing threads, objects, ...) and afterwards to analize the dumped data. I have found a thread( http://forum.java.sun.com/thread.jspa?threadID=735052) here in the forums with some explainations how this could be done ...

Problem starting Eclipse....

1329 byte By cal02a at 2007-10-3 1:44:39
Hello Eclipse experts,I need your help. Eclipse was working fine before, but now I'm getting this error.Please help.Thanks in advance. I'm using, Eclipse version 3.1!SESSION 2006-07-31 14:40:34.751 --eclipse.buildId=unknownjava.version=1.4.2_08java.vendor=Sun Microsystems Inc.BootLoader ...

Want help to execute the programm of MethodEntryEvent

4093 byte By archana_acharyaa at 2007-10-3 2:32:49
Hi,I am trying to develop a programm for automatic logging in the programme. I took the hepl of java API and the Google site for searching some programms and successed also. but while running these sample programms i am getting classNotFound exception and some other exceptions also. i executed ...

How can I return Icon Name from a certain Cell in a JavaTable

1432 byte By ddad01a at 2007-10-3 2:51:31
I'm attempting to test a Java Application using Mercury's Quick Test Professional. I've figure out how to get the font from the JavaTable, but I'm unable to get the Icon. Below is the code that I'm using, could you tell me what I'm doing wrong.'Set Object PropertiesSet Window_Property = ...

An unexpected exception has been detected in native code outside the VM.

13602 byte By SunnyAcca at 2007-10-3 2:52:32
When I'm trying to execute a java test script using Rational Functional Tester, after some screens the explorer crashes and The following file gets stored on my desktop:An unexpected exception has been detected in native code outside the VM.Unexpected Signal : unknown exception code ...

Stack overflow error while running Jprofiler for Jboss 4.0.2

1433 byte By sachin_sachina at 2007-10-3 3:17:53
I am getting the below mentioned error while running Jprofiler for Jboss App server.My JVM version on linux is: 03:39:16,286 INFO [ServerInfo] Java version: 1.5.0_03,Sun Microsystems Inc.03:39:16,287 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_03-b07,Sun Microsystems ...

How can i built a java application using java debug class on Log4J

1785 byte By archana_acharyaa at 2007-10-3 3:28:03
Hi,As java API support the MethodEntryEvent, using which I can get the automatic logging statements when the method is entered or exited as HelloExample.main(with argument type).Where HelloExample is the class name.Main is the method entered with its argument types.In some cases I have the o/p ...

eclipse startup

381 byte By galapagosa at 2007-10-3 3:31:14
i,m using eclipse 3.1 . when i start the eclipse it shows msg box showing : found jdk1.3, required 1.4. But i have installed jdk 1.4.2now i have made a .bat file having following entry eclipse -vm C:\j2sdk1.4.2\bin\javaw -vmargs -Xmx256mnow when i run the bat file, eclipse starts.Plz can ...

Better Search Capability For Eclipse?

745 byte By mjacobscaa at 2007-10-3 3:44:30
Hello,I don't like the Eclipse search functionality because it doesn't show you any text results when you run a search. In some IDE's, you can search on a term, and then a snippt of the text containing the term shows up next to the search results (JCreator, J++, Textpad). Sometimes this is ...

Log4J - file appender (2/more file for same package/class)

2003 byte By Dhanasekarana at 2007-10-3 3:46:37
Hi All,My requirement is i want to create 2 log file for same package.EG: com.foo.barmy code:log4j.rootCategory= ALL, fileAppender,stdoutlog4j.appender.fileAppender=org.apache.log4j.RollingFileAppender ...

how to set break points in jdb

393 byte By M-Aa at 2007-10-3 4:50:09
I need to debug an application with jdb. I am new to this tool. when ever I try to do anything I get an error, for example, if I do : "jbd MyClass"then try>classesI get.Command 'classes' is not valid until the VM is started with the 'run' commandI dont want to run the class before ...

Remote Debug in eclipse

249 byte By september_27a at 2007-10-3 5:58:07
Hello!I am new to eclipse...Can someone tell me how to use remote debug? I thought it is done by running "Debug..." after selecting the java file...Sorry for being so ignorant about this...I will really appreciate your help. Thank you.

Eclipse plugins problem

711 byte By ctinmnitaa at 2007-10-3 6:18:06
Hi guys,I just downloaded Eclipse, ran it and worked fine. But when I "installed" (simply copy of the files in the Eclipse dir) the WTP plugin, nothing happend. By the screenshots of a tutorial I understand that there should appear new options for creating specific types of projects. But that ...

Problem with rolling file appender

910 byte By hariscornera at 2007-10-3 6:31:06
Hi,I have a strange problem with rolling file appender ..more specially daily rolling file appender. Rolling is not happening based on date but rather randomly. After every few hits, a new log file is created and there seems to be no particular logic/pattern behind this rolling that i'm aware ...

The Static Method should be accessed in a static way

1015 byte By TheBigBada at 2007-10-3 6:42:41
Hi, I am working on a little java class that accesses another class to display the day of the week.The code looks like thisimport java.util.Calendar; import java.util.GregorianCalendar; import java.util.Scanner;public class DateTime{public static void main(String [] args){ WeekDay WD = new ...

Debugging a sourcecode that uses Antenna's "preprocessing" feature.

476 byte By Kakyoina at 2007-10-3 7:34:40
I wonder if there's a way to use Eclipse(or any other IDEs) to debug(stepping through, set breakpoints, etc.) a code that look something like this:////#ifdef conditionApublic class Screen implements Runnable//#elsepublic class Screen implements Runnable, CommandListener//I tried searching ...

how to work on a differnt folder *not workspace* with eclipse

241 byte By xianwinwina at 2007-10-3 7:38:31
Does anyone know how to creat a project on eclipse but not on the workspace?I have a folder inwhich I must have all files init and can't figure it out how to work on this folder without importing to the workspace.thanks

Exception in thread

2694 byte By moggaa at 2007-10-3 8:28:38
Hi people,When running a file searching program that i have created i get a "Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 1193" error. Problem is JAVA doesnt seem to know where the problem is coming from as the stack trace shows ((Unknown Source). The 1193 in ...

Configuring directory path for fileappender in log4j.properties

829 byte By mk47a at 2007-10-3 8:41:28
I want to write log data to a file where the directory path of the file should be picked from a unix environmental variable. How can you configure this in log4j.properties?*******************************************************log4j.rootLogger=INFO, A# A is set to be a ...

How to force jvm.dll to accept arguments: -Xdebug

549 byte By bajafresha at 2007-10-3 9:00:31
Hello,I posted this in the New to Java section but didn't get many responses.I have a class which is utilized by a C++ application. The C++ app invokes Java somewhere inside via JNI. I have no access to the C++ source code to change the optionStrings.I want to use a remote debugger on the app, ...

Eclipse - debug step is not synchronise with source code.

572 byte By baradjiibrahimaa at 2007-10-3 9:32:57
Hi,I have an web application witch run on tomcat, when Idebug the application, the debug steps are not synchronize with the source code. Same thing when I change the code , after making the jar file and putting it in the WEB-INF/lib of the web application, the modifications didn't take place. ...

I am using Mustang(jdk6) to do heap walking, could anyone give some idear:)

205 byte By ChinaGirla at 2007-10-3 9:37:12
I would like to get all the objects in the current heap of JVM, I can connect to the vm, but I checked the api of jdk6(jdi), I could not find any methods which can do this. Looking for your help....

Migrating PetStore

2230 byte By ilagunaa at 2007-10-3 10:02:59
Hello,I am using asmigrate.sh version 2 (in a RedHat Linux Enterprise 4) to migrate Pet Store 1.4 to the Sun Java System Application Server 9 but I am getting the error bellow.Do you know any solution to this problem? Is there another way to get Pet Store 1.4 running on the new Java EE 5 ...

Making sense of hs_err_pid stack trace

1475 byte By jaspaxa at 2007-10-3 10:21:15
I'm attempting to debug a crash in a Java application running on Windows that occurs inside a native .dll. This question is not about the .dll itself, which is written in C++, but about how to use the hs_err_pid####.log file to figure out where to begin in the dll.The stack trace from my error ...

debug symbols

159 byte By nathanmxa at 2007-10-3 11:50:00
Where can I get the latest debug symbols for 1.50.10 so that I can see the callstack in Visual Studio when there is a debug break that involves jvm.dll.

How to write logs in to a file

375 byte By crra at 2007-10-3 11:50:54
Hi ,I want to write logs to a different files,using diffrent logger levels,that is if i specify DEBUG in the Log4J.props file it should write one file,if i specify the INFO it should write to another file,like that i need to write different files to different levels,Please help how to configure ...

With out web.xml file how we are developing servlets applications

30 byte By jsharathbabu@gmail.coma at 2007-11-26 13:53:08
reply for this question

Java Plug-in Fatal Error

338 byte By ewalker_lehmana at 2007-11-26 14:36:07
Hello All,We use many vendor and inhouse addins in Excel. When two of these add-ins are loaded, we get the following error message: "Several Java Virtual Machines running in the same process caused an error".What are the best debuging tools to use to help resolve this error?Thanks and ...

problem with my pc

378 byte By Mustaria at 2007-11-26 15:44:15
I have three message stating my problems in pc.They are1. A break point has been reached (0x80000003) occurred in the application atlocation 0x100038a62.A Microsoft Jscript runtime error: 'parant.get(...)' is null or not an object3. Visual c++ documentation on assertsI dont know how to handle ...

Verifying .java and .class files match

923 byte By el_chupanegrea at 2007-11-26 16:19:47
I have a bit of a strange situation in a team-working environment where many developers copy code to a production server. None of this code is in a Version Control System and I have been given the task of getting it into one (I've chosen Subversion, but that isnt important)The problem is, its ...

Strange Netbeans 5.5 JPDA Error

1242 byte By Mike_Christoffa at 2007-11-26 16:53:49
Hi all.I downloaded and ran Netbeans 5.5 using a copy of JDK 5 update 11 I had also just downloaded. I've rebooted my PC since installing these two applications.However, when I run Netbeans 5.5 using JDK 5 update 11, I get the following error from Netbeans:Warning - could not install module ...

Keywords in JDK 5

350 byte By Raji_PMa at 2007-11-26 17:21:24
Hi All,I am new to JDK5. So could you please let me know what are all the new keywords introduced in JDK5 other than enum?. What are all the over all advantages/new features of JDK5 in all the areas over J2SDK 1.4.2?. It would be much helpful if you people could help me in getting this details. ...