cheked exceptions

192 byte By surendra.medaa at 2007-10-3 8:45:36
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

IterateOverReachableObjects and soft/weak/phantom references

387 byte By lldaedaluslla at 2007-10-3 8:45:52
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 ...

heap profiling using FollowReference

631 byte By toby.kima at 2007-10-3 8:46:45
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 ...

Exception in thread "main" java.lang.NoClassDefFoundError: shoogle/services

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

Stack trace

157 byte By neoworlda at 2007-10-3 8:52:40
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

how to filter HTML javadoc output ?

778 byte By pemeriaua at 2007-10-3 8:54:00
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 ...

NoClassDefFoundError

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

GetLocalInt - can it get the value of a short too?

37 byte By kotsikonasa at 2007-10-3 8:58:40
doc does not discuss shorts...

Problem in connecting with SQL Server 2000

1330 byte By invincibleBoona at 2007-10-3 9:14:41
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 . ...

Cannot find symbol error

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

java.lang.NoSuchMethod: main - Help pls

3456 byte By gracenaleca at 2007-10-3 9:35:44
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 ...

Generation count for classes in heap

757 byte By billynillya at 2007-10-3 9:37:10
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 ...

Running the heapTracker example

465 byte By SajidTendulkara at 2007-10-3 9:38:55
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 ...

how to hide few method names to be hidden in the javadoc

575 byte By cbalarama at 2007-10-3 9:41:48
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 ...

package TurtleGraphics does not exist.

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

How to run a class file in MAC os, compiled in XP.

507 byte By vinoth_da at 2007-10-3 9:55:19
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 ...

about webservices

323 byte By bondada.radhikaa at 2007-10-3 10:01:10
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 ...

500 Internal Server Error - Null Pointer Exception

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

eclipse api doc.

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

java.lang.NoSuchMethodError: main

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

Centralized way of catching unexpected Exceptions in Java?

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

Decompressing a zipped file

390 byte By karthikr_2000a at 2007-10-3 10:26:10
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 ...

EXCEPTION ACCESS VIOLATION in jsoundds.dll on Windows XP (Home | Pro)

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

Please recommend a free profiler

834 byte By Kryigerofa at 2007-10-3 10:33:32
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 ...

(Redirected) Generate javadoc for empty package?

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

Problems with opening second window

571 byte By royalpurplea at 2007-10-3 10:49:21
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 ...

How to catch the Runtime exceptions in the customized way.............

423 byte By Ajay_reddya at 2007-10-3 10:58:43
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 ...

javadoc - for other languages

531 byte By RogerFGay1a at 2007-10-3 11:03:06
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 ...

l10n doclet and JDK 1.5 Javadoc

869 byte By nihonmsca at 2007-10-3 11:12:36
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 ...

java.lang.NullPointerException

126 byte By molly5673a at 2007-10-3 11:16:57
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?

Out of Memory error in Production

266 byte By babloo341a at 2007-10-3 11:17:58
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?

How to get fully qualified name for a class with just the class name

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

Steps to write a struts program in WSADv5.1.2?

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

Why IllegalArgumentException not linked to java.sun.com?

864 byte By com.stevebrechera at 2007-10-3 11:41:44
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 ...

How to get the class fields' values

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

IOException: CreateProcess: dir error=2

1134 byte By clueless@worka at 2007-10-3 11:54:38
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", ...

Intuit hoping to get referrals of great tech writers w/ Javadocs experience

411 byte By Intuit-hiringa at 2007-10-3 11:55:14
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 ...

errors while inserting data into the databse

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

can't find 'taglet' interface

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

Extracting JavaDoc Comment Fast?

352 byte By coconut99_99a at 2007-10-3 11:59:53
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. ...

EXCEPTION_ACCESS_VIOLATION

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

Learn how to generate javadoc

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 do not throw Broder exception

113 byte By Ravisrinivasa at 2007-11-26 12:42:45
Why Overridden method of derived class do not throw Broder exception than the method that is in base class

AxisFault faultString: (403)Forbidden

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

No more redundant Javadoc

800 byte By whitforda at 2007-11-26 13:18:48
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 ...

java doc help

423 byte By aravindraamana at 2007-11-26 13:31:14
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 ...

Adding fields to java.lang.Object

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

Problem with @version tag

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.

GetLocalInt et al crash during garbage collection under stress conditions

6013 byte By sanokistokaa at 2007-11-26 13:42:30
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 ...

Error Log deteted by Hotspot Virtual Machine file "hs_err_pid320.log"

15172 byte By cat_sucker_mana at 2007-11-26 13:43:55
## 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 ...