Could not retrieve connection info from torque connection pool

1269 byte By anumishra1a at 2007-10-2 12:35:43
Hi, I am using Apache Torque for making connection with my Oracle 9i server.My Torque.properties file configuration is as ...

papers imageable width is too small

313 byte By ecnzla at 2007-10-2 12:36:50
hiI m sending a value to the zebra printer.but it gives me Papers imageable width is too small printer exception.when I try it with normal printer and A4 page it runs correct.how can I fix this problem?I am not good at java.if you could write some codes to me it would be betterthanks for ...

java.lang.NumberFormatException: For input string: ""

1330 byte By srikanta at 2007-10-2 12:41:22
Hi. I am new to this forum.I have not so much idea in java swing.I am doing an application in java swing.I used a JTextField.In side a loop I have written as belowif(!(txt_pageNo.getText() == "")){System.out.println("coming in textfield..... 998");if((Integer.parseInt(txt_pageNo.getText()) > ...

'.class' expected Error

525 byte By Sheebasja at 2007-10-2 12:41:25
I get this error when i compile tht following codeError:'.class' expected int j = 0; ^not a statement int j = 0; ^Code: public static void main(String[] args) {int counter = 0;l1:for (int i=0; i<10; i++) {l2:int j = 0;while (j++ < 10) {if (j > i) break l2;if (j == i) ...

javadoc produces strange error

206 byte By PWils05a at 2007-10-2 12:41:47
When I run javadoc I get this error...>javadoc C:\ GUIManager.javaException in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javadoc/Mainanyone any ideas?

2 errors in an applet, & outcome is "Welcome To Java!!'

8625 byte By Shelnutt2a at 2007-10-2 12:46:11
I tried to write this so I could use an applet and it be accesable on the web instead of just the text box I had earlier. This is only my second writing of a program and first with an applet attempt. Well I did something wrong some where. Because all I get is "Welcome to Java!" when I exicute ...

Wrong catch block is reach

2106 byte By TimTheEnchantora at 2007-10-2 12:48:06
Hi,I encounter a strange behaviour in exception handling.My web app can generate pdf files, and download them. If client closes its browser window, a ClientAbortException is thrown (which is expected behaviour, I guess.)However, I can't catch it correctly. Here is my code:try {// code for ...

Need help with an extremely deformed code

448653 byte By thesmileyknighta at 2007-10-2 12:49:43
this code is extremely deformed, I know im a newbie when it comes to java but i will post the code so that you guys can tell me what these errors mean.. First i will post the code, then the errorsimport java.applet.Applet;import java.applet.AppletContext;import java.awt.*;import ...

unreachable statement

2329 byte By Nutkenza at 2007-10-2 12:50:51
Hi,Can anyone find the problem? I've been scratching my head for hours wondering why the return statement would be unreachable... I figured someone with more experience would spot this in a couple of seconds.public static Teller newTeller(Teller t1, Teller t2) {int waarde, limiet, ...

Kill process tree, please help.

790 byte By Leroya at 2007-10-2 12:51:47
I have a java program which is used to execute a user defined command. This comand can be run on Linux, Windows & Unix.If I execute a .bat file, then issue a "destroy" on it, it kills the batch script that was running, but leaves the children running.I need to find a "generic" way in which ...

Need debugging help.

2835 byte By thesmileyknighta at 2007-10-2 12:51:59
I got slammed for posting my whole code earlier. So in that case, i will post just 2 errors, and the 2 parts of the code that the errors point to. I would post the whole code but (1. I dont want to get slammed again 2. Its very long (12.3k lines) 3. All of the errors pretty much say illegal ...

# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d7645b4, pid=1404, tid

14380 byte By buddylee0068a at 2007-10-2 12:53:52
An unexpected error has been detected by HotSpot Virtual Machine:## EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d7645b4, pid=1404, tid=1836## Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode, sharing)# Problematic frame:# V [jvm.dll+0xf45b4]# T H R E A D Current thread ...

NoSuchMethodError Exception

1390 byte By zimbaa at 2007-10-2 12:54:46
I keep getting a NoSuchMethodError Exception for the code shown below.import java.util.*;import java.lang.*;import java.io.*; public class test{private String readit(){// Set the default return value - a blank stringString input = "";// Create an input stream reader to read from Standard Input ...

Javadoc fails due to long command (I think)

1295 byte By answer_pleasea at 2007-10-2 12:57:06
First off, I'm a javadoc neophyte. I'm trying to get javadoc working via an Ant script. Our project has many, many, many classes so that when I try to do something like this:<javadoc public="true" windowtitle="testJavaDoc" ...

packageset not working

4435 byte By answer_pleasea at 2007-10-2 12:57:38
Ok, in trying to get around the long command problem, I tried using the packageset Ant tag. Here's how I used it:<packageset dir="${root}/Application/projectA/JavaSource/com/ibm/projectA/app"><include name="**"/><include name="actions/**"/><include ...

Illegal Start of type.

368 byte By thesmileyknighta at 2007-10-2 12:58:15
I get the famous illegal start of type error no matter what i do to this line right here.. Can anyone help me with it?{ } if((i & 0x100)! = 0);//Illegal start of type occurs on this ...

Class or interface expected.

1268 byte By thesmileyknighta at 2007-10-2 12:58:17
i get the following error when trying to compile my java code.Illegal start of class}if ((i & 0x200) != 0) {int i_753_ = class30_sub2_sub2.method408();int i_754_ = class30_sub2_sub2.method428(2);(/*TYPE_ERROR*/ local).method447(-35698, i_754_, i_753_,anInt1161);(/*TYPE_ERROR*/ ...

Need professional help.

892 byte By thesmileyknighta at 2007-10-2 12:59:09
}sendFrame126(color + "" + Item.smithing_frame[Type2][i][3] + ""+ bar, Item.smithing_frame[Type2][i][4]);sendFrame126(color2 + "" + GetItemName(Item.smithing_frame[Type2][i][0]).replace(name, ""), Item.smithing_frame[Type2][i][5]);}C:\j2sdk1.4.2_10\bin>javac client.javaclient.java:9569: ...

java.security.AccessControlException

1277 byte By h3lladvocatea at 2007-10-2 12:59:24
Ok, so when i tried to read a file in using an applet, i got this error. java,security.AccessControlException: access denied<java.io.FilePermissions C:\\a.txt read> I called the method that reads the file from the init method and as soon as i tried to create a file reader or see if the ...

exclude not excluding

711 byte By answer_pleasea at 2007-10-2 13:04:45
I'm trying to exclude certain source files from having javadoc run against them. A common naming convention of those I want to exclude are that the class begins with an underscore (a "_"). Also, those that start with the capital letters "EJS". Here's how I have tried excluding them: ...

Exception in thread "main" java.lang.NoClassDefFoundError

189 byte By MORPG_programmera at 2007-10-2 13:04:46
hello, when i try to write a program, and run it(after compiling), it gives me this error.do i need to set my "classpath" or something?thank you,MORPG_programmer

constant string too long

310 byte By pankajatncsta at 2007-10-2 13:09:05
Is there a limitation on the length of a java.lang.String object ? I could not find any documentation related to this, but when I specify a very long String in my program i get the error :'constant string too long'I need to use very long strings .. is there any workaround ...

Getting Started with Application PE 8 on a Windows box

855 byte By Steve_Ka at 2007-10-2 13:11:14
Hello,I just donwloaded and loaded Application PE 8 on a Windows box.The tutorial seems nice, as long as you want to just use a "Sample".I want to create my own class, call it ThingAMaBobbette, compile it into an application and run it! Simple enough, no?I am odviously new to Java, but I need ...

two places at once? Someone help.

391 byte By thesmileyknighta at 2007-10-2 13:12:39
I could be wrong, but when compiling i beleive when javac is compiling the .java file, it is also looking for the class files associated with it. But there is a problem, if i am right, it is pointing to two files, different in code, but with the same name. How can i possibly have these two in ...

java.lang.UnsupportedClassVersionError

5354 byte By liaodongyana at 2007-10-2 13:14:32
Everytime when I started SUN Application Server after starting the pointbase Database, I would face the following error message from server.log ...

Using the Javadoc API without calling javadoc

864 byte By Emanuela at 2007-10-2 13:15:55
Hi,I am developing an application that needs to show to the user the methods and arguments of a Class. I saw that the Javadoc API has a set of methods that does that. However, I don't want to show to the user the HTML result; I want to use the Javadoc API to get the methods, so I will format ...

The filename, directory name, or volume label syntax is incorrect

1432 byte By eoxa at 2007-10-2 13:20:13
Hi,im trying to create a (text)file with a user-specified content. The user input (filename and content) is saved in a string variable. But I'm getting the following error after the input of the variables:java.io.IOException: The filename, directory name, or volume label syntax is ...

Avoiding Null Pointer Exceptions.

1383 byte By MackTrucka at 2007-10-2 13:23:24
Hi:This might sound like a newbie question.In a funtion that returns an object of another class, if the required parameters are all rights (i.e no 'problems' ) the funtion works well. But in case, I have to return something (but not 'throwable' an exception) I return a 'null'. And this ...

Weird int situation

1331 byte By timjamesa at 2007-10-2 13:23:37
I'm new to this forum and AP java the extent of my java knowledge, so forgive me if this is something common in java. I'm working on an project for school in which I am taking an existing Chess program, taking out most of the pieces and empty squares, and then trying to make a game tree for ...

New to Javadoc

5281 byte By Dwooda at 2007-10-2 13:24:26
I have gone through the tutorial and am a bit confused on how to comment my program. I can comment my main method but am not sure what to do to comment the other mehods and my variables. Can anyone help me?import java.util.StringTokenizer;import java.util.regex.Matcher;/** * * StringQuiz ...

javax.servlet.ServletException

2725 byte By fnazeerbea at 2007-10-2 13:27:39
hi ,in a jsp file am using <jsp:useBean> tag to call bean<jsp:useBean id="ShoppingCart" scope="page" class="MyClass.ShoppingCart" /><jsp:setProperty name="ShoppingCart" property="*" /> that gives an error belowtype Exception reportmessage description The server encountered an ...

help!!!

10230 byte By javaMana at 2007-10-2 13:37:58
hey, i was having a problem with my code. Everything compiles correctly, but my instance variable methods dont run, it just skips right over them as if they arent they. The other parts of my switch work, just not the methods from my instance variable "ad". Any help would be greatly appreciated. ...

SQLServer 2000 Driver for JDBC]Error establishing socket

268 byte By buela_b@yahoo.co.ina at 2007-10-2 13:38:11
hi,I have also got the same problem which u had faced. i.e Socket establising socket error... I have tried out your solution.. i.e i have already enabled TCP/IP connction on SQL derver. but still i get the same problem.. please help me out.regards

javadoc nightmare in Tiger 1.5

843 byte By Felipe.Gauchoa at 2007-10-2 13:41:40
Dear friends,I'm having problems trying to generate a simple javadoc under eclipse + Java 1.5.javadoc: warning - Multiple sources of package comments found for package "net.java.dev.cejug.classifieds.filter"...Constructing Javadoc information...Standard Doclet version ...

trying to use Ant with javadoc 5.0

10185 byte By Felipe.Gauchoa at 2007-10-2 13:41:50
I'm trying without succes to generate the javadoc of my project using Ant + Java 1.5:<target name="javadoc" depends="compile"><javadoc ...

"find_vma failed" warning

490 byte By ppatricka at 2007-10-2 13:46:10
Hi,I've set up a root jail environment with only Java facilities on a linux system.In order to complete it, I copied the libc libraries and the jdk.When I test if Java works, here's what I get:Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location - find_vma ...

Exception in thread "main" java.lang.UnsupportedClassVersionError:

2554 byte By mr47a at 2007-10-2 13:46:30
Recently I've installed Oracle 9i application server into my machine. I've installedjavase 5 update 3 before. Now the problem arise after I've installed Oracle 9i.I've set the environment path variable accordingly. Now the source files compiles accordingly with my javase 5 javac command. ...

progresql connect problem

252 byte By shadowa at 2007-10-2 13:47:45
i make a small program to connect to my progresql server,and it work. when i try to make applet, i can't conect to server, "Something unusual has occured to cause driver fail... Exception : java.security.accessControlException: access denied..?

core dumps: analysing, and security

1442 byte By bbatmana at 2007-10-2 13:49:51
I have occaisionally seen some obscure JVM crashes on my machine.See, for example, my latest bug report: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6386633I have configured the JVM on my windows machine to generate core dump files in cases of crashes. In particular, I use the command ...

Disabling toolbars of a PDF file

307 byte By neeraj_lbsimds01a at 2007-10-2 13:51:03
I am developing a web application on JSP.There are option to download policies that are in pdf but now problem is client don't want to allow user to download.He want to only see that policies i.e. no save option, no copy option, no print option.I hope you will solve my ...

java.lang.OutOfMemoryError: Java heap space

364 byte By Shishir_Shaha at 2007-10-2 13:56:15
I am getting this error when I am trying to parse an xml file which is about 1.2 gb. So i was going through the forums and checked on how to solve the error, and so someone posted a solution to include the following vm arguments" -Xms512M -Xmx1024M" and I still get the error?Can some help me ...

Help please: EXCEPTION_ACCESS_VIOLATION

19284 byte By javanogoa at 2007-10-2 13:57:06
My Java currency trading platorm (Gain Capital) keeps getting knocked offline with an error message, often during a trade. Happens on 2 different computers. What follows is the error message on my main computer. Not a techie but any help on a place to start would be greatly appreciated. Have ...

\n Doesnt work in notepad

514 byte By @Gibi@a at 2007-10-2 13:58:35
I have a problem. I need to write a text file, which I did. However, in the file I also need the carriage returns / new line feeds. So, when I write the string, I include "\n". When I open it in wordpad or Microsoft Word (I have windows XP and a PC), it works fine. Then, when I open it in ...

runescape

1354 byte By propanea at 2007-10-2 14:01:26
runescape is a java powered game and after whichever detail i click to play it goes to a screen that says the following:ERRORThe requested URL could not be retrievedWhile trying to process the request:GET /serverlist.ws?lores.x=422&lores.y=251&plugin=0 HTTP/1.1Host: ...

Exception in thread

471 byte By lyyhhha at 2007-10-2 14:07:15
Hi, i have a program called Hello.javaafter that i try to compile with the code of:c:\ Javac Hello.javait's fine.but when i try run the program with code:c:\java Helloit happened this wayException in thread "main" java.lang.NoClassDefFoundError: HelloAnd i try c:\java -cp . Hellothen it's ...

Logic Problem

11013 byte By cgarnona at 2007-10-2 14:16:43
import java.util.*;public class areas2Calculation{//Generic method to calculate area of the shapes square, rectangle, triangle and circlepublic static double generic_area(double length, double height, double base_length, double radius, double PI, char shape){PI = ...

JVA0122 Error

350 byte By suketu9a at 2007-10-2 14:16:55
I am getting following java error when running a job ." Java program completed with exti code 1Function Check. JVA0122 unmonitored by CS_ASSIGN at statement 1000, instruction X'0016'.JVA0122 recieved by CS_ASSIGN at 1000. (C D I R)."Does anyone know what might be causing this error and how to ...

error on jsp ..in j2ee while creating webservice using sun server

5951 byte By itsmejaya at 2007-10-2 14:17:27
hey i am a new commer to j2ee platform ..i am developing a web service to encryp data...i have sucessfully deployed the server and the client ...when i run the client the jsp page(encrypt.jsp) gets loaded... but when i pass the parameter(data to be encrypted) and click submit which takes me to ...

Another Recursion...

3046 byte By HippieJoea at 2007-10-2 14:18:27
I am trying to write a small app that will recursivly add all files and files in sub directories to a ArrayList. The code I am using is more or less a cut and paste taken from this post: http://forum.java.sun.com/thread.jspa?threadID=674245&messageID=3938703I declare all my variables ...

( or [ expected error message

1182 byte By tw@@niea at 2007-10-2 14:23:11
I have constructed a simple class and can't understand why I get an erro message : '( ' or '[' expected error message in the constructor.This is part of my code: public static void main(String [] args)throws java.lang.Exception{Operator operator = new Operator();}public Operator(){ ...