Hi.....This is suri,,What is the cheked exceptions in java,,and give me some cheked exceptions, i would be very thankful to give this answerThank youSurendra
Hi,what are soft/weak/phantom references for the JVM TI call IterateOverReachableObjects? Are those reference-objects1. ... "normal" objects having references and beeing traversed by this function(OR)2. ... interpreted as references with hiding the object nature(OR)3. ... ignored as they are ...
Hello,I wrote an agent to get the sum of all reachable objects using JVM TI.After every 100KB of allocation, FollowReferences() is called and get the sum of all reachable objects. (Of course, it tags visited objects not to count the same object twice.) I can get a heap occupancy graph using ...
8860 byte By
Shamz84a at 2007-10-3 8:47:26
Hii'm having a problem with this and am not sure why i'm getting this error,here my code/* * XMLCache.java * * Created on 21 April 2006, 16:47 * * To change this template, choose Tools | Template Manager * and open the template in the editor. */package shoogle.services;/** * * @author gerard ...
I am wondering if the JVMTI can give me all the stack backtrace of all the Java method (user-level) even the method is jitted?Thanks,Neo
Hi all,I would like to create a specific HTML javadoc output for a given source code tree. Each class or method to be displayed is tagged with a specific (proprietary) tag, and I would like to create a Javadoc HTML tree with ONLY these classes and methods. The other ones should not be available ...
507 byte By
_edoA_a at 2007-10-3 8:58:39
Hi,this is my problem.I have an EAR which is deployed on an App-Server. This EAR have som jars. Now I call a Bean which is in one of this jar and in the bean i instantiate a POJO with new, wherby the POJO-class is in the sam jar as the bean is.On the code line where i instantiate the POJO I get ...
doc does not discuss shorts...
Hi everybody.I m new 2 this forum. I am a facing a problem while I am trying to connect my Java Application with SQL Server 2000 installed in my system. I made a JSP in which I wrote the same code as the following codes to connect with SQL Server 2000 database and it is running successfully . ...
2199 byte By
bmzra at 2007-10-3 9:20:29
With the following code:/** * TestActor is a console class that is used to test the Actor class. * * The initial version of TestActor instantiates an instance of Actor using * the 'four parameter constructor' and then determines the Title of the * actor's latest film. * * It is envisaged ...
This is the code i got off a book but it seems like it's not working. I got an error which says 'java.lang.NoSuchMethod: main' Help pls...import java.io.*;import java.util.*;class PostfixInterpreter {private String postfixString, outputString;/*-*/private boolean isOperator(char c) {return ...
HiI am trying to create a memory profiler, and one feature that I would like it to have is when you request a heap dump, it will be able to give you a generation count for each type of class. By the generation count, I mean the number of different ages of all objects of that class. Do you have ...
Hi thereI am trying to run the heapTracker example that is in the demo/jvmti directory, and I am having problems with it. When I try to run it with what it says in the readme file (java -Xbootclasspath/a:heapTracker.jar), I get the following error message:ERROR: JNI: Cannot find heapTracker ...
Have few set of APIs (methods ) and have javadoc comments included for all the methods.Requirement is to generate the javadoc for few methods among the whole set.So how to get those methods alone hidden in the javadoc generation?Used ( // ) and commented out the javadoc comments, but still the ...
340 byte By
brad13a at 2007-10-3 9:51:17
import TurtleGraphics.StandardPen;public class test {public static void main(String args[]) {Standard pen=new StandardPen();pen.up();pen.move(25);pen.turn(90); pen.move(25);pen.down();}}IT SAYS THE FOLLOWING:package TurtleGraphic does not ...
Hi all,i am compiling a java program in windows using JDK 1.5 and i am copying this file to MAC os (Panther). In Mac i am running this class file using JDK 1.4.i am getting the following exception,Exception in thread "main" java.lang.UnsupportedClassversion error.This is understandable, but is ...
hi ,I implement the code to update the data using webservices in java.but values are not stored in the database because i got an error like javax.persistence.TransactionRequiredExceptionif any idea send the reply as early as possiblemy email id ...
3813 byte By
archnaa at 2007-10-3 10:02:45
Hi,I am using a Struts application. I get the following error while clicking a button in a JSP page. The mapping has been provided in the struts config.xml file. What could be the possible cause? java.lang.NullPointerExceptionat ...
226 byte By
Nabila at 2007-10-3 10:10:51
i'm a beginner ,i want my eclipse to show the api's documentation in a small window whenever i type a class namethis option is available by default in NetBeans , but i don't know how to make it work in eclipse
1177 byte By
Daleusa at 2007-10-3 10:15:30
What should i do, when this replies as my outputHere is my code:This is the bicycle classpackage bicycle;class Bicycle {int cadence=0;int speed=0;int gear=1; void changeCadence(int newValue){cadence= newValue; } void changeGear(int newValue){gear= newValue; } void speedUp(int increment){speed = ...
1560 byte By
kp_a at 2007-10-3 10:19:44
Hi Guys,Is there a centralized way to catch unexpected Exceptions in Java? Here's an example: public static void main(String[] args) {try{new Thread(){public void run(){ String s = null; //NullPointerException is thrown here s.indexOf(12);}}.start();}catch (Exception ...
My application is working fine for Decompressing file which file has already compressed using winzip. But if the zipped(compressed) file size is 2GB, it is giving an IO exception. I came to know that Truezip will work fine for upto 4GB Compressed file. Can you anyone suggest me how I have to ...
12768 byte By
jboyensa at 2007-10-3 10:33:18
We've been getting this error for a long time now and we have no idea how to fix it, debug it, or avoid it.Any help or ideas that anyone could give would be great.Thanks in advance## An unexpected error has been detected by HotSpot Virtual Machine:## EXCEPTION_ACCESS_VIOLATION (0xc0000005) at ...
Hello.I'd need a profiler for my Swing application. I've tried a few but none of them seemed to be what I need. So I'd greatly appreciate if you could point me to a free profiler that meets the following criteria:1) Tracks the amount of time spent in different methods (and the methods they ...
663 byte By
EmboMana at 2007-10-3 10:43:07
This question was posted in another forum. Does anyone know the answer?See http://forum.java.sun.com/thread.jspa?threadID=653363> I have a package that has a number of important> sub-packages but which is otherwise empty. I want to> write some summary documentation which I want to> ...
I am having a problem with opening up a second window when clicking on a link. At first I thought this was an IE problem but I noticed that when I click on a link on a page (For example: I have an email and there is a link to open a website, or when at Pogo I click on a game to play and the ...
Hi,In our application We need to catch the Runtime Exceptions. that are generated in the application.i have an idea of making a base exception class which extends the exceptionand in that class making a Handler method and catching all the exceptions within this handler and displaying the ...
I recommended use of javadoc for documenting code in a new project; then heard the whole system will be constructed in a variety of languages, including C++ and possibly some C# (and Java ... I wrote as though that was assumed).So now I'm asked to find a tool that produces javadoc results ...
We have been using the I10n doclet to help with translations. The doclet extracts the text of comments from the source files into another file hierachy. These text files can then be translated into foreign languages. The doclet is used again with javadoc to build the foreign language version of ...
I am trying to make a photo calendar on yahoo.com. this is the error im getting. what does it mean and how do i fix it?
Hi,We have two JVMs running one from Weblogic, another for our application. To avoid OOM error, we have increased the maxpermsize as 128m for weblogic but not for application jvm. But still, the problem persists. Could anyone help on this issue please?
354 byte By
vinna at 2007-10-3 11:30:11
I want to get the fully qualified name of the class at runtime. The only piece of information which I have is the class name.I want to create a runtime instance of a class with the class name [Just the class name].Is there is any way to achieve this using ClassLoader?Could anyone suggest me an ...
176 byte By
gvmania at 2007-10-3 11:37:31
Hi Friends,I want to create a struts application in WSAD v5.1.2, so for that what are all the steps i need to follw from the scratch?Can u help me.?
I am using Eclipse 3.2.1 and Java 1.5. All of my links to core API seem to work except those to IllegalArgumentException.The Ant script that Eclipse builds contains:<link href=" http://java.sun.com/j2se/1.5.0/docs/api/"/>The source code doc comment line:* @throws {@link ...
388 byte By
b_tcha at 2007-10-3 11:43:09
What's the recommended way to do this? Currently, I call GetLocalVariableTable(), look for 'this', call GetLocalObject() on it to get the jobject, then use JNI to get the non-static values. This appears to work, except that after a few iterations there is a crash (windows) during garbage ...
Hi I want to run a simple shell command "dir" on cygwin thru java class. My code is as follows :-public class CygJava {public static void main (String args[]){File workDir = new File("c:/cygwin/bin");try {Runtime systemShell = Runtime.getRuntime();Process shellOutput = systemShell.exec("dir", ...
This is Chris from Intuit (Makers of QuickBooks, TurboTax, and Quicken). I was hoping somone might be able to point me to a site, an association, or any type of resource to look for Tech Writers who use Javadoc. I'm not sure if this forum is the right place, but at least maybe someone might be ...
685 byte By
cvinodka at 2007-10-3 11:56:30
Hi all,I am getting these two problems while inserting the data into the databse.1.java.sql.SQLException: [Microsoft][ODBC Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_ENV failed2.java.sql.SQLException: [Microsoft][ODBC driver for Oracle][Oracle]ORA-00020: maximum number of processes ...
464 byte By
stola at 2007-10-3 11:59:45
hi,I'm trying to implement my own custom made taglets for use with javadoc. However, I tried to compile a simple example, but the compiler can't seem to find the Taglet interface. I browsed the libraries (com.sun.tools.* etc.) and it's not there indeed. I'm using java 1.5.It seems the api ...
Hi,I would like to be able to display JavaDoc comments (including tags, parameters etc) as GUI tooltips. javadoc seems doesn't have this ability other than each and everytime that I run this program, save the result to a file and load it back to memory. Unfortunately, speed is quite important. ...
18882 byte By
Murkosa at 2007-11-26 12:29:42
Hello,I am running BEA Weblogic 8.1 with some apps on it. Every once and a while the jvm crashes. It seems to be crashing from different places and I'm trying to figure out the pattern. Any help would appreciated. Below is the top portion of 3 different dumps. I haven't included anything ...
2582 byte By
hudoqa at 2007-11-26 12:35:17
Hi' i'm new for javadoc tools. i think somebody want to help me. Why i can't generate javadoc from this code :import java.io.*;public class maintest {public maintest(){try{File file = new File("C:/source/Console.java");System.out.println(file.exists());System.exit(0);}catch(Exception ...
Why Overridden method of derived class do not throw Broder exception than the method that is in base class
2241 byte By
rsahaya at 2007-11-26 12:54:09
Hi,I have created a java web service client that collects data from the web service and saves into a local database. The client is supposed to run constantly and keep picking up recently posted data from the web service.However, I have noticed that it stops due to an error after random ...
When writing classes, I generally start with defining the private fields with Javadoc comments, then will use Eclipse to generate the public getters and setters. I like to Javadoc each field, but that Javadoc then needs to be repeated two more times (get and set), so I end up with needing to ...
hi,i am a beginner..i am using eclipse and also sun java studio enterprise..i want to develop javadoc. as i am new i dont know how to generate...i know , in eclipse when we go to project and click on generate javadoc , a wizard pops up,but i dont know how exaclty a javadoc will look and how ...
403 byte By
genadya at 2007-11-26 13:35:09
Hi,Is anybody aware of any restriction that prevents me from adding a new fieldto java.lang.Object? I tried both using JVMTI or adding the transformed class to rt.jar and all i get is thisjava.lang.IllegalStateExceptionat java.lang.Throwable.initCause(Throwable.java:320)at ...
218 byte By
JF_La at 2007-11-26 13:36:43
I put a @version %I%, %G% in my .java file and after generating the html files (using eclipse "Generate javadoc" function) I don't get a version number and a date but the %I%, %G% string.Thanks for help.
I have been working on a crash for two months now and am preparing a bare-bones test case for SUN - I have pretty much ruled out any issue in my native code.Before I do that, I am wondering if anyone has seen this problem before; in brief, I define a couple of breakpoints and stress-test with a ...
## An unexpected error has been detected by HotSpot Virtual Machine:## EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c9110f3, pid=320, tid=3288## Java VM: Java HotSpot(TM) Client VM (1.5.0_10-b03 mixed mode, sharing)# Problematic frame:# C [ntdll.dll+0x10f3]# T H R E A D Current thread ...