Uses of JVMPI jobjectID2jobject

345 byte By safira at 2007-10-1 0:26:57
I've tried converting jobjectID to jobject on a separate thread, based on a callback from Java, and i'm still getting crashes. I'm wondering if there are examples of how this function is to be used. It is noted that it's experimental and not really safe in the API, and i'm beginning to ...

Note: exec7.java uses unchecked or unsafe operations.Note: Recompile with

2144 byte By Reality1011a at 2007-10-1 0:35:15
this is my first semester with Java and I am having some troubles with this program that I am attempting to finish. Ideally the program is bubble sorting 2 seperate arrays and then combining them into a 3rd bigger array. I am not completely finished but I am having this compiling error when I ...

JBuilder -- IOException starting Java debug process --

683 byte By wnyu@163.coma at 2007-10-1 0:37:16
Hi, Experts: I used the windows update menu to update almost all win2k service packs from Microsoft?web site, and then I run the old java program with JBuilder. It can run normally, but when I debug it, it always raises a error on initialing java virtual machine, error description as below:-- ...

Java Static-Analysers

476 byte By .torus.a at 2007-10-1 1:00:07
I am looking for a static-analysis tool for Java which can perform alias analysis. It will also be of great help if the tool can perform thread escape analysis. Several research projects in different universities around the world have concentrated on such analysers but unfortunately a few of ...

how to invokemethod in ObjecReference JDI

