How can I check if a normal Resultset is empty?Everything I try on an empty resultset results in the errorCannot perform action on empty resultset...
I want to find out, which process id under linux belongs to which java thread.For example: I can see the java threads in eclipse in debugging mode, but i do not know, how to find out, which process id belongs to which thread. I can give thread names, but i see the thread names only in debugging ...
Hi all,i'm trying to access the stack operands of a running jvm. My first thought was to use JVMDI/JVMTI, but i discovered that even 1.5.0. doesn't have support for this.Any idea how to do this?thanks,Marius
A very nice feature of Visual Basic debugging is, that you can drag the pointer that point to the current line of code backwards (and forwards). This way you can re-execute some line of codes during debugging with changed (temporarily fixed variable values) code just by dragging the debug ...
289 byte By
rajanag at 2007-9-30 19:22:06
Given a Object, can i find who all are holding or referencing this object. In other words Is it possible to find all the other objects that are referencing the object in question. If some one could help me with exact jpda api or java api to get this data, it would be of great help.
Hi ,I am using Tomcat 4.0, Jdk1.3 and eclipse 2.1 ,Windows 2000I am trying for past 2 days, Remote Server Debugging.But I can't acheive.Please help in this tough situation.I have configured Tomcat to run in debug mode by the following steps:1) In catalina.bat, SET CATALINA_OPTS=-server -Xdebug ...
Hi ,I am using Tomcat 4.0, Jdk1.3 and eclipse 2.1 ,Windows 2000I am trying for past 5 days, Remote Server Debugging.But I can't acheive.Please help in this tough situation.I have configured Tomcat to run in debug mode by the following steps:1) In catalina.bat, SET CATALINA_OPTS=-server -Xdebug ...
Hai ,I am not able to connect to another machine, using Telnet.When I open the Telnet window and give as "open hostname", it throws the error message as "Could not open a connection to host: Connect failed"What would be the solution.Please help me.
Hi, I'm trying to use NetBeans to develop my app, however, it won't find packages that I import in source code. My packages aren't jar-ed; instead the package names are merely declared in source code. For example...Packaged class looks like this:package com.myco.myapp; Calling class looks ...
388 byte By
kobrix at 2007-9-30 19:50:25
Hi all,One can start the JVM with the option of putting itself into debug mode if an uncaught exception is thrown. Do you know whether it's possible to explicitely put the JVM into debug mode without throwing an exception. Say I have a Java program with a UI and I want to have a command in the ...
Hi there. Was wondering of the best way to tackle an issue with a NoSuchMethodError we are seeing.Unfortunately, printing the stacktrace shows nothing.This is occuring when we attempt to use 3rd party JARs, so we cannot easily add debug messages to see where this is being thrown.From my ...
718 byte By
CooLio at 2007-9-30 20:05:02
hello,i have a problem when i try to open an applet from my computer using HTML file for it<applet code="x.class" width=600 height=600 HSPACE =50 VSPACE=100>Applet not displayed - requires a Java enabled browser</applet>The only thing that appears to my in my IE browser is a gray ...
Please post with your ideas.The compiler keeps saying I have an (error) on lines 46, 48, 50, 52, 54, 56Here is exactly what the compiler saysEddiesEquipmentRental.java:46: incompatable typesfound : intrequired : boolean} else if (input = onehalfday) {^EddiesEquipmentRental.java:48: incompatable ...
When i run the program an input box pops up and the user types in onehalfday or onefullday depending on the number of the item and time period chosen by the user then the program is supposed to use system.out.println( ) to display the price of the item.With my program after the user types in ...
373 byte By
Marzullo at 2007-9-30 20:06:34
How could i export numbers shown inside text fields in a java applet?The applet isn't mine, it's just an applet i've found on the net...Now i would like to import the data (a flow of numbers) it shows in Matlab.How could i do?OCR? Modifying the .class files that the applet installs on my ...
my problem is that my program outputs the population in scientific notation instead of round the number to the nearest one. ex: it should say 30787949.57 instead of 3.078794957 E7[code]// Calculates the poulation of Mexico City from 1995 to 2018.// displays the year and populationclass ...
I'm getting a problem to a most basic program. I'm using the Java2 Fast And Easy Web Start book. This simple label program gives me an error when I compile. This is the program//Label Program//Danon Knox//Another basic programimport java.awt.*;import java.applet.*;public class Label extends ...
I've written a debug servlet that uses JDI to attach to a remote (or local) JVM and then extract lots of info from it, very similar to the dump obtained when you send a CRTL-BREAK on Windows or sending CTRL-\ or SIGQUIT on Unix, except the log comes out on my servlet web page instead of to ...
1474 byte By
_rOnn_ at 2007-9-30 20:59:23
Jdk1.5 (and later 1.4.2) has a version checking feature in java -version: flag. i.e.,[ronnc@bill ronnc]$ java -version:1.4.2_05-b04 -versionjava version "1.4.2_05"Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed ...
1962 byte By
arnaud63 at 2007-9-30 21:00:44
Hello,Since Java 1.4, we can use java.util.logging to help debugging code. It's very easy (and very usefull) to add some line like:log.fine("The value is "+value);The only drawback is performance: even if logging is disable, the expression ["The value is "+value] willbe evaluated by the JVM, ...
966 byte By
nrohan at 2007-9-30 21:03:32
HiI'm trying to write a simple profiler using JVM Profiler Interface todisplay classes loaded while running my application.For this, I have registered callback to notify two eventsJVMPI_EVENT_CLASS_LOAD and JVMPI_EVENT_CLASS_LOAD_HOOK.Now the problem is that, for some system classes which are ...
1703 byte By
Wuzon at 2007-9-30 21:03:50
Hi,I齧 not shure, if this is right here.My problem is the following code<html> <head> <title>MMDE 5 zweite Aufgabe</title> <script language=JavaScript><!--function CheckInput(){//var ...
80 byte By
bezgodo at 2007-9-30 21:15:32
hi , i just need a help to show me how to set java path on linux . thanks
Our software is causing a JVM crash with an EXCEPTION_FLT_STACK_CHECK error using the latestSun 1.4.2 and 5.0 JVMs on Windows XP. No such error appears with 1.4 on Macintosh OS X.We start the JVM via JNI Invocation - our software is a plug-in for a standard Windows GUI program thatrequires a ...
Hi,We are currently experiencing a memory leak on our JVM on our live servers. The JVM in use is...Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06)Java HotSpot(TM) Client VM (build 1.4.1_02-b06, mixed mode)In order to try and track down the root cause of the memory leak I ...
1359 byte By
Ondra at 2007-9-30 21:34:20
Hi all,in my application I have a class DummyLogger, which is a superclass to all others. It provides them a log4j Logger.In the constructor it sets up the important attributes:log = Logger.getLogger(name+" (" + app + ") ");log.setLevel(Level.toLevel(level));PatternLayout defaultLayout = new ...
hi, heres a code i've been trying to write to connect to an sql database from oracle, i keep getting an incompatibility error on line 25, column 49. can anybody help? thankspackage Trial_Package; import java.sql.*;public class Trial{ public Trial() {public static void main(String[] ...
Hi there,I am using Borland Enterprise Server for my application. However the application does not seem to be scaling well in terms of memory or response times.I have managed to eke a few improvements in terms of response times, but am now looking to reduce the memory footprint. I have at my ...
Hello, I'm new here. I have a problem that I can't read from another class I have created. I am a student, using a glencoe book titled "Introduction to Computer Science Using JAVA". I am on an exerscise learning about colors. What I did was I created a java file, titles "FancyText1" with the ...
552 byte By
sils at 2007-9-30 21:57:00
Sometimes happens to me during the debugging of my application to have the necessity to "step into"in some Sun's classes (java.lang.String, or swing classes or something else).Even if Sun provide us the sources, I have not found a way to debug Sun classes because the Sunclasses are shipped in ...
Hi all,I remember once seeing a open source tool that can analyse your code to check for unused code, unreferenced variables, methods with permission set too high, (eg could be private but is public). It does it on a global sense, not per class like in Eclipse. Does anybody know this tool? or ...
1968 byte By
dannyd73 at 2007-9-30 22:03:40
<b>here is my code the compiler errors are listed at the bottom</b>import java.io.*;class filecopier {//this program copies text from one file to another//the file names are read as command line argumentspublic static void main(String args[]){String f1n=arg[0]; String f2n=arg[1]; ...
5294 byte By
dannyd73 at 2007-9-30 22:04:59
this code has no errors but when I run it it doesn't copy the text from the input file to the output file I'm not sure what I'm doing wrong. for input i type in example.doc for output i type in example2.doc and it doesn't copy the text maybe you could tell me what is wrong.import ...
1266 byte By
rocket at 2007-9-30 22:26:33
This may seem petty, but I just started using Java so its bugging me that something this simple isn't working, my applets are compileing fine, but I still can't get the HelloWorldApp to work. The code is typed exactly as shown:/** * the HelloWorldApp class implements an application that * ...
303 byte By
Tacidsky at 2007-9-30 22:28:37
I am writing an application that will tell the user a story, that they will be interactive with, i know i need the javax.swing.JOptionPlane...but what dependency do i need in order to clear the window.as in typing cls in command prompt, only this is in java.thank ...
how would i go about something like that?_import java.util.*;public class GameLauncher{public static void main( String [] args) {SellGame game = new SellGame(); game.startGame(); }}__
364 byte By
gags78 at 2007-9-30 22:33:16
Hi folks, I was wondering if there was any indication as to when hotswap support might be availablefor schema / shape changes to a class file. i.e. changes including new methods or fields.Currently I understand that hotswapping classes only supports changes made to the implementationof a code ...
1578 byte By
hmai at 2007-9-30 22:35:29
Hi,I'm trying to create a class that has all the characteristics of several GUI components such as JButton, JLabel, JRadioButton .... combined into one big class. But when I run the codes, the object of this new class is not visible on a frame like a JButton or a JLabel would be. Someone, ...
1506 byte By
Tony621 at 2007-9-30 22:57:53
Hi I am new here, and havent been programming in Java for very long... Im having this a problem with this method:public void rowCounter(Expression p2, int m){m++;if(m > Formula.maxrows) {Formula.maxrows = m;}if (p2.getTermOne != null && p2.GetTermTwo != null) ...
I am New to Java. How to write the log file which is useful to keep the track record of the other java file. Means It shows the output whether the connection establish or not, how many threads are created etc.Thankx Nilesh Vasasni
Can someone pls help me?These are the two problems:--Configuration: j2sdk1.4.1_02 <Default>--C:\Documents and Settings\Laila\My Documents\CMT2080\Coursework\Game\Mindboggler.java:291: illegal start of expressionpublic void inputJButtonActionPerformed( ActionEvent event )^C:\Documents and ...
I have all sources on the same direcory. I have a pulic class BL_STIP_Client that doesn't belong to a pachage implemented and in an other class newAppControll that belongs to a package "controller" where i am trying to instantiate an BL_STIP_Client object. Then i get the error can not resolve ...
260 byte By
alexk5 at 2007-9-30 23:20:13
Hello everybody!Is there any explanation of the subject?BoundsChecker shows:"Attempting to call global_operator_delete on 0x18D743E0; pointer was allocated by malloc." Place of the error is the same in awt.dll: 0x00098048Alex
8576 byte By
oralb52 at 2007-9-30 23:28:41
i'm getting all sorts of errors for this, mostly linked i think to the way i'm declaring my methods, any input would be appriechiated. the code is basically designed to alternate drawing 3 frames to give the feeling of animationand here it is:import element.*;import java.awt.Color.*;public ...
501 byte By
JavaFEAa at 2007-9-30 23:33:38
Infinites would be nice too.I badly need a way to force the JVM to automatically throw an Exception with the first occurence of a numerical error. Yes, debugging is possible by throwing in if(X!=X) type statements, but the time expended to locate problems is enormous in a large program. I guess ...
Granted HPROF is a pretty primitive profiling tool, but for what it's worth this recent article provides some details: http://java.sun.com/developer/technicalArticles/Programming/HPROF.htmlI would be interested in experiences or problems encountered with this new HPROF in J2SE ...
Hi,Has anyone been able to use Chainsaw with jdk 1.4 logging generated logs (using SimpleFileFormatter or XmlFormatter)? I am trying to get some information for this setup so as to be able to use Chaisaw to connect to logs on a remote box.Also, is Chaisaw something that one can use to monitor ...
I was wondering if there is anyway I can find out if an object goes out of scope....I am trying to track the value of class variables, but the problem is that I never know if teh variable goes out of scope or not. Is there any way it can be done?Thanks,Swami.
Hi ALL:I hope you can help with my problem. I am quite new using JAVA, specially its JDB debugger. Well i do not have problems using the commands such as run, step, stop, etc. My problem is when I need to read any input from the keyboard, and i debug it, and when the debugger reaches the ...
I have some server-side code and would like to modify the code path based on whether a client is connected and debugging or not. For example:if (!isClientDebugging()) doSomething();else doSomethingElse();So what would go in the isClientDebugging() method?I could do something very ugly like ...