Hi,I'm trying to use the remote debugging option Xdebug for my server. If I attach using jdb -attach, I'm not able to list my source file using list command. It says Source file not found. I tried various means, -Denv.class.path, etc. nothing works. the use command is always showing "." I'm ...
619 byte By
markee1a at 2007-10-1 12:26:44
I am running a Java program on WIndows using 1.4.2 - over a period of time, the memory slot Java uses appears to grow substantially (the test code is in an endless loop so it should stabalise).JProfiler and the RunTIme.getMemory functions tell me Java thinks its memory usage is stable, but I ...
I have an application the maintains three different Loggers. The application also has anywhere from 0 to 1000+ Threads depending on how many clients are communicating with the application. Each Thread contains specific information that I need to capture such as Client Name, Client ID and other ...
Hi;I need to expose a property in a class for testing only. Any ideas on how to do it?I don't want to have a testMe() method in the class because then junit is required with the application even though it is never called.I don't want to have a public property because no matter what the docs ...
604 byte By
klarita at 2007-10-1 12:48:20
Hi, I have been trying to attach a profiler agent through a native method during runtime instead of using the -Xrun parameter. I need it for trapping class_load and class_load_hook events. In JDK1.3 it worked ok, and it seems to work fine in JDK1.5, but in JDK1.4 it doesn't work ok (I tried ...
721 byte By
zorroxla at 2007-10-1 12:48:25
My customer has been used to servers written in C++ and running under Unix for a long time. When applications crash, there is a core that can usually be analyzed with a debugger to understand better the state of all threads at the time of the crash.Now that we have deployed a few new server ...
763 byte By
rvalivea at 2007-10-1 12:58:19
Hi,This is on Solaris 5.8.We are trying to create a stack trace for a java program that hangs. Kill -3 didn't generate the output in the current window. The output of the program (both stdout and stderr) get redirected to files. Couldn't find the stack trace in those files either. Someone ...
199 byte By
sihdea at 2007-10-1 13:01:07
Are debug builds of 1.4.2 available? I can't seem to find it on java.sun.com. I'm looking for a 32-bit Linux debug build of 1.4.2_06. Does anyone have a suggestion?Thanks,Steve
Hey,I tried to install and configure JRat a profiling tool. At the last paragraph it says:"1. Add shiftone-jrat.jar to your application's classpath.2. Add a system property to configure the JRat handler factory. This requires that a parameter be added to the VM command line. The parameter that ...
I cannot figure out what the problem is can you help me. this is my first applet so help would be appreciateimport javax.swing.*;import java.awt.*;import java.awt.event.*;public class Draw extends JApplet implements ActionListener{JLabel insert = new JLabel("please insert a picture");JTextField ...
I work on a Midlet project and the debugger from NetBeans 4.0 sometimes doesn't start at all and sometimes it's starts and just hangs in there ... showing me the midlet and when I push the "Launch" button nothing happens (and the project works with "Run Main Project") . Sometimes the debugger ...
I cannot see values of any char variable while I debug. In the panel it shows the name of the variable but in the value field shows ?. This is with any char variable. Does anyone know if is it a bug or if it is my debugger configuration that is wrong?Thank you
153 byte By
giobva at 2007-10-1 14:26:02
Hi,I need a way to make the value of a variable (get through StackFrame.getValue) serializable... Anyone knows how to do that?Thanks
558 byte By
pelhama at 2007-10-1 14:33:33
My application is running on Tomcat 5.0, using MySQL 4.1, and I put the mysql-jdbc driver under ROOT\WEB-INF\classes\ directory,The application run well before,but after I remove org and come folder under directory of webapps\ROOT\WEB-INF\classes\, and later put them back again( I did that just ...
5896 byte By
P00L111a at 2007-10-1 14:34:17
THIS KEEPS COMING UP WHEN I TRY TO OPEN UP A ROOM ON POGO.COM...THIS IS THE FIRST TIME I HAVE EVER HAD THIS PROBLEM AND I HAVE NO IDEA HOW TO FIX IT AND WHY ITS COMING UP...Java Plug-in 1.5.0_02Using JRE version 1.5.0_02 Java HotSpot(TM) Client VMUser home directory = C:\Documents and ...
I'm looking for a java lint tool that will point out <b>public</b> methods thatare unused within my codebase. All of the tools I've reviewed to datehave only detected unused private methods. Does such a tool exist?If so, can you point me in the right ...
423 byte By
Varadhaa at 2007-10-1 14:59:45
Hello,My application is hosted in Jrun 3.1 and it is running in win 2K.After running for sometime daily, I am getting the following error"Too many files open" and the application fails to respond. To solve it, server is restarted.The error happens only when the load on the system is very ...
Hi,I am using Netbeans 4.0. I got the project to compiled, but when I go to Run menu, the debug feature was grayed out. I placed the breakpoint in my code and need to step through the code for debugging, but I can't step/debug the code. What can I do to fix this ...
Hello,I'm developing an application routinely needs a JVM heap of 300MB or more so I need to increase the size of my Java heap.The problem is that the memory allocation modifications I have made to both Java and Eclipse do not seem to be having any effect. The JVM and Eclipse settings are both ...
11850 byte By
DFKnighta at 2007-10-1 15:20:44
I am in grade 9 and i am currently taking programming courses throughout high school and this is my first year learning java. I made a program (for fun) that allows the user to register and login but i am having a little problem with the login part. When i register, everything seems fine and ...
Hello, I am a newbie to programming and this is probably the first program im making,i need you help, i have written the codes, but there is just one error that im not able to debug, it says 'try' without 'catch' or 'finally'. plz help me, i really need your help, the codes im using ...
574 byte By
Jagmala at 2007-10-1 15:43:52
I am working on writing a debugger. I have written a debugger which runs a java application on VM and stores info like the line numbers visited and the no of time each line is visited. I have worked on the Trace example given with JAVA SDK 1.4 and extended it,But the problem is when I try to ...
Plz some help me;I have created and complied a class called JdbcConnect.javathe java file compiled and runing nice.But when i was using this class some other java class in the same DIR.like JdbcConnect bd;....some code...bd = new JdbcConnect();all the class files and java files are in the same ...
427 byte By
bonniota at 2007-10-1 16:38:29
This bug occurs when a class file contains a SourceDebugExtension attribute larger than 65535 bytes. In that case, running the java virtual machine with the debugger enable (with -Xdebug) causes a java.lang.InternalError to be thrown.I reported a detaild bug to the bugParade about this, it got ...
Hi,I have developed one web application. Now i need to do unit testing for that. which free tool is best. and tell me how to do.
Hi, I have a java app running as a rich client plugged into the Eclipse framework.I would like to be able to email the log files to a help desk. I want this to occur in two cases. 1) When a fatal error occurs (we have an exception catch block handling this), 2) If the user clicks a button to ...
Hi guys, We've been using the profiler that comes with the JSDK itself to try and identifuy bottlenecks in our code. We started up the program which opens up a ServerSocket and listens for incoming connections. What we found was that even though no connections were made to the ServerSocket, ...
3648 byte By
Anhura at 2007-10-1 17:30:30
Hi!I'm extending the org.apache.log4j.jdbc.JDBCAppender to log my web application directly in a database.OK, this is my code:package dbweb.logging;import java.sql.*;import javax.sql.*;import java.util.*;import javax.naming.*;public class JDBCAppender extends org.apache.log4j.jdbc.JDBCAppender ...
hi friends,i dont know whether this is the right forum to ask this question but please help mei have to set timestamp format in HTMLLayout in log4j.. currently it displays time in milliseconds however i want it in my own format by changing configuration in .properties file , how do i do that . ...
349 byte By
j__fa at 2007-10-1 17:45:33
Im trying to step through my program and watch what a variable is doing. Rather then taking snapshots all the time (am trialing YourJavaKit profilier, have also trialed JProfilier).I was wondering if there was a debugger/profiler that anyone knew of that could have, essentially what vb does ...
Hallo Forum,Pardon me if this problem has already been addressed on this forum, but I couldn't find anything of any help, since I'm not certain what to search for.I'm making changes to a multi-threaded server daemon not written by myself. This server interfaces with another server through ...
587 byte By
nilus_ma at 2007-10-1 18:05:25
Hi,I am using Eclipse 3.0, Jboss to run my Java applications. Till yesterday I could set breakpoints and everything was working fine.I didn't change any settings but it is not allowing me to set breakpoints anymore.Error is:Unable to install breakpoints due to missing line number attributesI ...
I have a logging.properties file and cannot get it to produce a log file off of cthe file is below.I have tried putting it a number of locations - but done seem to produce a log file ( c:/tmp/log2/jdklogger%g.log )below is the properties file: - I am on win xp pro - does that ...
361 byte By
nyLona at 2007-10-1 18:11:08
Hello.Maybe I won't be clear enough, but here it goes:I'm creating my own eclipse plug-in.When opening RUN/DEBUG... a want to have in the configuration Menu my own field/option that I can choose, create new_configuration and so on.How can I edit the option/arguments/environment menu ...
540 byte By
tim.ba at 2007-10-1 18:38:44
For the JVMTI data dump callback, the callback is:void JNICALL DataDumpRequest(jvmtiEnv *jvmti_env);How is one to manage JNI references in the context of this callback.I need a pointer to the current thread's JNI environment to call to call"DeleteLocalRef" on jobjects that are returned in ...
393 byte By
baba at 2007-10-1 19:01:42
Hi All,I am using Windows XP. I have some 100's of jars and I want to find in which jar file a particular class exists. The search option in Windows XP (except Windows 2000) doesn't help. I tried the sourceforge.net jarbrowser tool but it's search functionality is not working.Can anybody ...
Hello,first of all, please excuse if my English is not the best...I am trying to manually create a breakpoint in a VM that is launched via the sun.com.jdi.CommandLineLaunch connector. I wish to create this break-point at the start of the main(String[]) method of my Test class. For this, as far ...
Our IT group upgraded from jBuilder 9 to jBuilder 2005. When I try to launc a project built under jBuilder 9 I get the folllowing error-- IOException starting Java debug process --java.io.IOException: CreateProcess: C:\JBuilder9\jdk1.4\bin\javaw -classpath "C:\Documents and ...
498 byte By
ganxja at 2007-10-1 19:10:58
Hi,I use jdb to debug HelloWorld.java run on cldc_hi. Where cldc_hi is build ENABLE_JAVA_DEBUGGER=trueI compile HelloWorld.java with -gAnd use the same java version when compile and launchIn jdb I inputstop in HelloWorld.main run step ... jdb shows丗 Step completed: Thread1[1] thread="Thread1", ...
Hi,The javap diassembler tool doens`t support exportiing file,i need a tool that could diassemble java byetcodes and writting them to a file, can anyone suggest a simple command line tool like javap that support file exporting?
1660 byte By
uselessa at 2007-10-1 19:14:48
I have created 5 JTabbedPanes.For every TabbedPane, there will be a "Next" JButton which will bring the user to the next pane.To do so, I need to disable the TabbedPanes so that each time when the user clicks on the "Next" button, the next TabbedPane will be enabled.I have sucessfully disabled ...
579 byte By
MonkeyKa at 2007-10-1 19:29:27
I'm using the 1.4 Logging API and am concerned about the performance of calling Logger.getLogger() each time something is written to the log. The way that I see it, I could create an Logger instance to hold the value that I am using, or I could just call getLogger every time I want the logger. ...
2850 byte By
anniewa at 2007-10-1 19:38:33
hi,i'm using jre1.4.2 and running AS3 Linux kernel version 2.4.i grep'ed for my java process id, and did a kill -3 on it to get the thread dump:> ps -ef |grep Eatroot3936 3845 68 16:12 pts/200:00:05 java EatCpuroot3948 30293 0 16:12 pts/300:00:00 grep Eat> kill -3 3936 >thread ...
HI I am MaheshHow many static blocks can i have in a class?
Hi I have a small doubt about some classes.one of them isWhat are the advantages of String Class over String Buffer Class?What is the need of two classes(String and String Buffer) in Java API?
442 byte By
ggchoya at 2007-10-1 19:54:08
Is there a way to debug using both Visual Studio and Eclipse at the same time? I'm currently developing a program that uses C++ native code and Java. I'm working with the C++ code in Visual Studio and the Java code in Eclipse. The java code uses JNI to communicate with the C++ code. When I'm ...
Hi,I am not sure if this is a silly question :-)When I use jdb to debug a kvm.It always stop in catched exceptions which I don't care.How to not stop in catched exception?Thanks for suggestionsgan
How can I open the default browser from a java app? I am using a JAVA application and in that app I allow users to send reports via their default email client. How can I send the info( like the "TO:" , "Cc:" ,"Bcc:" ,"SUBJECT" fields ,body/content of email , also i wish to attach the reports, ...
Is there a way to attach to a debugger in which I don't know what port JPDA i's using?Background: I'm developing with a 3rd Party app that invokes plugins I write using an interface. I see scattered in a binary file the options for starting java with the xdebug parameters. Problem is no ...
659 byte By
mcpaynea at 2007-10-1 20:14:10
I am performance testing a java web application that runs in Tomcat. I am using OpenSTA to apply the load to the app and, since I have observed a memory leak, I am using JProfiler to help me determine the cause.The problem is that, although I have all filters turned off, JProfiler shows me an ...