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 ...
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 ...
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:-- ...
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 ...
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 && ...
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. ...
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
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 ...
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
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 ...
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 ...
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 ...
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 ...
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 ...
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: ...
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 ...
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 ...
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 ...
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 ...
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() == ...
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 ...
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
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 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 ...
Does anyone know of a free open source implementation of either of these debugging packages that have a java (or com) interface?
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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. ...
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 ...
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 ...
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 ...
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: ...
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!
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?
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 ...
I have 4500 PCshow can I find out what versions of JRE are on a machine without doing it manually.
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
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 :)
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 ...
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?
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 ...
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 ...
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?
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> ...
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.