Check Resultset not empty

170 byte By OnlineMetalhead at 2007-9-30 18:36:50
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...

Process IDs Linux

412 byte By wagner.joerg.reuth at 2007-9-30 19:04:45
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 ...

JVMDI / JVMTI issue

244 byte By stoian_marius at 2007-9-30 19:12:55
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

5.0 debugger more sophisticated (jump backwards)?

568 byte By MartinHilpert at 2007-9-30 19:15:36
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 ...

How to find all the referencing objects of a Object

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.

Remote Server Debugging

890 byte By technewsgv2003 at 2007-9-30 19:22:27
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 ...

Remote Server Debugging with Tomcat and Eclipse

2165 byte By technewsgv2003 at 2007-9-30 19:36:57
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 ...

Telnet Connection Problem

283 byte By technewsgv2003 at 2007-9-30 19:37:08
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.

NetBeans won't import my packages

1232 byte By itchyoinker at 2007-9-30 19:39:41
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 ...

Triggering Just-in-time Debugging

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

NoSuchMethodError debugging

744 byte By neil_laurance at 2007-9-30 20:00:13
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 ...

cannot open applets from my computer using IE 6

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

Help with incompatible types error

2936 byte By bigdman57 at 2007-9-30 20:05:37
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 ...

problem: program gives error when I run it

2868 byte By bigdman57 at 2007-9-30 20:05:41
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 ...

Exporting java applet data

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

problem: program outputs numbers in scientific notation

1080 byte By bigdman57 at 2007-9-30 20:13:37
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 ...

Problem with simple label program

1689 byte By arimakidd at 2007-9-30 20:38:08
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 ...

Using JDI via reflection; How to get free memory via JDI?

5693 byte By edrandall at 2007-9-30 20:42:06
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 ...

JVM version check -version:1.4* does not always work

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

Annotation and logging

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

JVMPI class load event problem

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

select () and focus()

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

set java path on linux

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

Debugging JVM crash via JNI Invocation

1199 byte By recordare at 2007-9-30 21:22:15
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 ...

hprof heap=sites causes big JVM slow down.

869 byte By skullmaggots at 2007-9-30 21:26:03
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 ...

log4j doesn't create backup files in web-app, the same code in pure java ap

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

debugging

1031 byte By Butterball at 2007-9-30 21:50:20
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[] ...

Scaling concerns

813 byte By neil_laurance at 2007-9-30 21:52:22
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 ...

Class Reading Help.

3950 byte By SangreFiraga at 2007-9-30 21:56:45
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 ...

How to debug Sun's classes using Eclipse

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

Code analysis tools?

368 byte By justinlawler at 2007-9-30 22:03:15
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 ...

2 errors

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

doesn't run correctly

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

Error with HelloWorldApp

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

Clear Window

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

must be caught or declared to be thrown...

253 byte By thatonejewishguy at 2007-9-30 22:29:10
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(); }}__

Hotswap support for schema / shape changes

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

Need help with JComponent class

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

Some Problems

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

Log File

251 byte By vasaninj1981 at 2007-9-30 23:00:07
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

Illegal start of expression and cannot resolve symbol HELP

11687 byte By bumbreezer at 2007-9-30 23:12:29
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 ...

object instatiation problem

704 byte By psychoplastic at 2007-9-30 23:15:02
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 ...

Numega BoundsChecker shows a lot of memory allocation problems in awt.dll

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

Can someone please help me?

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

Automatic trapping of NaNs?

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

Using HPROF for CPU/Heap profiling in J2SE 5.0

303 byte By kellyohaira at 2007-9-30 23:35:12
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 ...

Chainsaw with JDK 1.4 Logging

418 byte By vsaminenia at 2007-9-30 23:53:23
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 ...

Scope

280 byte By Malawi_Bwanaa at 2007-10-1 0:03:56
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.

Help with JDB

524 byte By dbv_evera at 2007-10-1 0:19:10
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 ...

Can I tell within my server code that a client vm has connected?

563 byte By turbo123a at 2007-10-1 0:20:44
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 ...