can u help me in JTextArea.how can i add listner to that.can u help me by sending a sample piece of code
550 byte By
lexisa at 2007-10-2 13:53:13
Hi all,For university study reasons I should read the source code of JVM, in particular that of JVMTI to see how it gets information about the frames of a running thread. I downloaded the source code of JVM and I realized that the methods I was looking for are declared in the file jvmti.h (in ...
1232 byte By
sanxa at 2007-10-2 13:54:00
I have a memory leak somewhere inside my Java Applet. I can produce a hprof dump file but when I try to use the HAT tool to analyse it I get the following error....C:\hat\bin>java -cp hat.zip -mx100m hat.Main /dump.hprofStarted HTTP server on port 7000Reading from /dump.hprof...Dump file ...
Using b69, b71 and b73, I see 1000s/10000s of JNI Local GC roots using YourKit 5.1.Is this a known issue?
199 byte By
avca at 2007-10-2 14:05:57
when i am compiling my code i am getting error like this:abc.java uses or overrides a deprecated API. Recompile with -deprecation for details.pls anyone help me about this
323 byte By
mynaa at 2007-10-2 14:09:38
I m new to log4j . i have done some RND in google. known that it is a debugging tool and allows developers to insert log statements in their code and configure them externally.But can u plz tell me in which way it is included in the code. And mainly in which instances this is used?Thanks for ...
820 byte By
colblipa at 2007-10-2 14:16:22
have been getting a java error on some pages. This has only started with 1.5.x versions. I have uninstalled all java software, made sure the registry was clear of it, reinstalled latest version and still the problem. I checked it on www.java.com and it continues to fail no matter what I've ...
743 byte By
b_galea at 2007-10-2 14:22:40
I'm seeking an easy way to view the return values for Java methods when stepping through code using the Eclipse debugger.In MS Visual Studio this is trivial (explicitly displayed by the debugger).I would prefer a solution that requires little or no setup per debugging session. The hardest ...
2526 byte By
spielca at 2007-10-2 14:30:32
Hi everybody!I have the following problem:I have a program and this program "hangs" after a given time (it crashes almost every time at the same code-line).As i use Eclipse for java development i thought it should be enough to press the suspend the button to suspend the program and find out ...
556 byte By
mezka at 2007-10-2 14:34:11
Hi everybody!I have the following problem:I have a web application with jsp's and servlets and using IDEA Intellij and tomcat for jwsdp when i run the debugger i get the next message:Check your run/debug configuration. Failed to establish connection to the target VM at'127.0.0.1:3505' using ...
593 byte By
flawlora at 2007-10-2 14:55:17
I am developing an app under NetBeans. It has an MBean which is enabled for remote operation as described in http://java.sun.com/developer/technicalArticles/J2SE/jmx.html.The docs say that security is enabled by default, but when I connect from another machine it doesn't require any ...
196 byte By
bhaskara at 2007-10-2 15:04:38
Hi All,I am using iReport 0.4.1.How can i create Dashboards?.i am new person in jasper.Pls help me,its very urgent.No need for integreation with code,i need design only
Hi all,I am experiencing an interesting issue with a Java email server that I wrote. It is running on Linux 2.6 on an amd64-specific kernel of Gentoo running on JRE 1.5 update 6. What happens is randomly, the server would completely stop without logging any messages to any log. Before the ...
168 byte By
jbchurna at 2007-10-2 15:18:43
Does Java Studio Enterprice 8 Edition has all the features that that Java Studio Creator 2 has?If not, what missing.Please advise.Thank you.
I have implemented log4j in my web application.my log4j ploperties file shown here.log4j.rootLogger=INFO, ...
anyone knows how can i add JTAPI libraries into my project in netbeans?i can use the auto import in netbeans when i use import javax.telephony.*; with it's javadoc shown.but netbeans still issuing an error when i try to compile my file.any ideas?
4761 byte By
rod183a at 2007-10-2 15:52:44
Stuck on my code, don't know what to do to get rid of the 2 errors I get in the Amortization class. Loan compiles fine but not Amortization.First class:public class Loan{private double LoanAmount;private double MonthlyInterestRate;private int NumberOfMonths;// Constructors of this classpublic ...
558 byte By
john_ma at 2007-10-2 15:54:33
Hello,Does anyone know about changing logging level for one particular logger? Can we get a more fine level for one particular logger? It only seems to allow us have less fine.Right now, we only have default setting for all loggers:.level= INFOI want to turn up logging for one particular ...
679 byte By
piampria at 2007-10-2 15:56:48
Hello,I have read article after article; forum after forum yet this feature is still not working for me. Can someone please help ? I am trying to remotely debug my JSP using the Eclipse debugger(remote). I've edited the startWLS.cmd file to include this option :"set DEBUG_OPTS = -Xdebug ...
1431 byte By
varunga at 2007-10-2 16:00:14
Hi there,I am currently remotely debugging a Java app that uses EJB from Eclipse. and having probelms with Eclipse getting into a block of code that I want to step thru. Eclipse shows me the following message that it cannot find the source code in debug view for the method I wish to debug: ...
1071 byte By
xiejavaa at 2007-10-2 16:01:14
I want to know how to use "Trace" in Java Platform Debugger Architecture. Trace displays traces of program execution. how to invoke it?Trace can be invoked as follows: ***********************************java Trace options class args**********************************what in front of me is I set ...
HiI have a multithreaded server with lots of open sockets, written in Java 1.5 that just freezes from time-to-time.When that happens, all threads stop responding and it stops accepting incomming connections.When running in debug mode I am able to remotely debug it but all threads seem to be at ...
1556 byte By
xiejavaa at 2007-10-2 16:05:08
I get Trace.java from demo\jpda\examples.jar. while it is expanded it is in \com\sun\tools\example\trace with EventThread.java and StreamRedirectThread.java. ***********************************first compose by:javac -classpath E:\Java\jdk1.5.0_06lib\tools.jar;.\ ...
681 byte By
JellyJoa at 2007-10-2 16:18:25
Hi I need to eventually create a Hashmap containing all the caller methods and callee methods,I can get the name of the methods as they are being with the MethodEntryEvent:private void methodEntryEvent(MethodEntryEvent event) {String methodName = event.method().toString();}I would like to now ...
300 byte By
cannizza at 2007-10-2 16:47:02
i am currently learning java and i'm trying to carry out a black box test;i have been given a .class file to testI need a way to open the .class file but i do not have the .java file... what are 2 methods, in which i can run the .class file?Can anyone ...
hi ,these days i need to build my code everytime i make changes ...previously it was working well ......i went thru some changes in env .....as there were new addition of MDBs etc in my projects .....i m using WSAD 5.1.2 ....... i have checked the option we get on server for hot code replace ...
1210 byte By
ajuaa at 2007-10-2 17:02:08
Hello, everyone!I have a question. How do I keep myself from accessing methods outside my own class? See, when I use the debug feature of Eclipse, (I am using Eclipse 3.0), and start debugging, I often "Step Into" methods of classes like String.class and the like. Doing so produces errors that ...
Can someone please explain to me the steps involved in attaching to an already running vm. I have read the documentations but haven't really understood.Thanks in advance.
Hello,I am trying to implement log4j in my application, and would like to log the caller class and the line number of the call. When I do not use async appender, the caller class and the line number are logged. However when I add the same appenders to the AsyncAppender, the caller information ...
hi,i developed a web application..now i want to develope configuration wizards,which configures my product at client side.it should take care of available modules in my product.it should add selected modules,and if need it should add plug-ins too......any tools available to develope such a ...
2611 byte By
ramndra at 2007-10-2 17:15:19
hi friends,I have a doubt in log4j usage.kindly follow my program and properties file below. my aim is to log the messages generated from class to a file, without generating the output to console.here is the properties file i named it as log.propertieslog4j.debug=truelog4j.rootLogger=, ...
863 byte By
Kmantisa at 2007-10-2 17:28:21
Hi all.I've got a question regarding running the Java Virtual Machine in debug mode. When starting a vm using these parameters-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000it should be possible to connect to this VM using the Java Debug Interface. I have been succesful in ...
Hello,I'm trying to use JProbe to profile an applet. There does not seem to be an easy way to do this. Does anyone have experience with this? Any other ideas/tools to do this? Thanks.
Anyone have a clue whats going on here i keep getting unchecked or unsafe operations. Tried compiling it in command window. Still dont know what the problem is. Thanks.import java.util.*;// Class represents a Sudoku Grid// This is the starting grid// {4, 0, 0, 0, 0, 0, 3, 0, 8},// {0, 0, 9, 1, ...
495 byte By
mauvva at 2007-10-2 17:59:58
when I import the classes "java.util.Formatter; or Scanner; " , the message given by the compiler implies that the java version i have does not support those classes.I have jdk1.5.0_06 and jre1.5.0_06 on my computer. I had jdk1.3.1 before that, but i removed it before installing j2se 5.0My ...
302 byte By
nil4ua at 2007-10-2 18:16:03
Hi All,I am newbie in eclipse debugging.I have my project source code (large size).and now I just testing mycode using simple test case.Is anyway to debug the source with test?like setting path reference of source to test in debug ...
334 byte By
dam_sa at 2007-10-2 18:22:11
Hy, Sorry, but my english is not very good... I have developp an application with eclipse 3.1 (jre1.5) and i have this error:java.lang.OutOfMemoryError: Requested array size exceeds VM limitIs there a solution?From which does the problem come? (Moreover i have VM parameter: ...
my project was complete when i build it.....but in the middle of running it....the following exception appears in the console....somebody please tell me what it means and what should i do to make it gone?java.lang.IllegalStateExceptionat javax.microedition.lcdui.Form.append(+20)at ...
162 byte By
am_newa at 2007-10-2 18:23:55
Hello Is anyone using RAD 6.0 here know more about the enhanced EAR ?Is that a standard J2ee format or it is just for websphere.Thanks
I have Cactus tests (essentially JUnit tests with datasource connectivity, among other features that are irrelevant to this question) that test my DAOs.The tests ran fine in WSAD 5.0. You'd start the server, run the class as a JUnit Test, and it worked. If you ran them without starting the ...
7022 byte By
betlora at 2007-10-2 18:33:02
HI,I have the following proglem:Map.java:13: duplicate class: Mapclass Map implements Serializable^Note: D:\Code\Map.java uses unchecked or unsafe operations.Note: Recompile with -Xlint:unchecked for details.1 errorProzess beendet mit Exit-Code 1why does this error occures?here is my ...
Hi,Can some one please help me with my problem I have here?I want to send log data to two diffrent files depending on the logging level such as DEBUG and WARN using the same logger instance.How can you configure this in log4j.properties.Please post sample code for log4j.properties to achieve ...
1895 byte By
sebtia at 2007-10-2 18:45:33
Hello!I have developped ticker news applet A previous version was working fine. The applet had a thread. I used the pain method to display texte and logos. It took the news a logo from the applets parameters and printing them one by one on the html page.Now the problem was that I had to refresh ...
I have an applet that is running a bit too slow, and I heard the hprof is just the diagnostic tool for the occasion. Unfortunately, if I try to run it in the Java Runtime Parameters of the Java Control Panel, Internet Explorer just exits everytime I try to start the applet. Is there some other ...
354 byte By
Ravi_80a at 2007-10-2 19:11:02
HiI hava a jar file in which i would like to modify class file.i am using FrontEnd decompiler through which i open the class file and made the modification.But, how should i compile this file after modification.My final intension to develop the jar file with modification code.Pls HelpThanks ...
378 byte By
nil4ua at 2007-10-2 19:33:02
Hi All,I want to attached my project source to my test case (set project source jar) for debugging my project source.I see the option in debug As=>CLASSPATH tag =>Advance=>Attach sourcebut this option is disable.How i attach my source so that i can debug my project source step by ...
Application Name ::: (www.mooyaa.com/v1)java.lang.NullPointerExceptionjava.io.FileInputStream.(Unknown Source)java.io.FileInputStream.(Unknown Source)com.mooyaa.service.impl.TemplateManagerImpl.getEmailTemplate(TemplateManagerImpl.java:29)my web application www.mooyaa.com/v1 can't read file.it ...
243 byte By
shmuela at 2007-10-2 19:41:43
hi i have a simple program that creates 4 threads from the same classi would like that every thread will be writing to a different log file using configuration file.is it possible ? p.si am using log4j
1312 byte By
halfdoga at 2007-10-2 19:44:12
Hi everyone, I've a problem debugging an application.Background: Sometimes my application comes to a very unlikely state, which at the moment results in an error message. The stack trace alone has no great value, since this state is cause by the interaction of more than one thread. The state ...
948 byte By
iopia at 2007-10-2 19:55:28
I am working on an applet program and inside the main file I wrote an inner class named EventHandler. What I can't figure out is why this class generates both MyApplet$EventHandler.class and MyClass$1.class files. My situation is as follows:The EventHandler class declaration looks like ...