1744 byte By tonyOne909a at 2007-10-1 1:24:12
Hi I need some help with the invokeMethod in objectReference class. How do you use it ? I Here is my sample codepublic void methodExitEvent(MethodExitEvent event){ObjectReference obj = objectReference(event);if(obj!=null && ...

log4j configuration

1881 byte By ranjith_iita at 2007-10-1 1:25:25
Hi,I have written two wrappers on log4j for logging in our application. One to log the user inputs in the UI (in utils.keyboadlogger package )and another to log the errors and debug statements (in utils.logger package) in the code. The configuration setings required for the rwo are diffeent. ...

Applet will not close in Yahoo games

217 byte By oriannaa at 2007-10-1 1:35:42
When trying to close a game applet, nothing happends and it just hangs and requires using task manager and end task to close. This is consistent. What could be causing this? Windows XP, IE 6.0 SP2.Thanks

Is Hat working with java 1.5

1319 byte By astesanaa at 2007-10-1 1:49:17
Hello,I'm trying to have HAT 1.1 working ... and it's a nightmare.I've tried with various jdk version, various options, various classes ... and I always have the same exception running HAT :java.io.IOException: Thread 200003 not found for JNI local refat ...

RUN command problem on Eclipse

288 byte By refp16a at 2007-10-1 1:51:12
When I choose to run any of my programs using the RUN button on eclipse I get a message indicating that "the option is not currently available". I磎 using version 3.0.1. I磎 working on the java perspective and yes, the files hava a main routine.What磗 the problem?THANKS

MyJava.java uses unchecked or unsafe operations

609 byte By vedshara at 2007-10-1 1:51:51
I get the following warning message when I use ant from within Eclipse:compile:[javac] Compiling 2 source files to C:\eclipse\workspace\StoreInfo\build[javac] Note: C:\eclipse\workspace\StoreInfo\src\StoreInfo.java uses unchecked or unsafe operations.[javac] Note: Recompile with ...

OutOfMemoryError in eclipse

711 byte By dapissarenkoa at 2007-10-1 2:41:13
Hello!I have a desktop application and experience strange behaviour with it.When I try to perform some function of this application and launch the application in eclipse, I get the errorException in thread "Thread-2" java.lang.OutOfMemoryError: Java heap spaceHowever, when I a) launch the ...

Reading input from text file

327 byte By HaloLucka at 2007-10-1 2:43:05
I am a beginning Java student and am having problems with an assignment.I need to read input from a text file using the Scanner class, seperate each line into the different parts turning one string into two strings and an int. Then I need to send these parameters into an array as an object. Is ...

NetBeans 4.0 setup help!

1509 byte By BouncingSoula at 2007-10-1 2:43:17
Hello all, I just dl'ed NetBeans 4.0 and im having a bit of a problem. I've ran tomcat from dos before and when i encountered the same error i knew how to fix it, but using NetBeans i haven't a clue. This is the output when i try and Build(f11) from NetBeansThe BASEDIR environment variable ...

Debugging informations and peformance

322 byte By cdomasa at 2007-10-1 2:46:10
Hi, when I include debugging informations in my class files with "javac -g", does-it have a perfomance impact?I know that the class file is bigger (and so more long to load), but is-it a big issue? On my tests, I don't see significant differences.Any ...

Problem with Log4j

2800 byte By sthaeema at 2007-10-1 2:47:25
Hello, I am getting the following error message while running my JRun server: ======================================= 01/17 12:30:43 user log4j-init: init 01/17 12:30:43 error Could not pre-load servlet: log4j-init java.lang.NoSuchMethodError: ...

Improving performance with JDWP/JDI

1285 byte By samueltoa at 2007-10-1 2:48:40
I'm writing some code to listen to a MethodEntryEvent. Is there a way to specify a filter to limit the request to only a specifc method? Right now my code uses the addClassFilter but the app being monitored becomes very slow after I attach the debugger. Here is the code I'm ...

How to import MySQL Driver in Jbuilder

507 byte By aakashjaina at 2007-10-1 2:48:55
I am creating a GUI application using swing with the help of JBuilder. I have used MySQL as Database. For connection it to java I've used MySQL J-Connector Driver. But I am not being able to import that driver(classes) in jbuilder.When i run the application at the cmd prompt it works fine (got ...

Need Help

565 byte By ekim23a at 2007-10-1 2:50:12
I'm getting the following runtime error:javax.xml.rpc.soap.SOAPFaultException: JAXRPC.TIE.01: caught exception while handling request: unrecognized operation: { http://www.theServer.com/wsdl}authenticateat com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.java:515)at ...

Weird JBuilder error, help is appreciated

1540 byte By CleopatraLa at 2007-10-1 2:52:32
I built an application using notepad and command line comilation which worked fine. However, now we've got JBuilder and I have to put all the code into it. Just putting it directly in did not work, so any advice on that in general would be appreciated, because I'm not at all familiar with ...

Junit Assert Equals

1240 byte By nikhilkumar_1a at 2007-10-1 3:00:43
I have an object that contains 2 fields - a string and an integer// Make the data in the ValueObject immutableprivate String testString; //use this to test the valuejprivate int oID;the hashCode method is implemented as:public int hashCode(){int hash = 1;hash = (hash * 31 + (getTestString() == ...

Applet debug from IE

392 byte By sungiasala at 2007-10-1 3:25:55
Hy,I've a problem when debugging an Applet using IE.I'm using NetBeans 4.1EA2The HTML page start and also the applet.I put a breakpoint in applet class code but when I try to call a method from the HTML (clicking a button) my program doesn't stop in debug.What can I do to debug the applet ...

where can I find a profiler

172 byte By a925473a at 2007-10-1 3:27:13
Hi,I need a profiler that will show me which objects (the objects names) in my application are located in the old generation memory ?thanks Eyal

Performance Question - StringBuffer vs. JspWriter

903 byte By zarar15a at 2007-10-1 3:29:25
I'm developing a heavy used Java application (performance is important) which makes the use of custom tag libraries by extending the TagSupport class. Simply put, making custom tags to be used in my JSP pages. The question is what is more efficient. Is it better to accumulate my output in a ...

netbeans 4.0 debugging problem

549 byte By weedmanba at 2007-10-1 3:38:49
netbeans 4.0 is not taking me to my break points. Its stopping at the breakpont but it doesn't bring up that part of the code and it doesn't hightlight the line its on. I've tried this on a windows 2000 box and a windows xp box. Both behave the same. These are p4 2.8 ghz machines with ...

jvmti & jpda

135 byte By tjacobs01a at 2007-10-1 3:50:37
Does anyone know of a free open source implementation of either of these debugging packages that have a java (or com) interface?

icompatible types

2382 byte By Our_Nationa at 2007-10-1 3:53:23
When i debug this i get the incompatable types error where the ^ areI know there are more errors than that but its just this is the first problem and the double thing i think its worn i was just trying different float and integer types and that is when i got fed up//SLOPEimport java.io.*;public ...

log 4j WARN

775 byte By raghuveer_vellankia at 2007-10-1 3:53:57
after adding below 2 lines of code (MaxFileSize,MaxBackupIndex)along with below 3 lines of code for my logger properties as below for Java Web application on weblogic server i am getting the error message on console during application startup as mentioned belowLogger ...

What does log4j info level mean

757 byte By Archana678a at 2007-10-1 3:56:53
hi , I have configured my log4j propertis file as followinglog4j.rootLogger=info, Rlog4j.appender.R=org.apache.log4j.FileAppenderlog4j.appender.R.File=/usr/local/jakarta-tomcat-4.1.30/logs/xmlgateway/xmlgatewaylog.loglog4j.appender.R.layout=org.apache.log4j.SimpleLayoutAnd in one my Struts ...

log4j DailyRollingFileAppender problem

1863 byte By ch7896a at 2007-10-1 4:03:04
Hi All,Hoping someone out there with log4j experience can help me out here. I currently have set my JVM (Tomcat 4.1) to output the stdout to a file. I would like to roll this file on a daily basis and am having no luck with log4j DailyRollingFileApender feature. It doesn't seem to be doing ...

java.lang.NoClassDefFoundError javax/resource/ResourceException

672 byte By rob61a at 2007-10-1 4:11:32
Hi,I'm running rhes 3, jdk1.4.2-05 and firebirdi'm trying to run the DriverExample.java code but I cannot get either the -classpath or CLASSPATH environment variables successfully.I keep getting the errorjava.lang.NoClassDefFoundError ...

HTTP Status 500 -

2117 byte By paligaa at 2007-10-1 4:19:51
Hi, I am running jdk 1.3.1_15and jre 1.31_15 as wellI am trying to run a web client application that some of my colleagues have made. It is linked with Corel Draw to create Corel Draw files. I am running the server off of Tomcat 4.1.24When the program tries to invoke Corel I get the following ...

Write a debugger using JDI

525 byte By Carmelloa at 2007-10-1 4:27:06
Hi,I am new to JDI and I want to create a debugger to listen to events like ClassUnloadEvent . I start the application that I want to debug with: java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=80000 <mailclass>is this correct ?I than get the VirtualMachinceManager ...

How to debug NullPointerException?

8445 byte By pshawa at 2007-10-1 4:28:43
I have a vb activex that calls a stored procedure and displays a list. It works fine on my Windows XP SP1 machine, but I can't get it to work on the production server (Windows Server 2003) or my other development pc (Windows XP SP2). The problem is I don't have a clue as to how to debug it. ...

Query LDAP problems

1199 byte By seanrogera at 2007-10-1 4:56:02
Hi,I am trying to do a query for my info from the company LDAP. I am getting error code 32 ObjectNotFound exception. Can anyone help me with this please.import javax.naming.*;import javax.naming.directory.*;import java.util.Hashtable;class SearchURL { public static void main(String[] args) {try ...

Textpad compiler help!

1196 byte By Aslan89a at 2007-10-1 4:57:29
This is the error I get when I compile, what should I do?javac: invalid argument: C:\Documents and Settings\Owner.YOUR-FSYLY0JTWN.001\My Documents\test.txtUsage: javac <options> <source files>where possible options include: -gGenerate all debugging info -g:noneGenerate no debugging ...

How to measure memory consumption during unit tests?

1132 byte By jdupreza at 2007-10-1 5:00:54
Hello,I'm looking for simple tools to automate measurement of overall memory consumption during some memory-sensitive unit tests.I would like to apply this when running a batch of some test suite targetting tests that exercise memory-sensitive operations.The intent is, to verify that a ...

Cannot Start Java Debug Process VM

3187 byte By Dev.Qa at 2007-10-1 5:11:45
HI,I'm not able to debug even a hello World using JBuilder2005. I can run it and build it successfully but can't debug. The following error message displayed while trying to debug-- Cannot start Java debug process VM --com.sun.jdi.connect.VMStartException: VM initialization failed for: ...

? Eclipse question... where did my classes go?

286 byte By pnandrusa at 2007-10-1 5:28:03
hi, i am using Eclipse and I ran the Project->rebuild all. When It completed all my classes had been deleted! What is going on? does anyone know? i am not THATworried because my java files are still intact, but it is a bit odd i think. Any advice? thanks!

try ... catch (RuntimeException re) {}

161 byte By tjacobs01a at 2007-10-1 5:28:58
Hi all,Can anyone speculate on how much of a runtime + memory hit it would be to have a try ... catch (RuntimeException) around every line of code?

Using JPDA while offline

573 byte By pvga at 2007-10-1 5:30:34
Greetings I am having a problem where I cannot use JPDA if I do not have an internet connection on my laptop. My application launches a new VM using the default LaunchingConnector, and it works fine while the network is up. When the network is down, I get a trace like:VMStartException: VM ...

Versions of JRE on a PC

112 byte By dpwhite42a at 2007-10-1 5:35:37
I have 4500 PCshow can I find out what versions of JRE are on a machine without doing it manually.

arrays

286 byte By karneea at 2007-10-1 5:38:36
im building a calculator and am using Object array. i am having problems with the following code:if(analyze.getFromStack(i) == "+")it wont do "something" meaning it does not equal + but it is in the array. please help im new and can use any help i can get thank you

object arrays

252 byte By karneea at 2007-10-1 5:51:02
i have an object array filled with doubles strings and integers. i need to pull out what type it is when i pull it out of the array. is there anyway to do this? i tried casting it into a double but that throws a runtime exception. please help :)

Modification watchpoints

1000 byte By mpacionea at 2007-10-1 5:56:55
Hi,I have written a simple tracer using JDI that outputs method calls and returns and state changes. I'm testing this using a simple program which constructs an object with String and int variables, changes them, then sums them with a randomly-generated int. I notice in my traces that the ...

thread start (and end?) times?

266 byte By hokie81a at 2007-10-1 5:59:21
Is it possible to see when a thread was started? I have looked at various pieces of doc on JPDA, Java API, etc. and cannot see any references to this. Of course I could track it myslef when threads are created, but I was wondering if the JVM does that for me?

Possible Memory Leak Problem in my Java application

1166 byte By esierica at 2007-10-1 6:09:22
Good Morning! How is everyone out there in the world of Java doing today?I did some research yesterday and found out that I might just have a memory leak in new code and/or existing code in the application that I am working on. I am noticing severe memory increases and CPU utilization going to ...

jconsole and ssl

305 byte By crrruma at 2007-10-1 6:17:01
Hey guys,Can someone tell me how to use the jconsole over ssl? I know you have to set the com.sun.management.jmxremote.ssl= true... however I'm not understanding how to get it to use a particular certificate.And perhaps how to get tomcat started with the same ...

com.sun.jdi.ReferenceType.getValue and uniqueness

290 byte By dmbdmba at 2007-10-1 6:38:59
Can one assume that the Value object returned from ReferenceType.getValue is a singleton for a particular Values value? If you follow fields from a LocalVariable, how can you detect loops in field references? Will the identifyHashCode of the ObjectReference of the Value be the same?

com.sun.tools.example.trace - problem while running on Eclipse

865 byte By domin_x@o2.pla at 2007-10-1 6:41:17
Hi,I got a problem with example jpda trace application provided with JDK (java/demo/jpda/) while running it on Eclipse. I've done all needed to create project, , package, classes, etc. Compilation done. Tracer application reads a tracing classname from command line (syntax: Trace <class> ...

Logging Package

286 byte By javauser2005a at 2007-10-1 6:43:00
Hi All,I am working on a very small application.How far it is advisable to use the java logging package since I might using the same number of system.out.println statements.And please suggest a good manual(like configuring,installing) as I am new to this technique.