Yet another nullPointerException problem

14332 byte By bsandliera at 2007-9-29 11:23:16
Well, I've searched the forum for nullPointerException posts and nothing appeared to be quite like my problem. I am relatively new to Java and have tried everything that I can think of to determine the cause of the exception.I have an applet that opens a socket connection to a C server app and ...

With package.html, it hangs

588 byte By milindta at 2007-9-29 11:30:48
Hi,I'm using javadoc to create doc for a list of packages. When I use pacakge.html (for package spec), two things happen:1. At one class (for email app) tool erros out saying variable of type InternetAddress cannot be resolved. (I have compiled the class successfully, though).2. After this, ...

Option -subpackages and performance issues

1570 byte By Taichea at 2007-9-29 11:35:00
Hi there !In order to generate the Javadoc for the whole product our team has developped, I made a little Java class that parses our source directories and then launches the Javadoc tool by using the com.sun.tools.javadoc.Main.execute() method from tools.jar. Now, let me introduce the way our ...

Error: void JApplet.main(String[]) not found

356 byte By metalnijntjea at 2007-9-29 11:35:56
I am making this program and when I want to make a standalone .exe file it gives the following error: Error: void JApplet.main(String[]) not foundI've tried to make a jar file, and that works, but the program itself doesnt work. I don't know what I should do and I hope someone recognises this ...

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

738 byte By xplicit734a at 2007-9-29 11:36:12
whats this mean and how do i fix it? i get this error everytime i try to run a program ive written:Exception in thread "main" java.lang.NoClassDefFoundError: ToddsGuessingGamePress any key to continue . . .it works good on any other computer ive tried to run it on but not this computer. Im ...

Programming practices, where should I put error message constants?

778 byte By fuzzimana at 2007-9-29 11:36:32
A question about good programming practices...My application will display various error messages to the user.I am doing this by creating a custom exception with the given message,so that the GUI can catch the exception and display a dialog.Where should these error message Strings be placed?- As ...

Manage memory in JavaVM (OutOfMemoryError)

554 byte By JeVaJea at 2007-9-29 11:36:49
Hello!!I have a problem, I'm retrieving a AudioInputStream from Data Base (MySQL), and when I play the first audio stream I not have problem, but when I play the second stream I have this error: java.lang.OutOfMemoryError.I'm finalizing object whit this instruction:public void ...

Error submitting environment variable containing spaces

1577 byte By geoffdha at 2007-9-29 11:44:09
Hello,I need some help passing an environment variable that contains spaces to the JVM when launched via the command lineI can successfully use the following and read its value in the java application:java -DMYVAR=value.cfg myClassHowever, when I tryjava -DMYVAR="value1.cfg, value2.cfg, ...

Incompatible types

357 byte By FuentesNorbertoa at 2007-9-29 11:50:21
Hi my problem is that I'm using a JTable and need to access a row that have a String value so it must be converted to numeric What I'm doing is this piece of code to convert it.What is wrong with it the tutorial says that is OK. Thanks for any help.String Sprice = ...

How to get the StackTrace for an Exception as a String..

153 byte By basudevagrawala at 2007-9-29 12:06:18
I need to get the Stack Trace for an Exception as a string and write the string into a log file. Can someone suggest a way out.. TIA

Referring to package.html

433 byte By BaliBellya at 2007-9-29 12:08:31
Hi All,I want to know how I can refer to a reference in a package.html file using the @link tag in the JavaDoc sections of oridinary classes within the same package.For example:{@line ?#MyReference My Reference}What should the "?" be in the above if MyReference is in the package's package.html ...

Use of classes in com.sun.tools.doclets

718 byte By steventrauta at 2007-9-29 12:12:15
Hello -- What is the best practice recommendation wrt using the classes in com.sun.tools.doclets -- particularly with the planned refactoring? I'm writing a doclet that doesn't subclass, say, the standard doclet. There are obviously several very useful classes in this package (ClassTree, ...

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

3653 byte By amoona82a at 2007-9-29 12:16:13
HI..I don't know y i get this error when i try to run this program which i got from a site:Exception in thread "main" java.lang.NoClassDefFoundError:imagedata/ImageInfoi have worked with alot of java programs and they all seem to work fine.note: i write my programs on textpad so i compile and ...

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

3653 byte By amoona82a at 2007-9-29 12:16:22
HI..I don't know y i get this error when i try to run this program which i got from a site:Exception in thread "main" java.lang.NoClassDefFoundError:imagedata/ImageInfoi have worked with alot of java programs and they all seem to work fine.note: i write my programs on textpad so i compile and ...

internal error2755.1624

480 byte By sumasa57a at 2007-9-29 12:20:47
HiI had java installed at one time , then had to uninstall due to conflict when installing my scanner, now when I go back to the download page to install the jave vm, i get the files downloaded but when the istaller comes up I get the error message... internal error ...

Serializing RootDoc

136 byte By moonlite5a at 2007-9-29 12:25:21
I am trying to write a doclet which creates a RootDoc and stores it to file. Is there a way I can serialize the rootdoc object ?

Using taglet with custom doclet

485 byte By steventrauta at 2007-9-29 12:29:53
Hello -- Is the toString() method of a taglet implementation available to doclets that aren't based on the standard doclet?I'm writing a doclet (not using the standard doclet), and have discovered that I'd like special handling for a few custom tags. It seems that while my taglet's register ...

Issue for GURU Threads and Exceptions

598 byte By stevouch05a at 2007-9-29 12:34:47
Hi Gurus ,I have a class sharing a PipedInpuStream with a thread The Main Class do something like : pipedOut = new PipedOutputStream(); pipedIn = new PipedInputStream(pipedOut); zipOut= new ZipOutputStream(pipedOut); m_pipedThread = new PipedThread(zipOut,folderPath,pipedIn,m_session); ...

java.util.zip.ZipException - why?

1164 byte By pureseva at 2007-9-29 12:43:02
Help me, pleaseSome jar files produces exceptions in moment of their opening, but their name and path are correct.//////////////////////////////////////////Code fragment:...printX("trying to open " + fileList[jj].getName() +"\n");fff = new File(fileList[jj].getName());printX("file ...

How to generate all the links of the java api methods

552 byte By Costantinosa at 2007-9-29 12:46:27
Hi all,I noticed from my docs that the JAVA API methods are not linked. They are just static text. How can i link all the java api methods to a root url examble: java.sun.com/j2se/docs/javax/JFrame#pack() java.sun.com/j2se/docs/javax/JFrame#setVisible() ...

Internal compiler error: java.lang.ArrayIndexOutOfBoundsException: 167.

133 byte By jonka589a at 2007-9-29 12:46:47
I'm getting this error message. Since I don't find any error i my code, I think it might be the VM. Any ideas?//Jonas

Internal compiler error: java.lang.ArrayIndexOutOfBoundsException: 167.

133 byte By jonka589a at 2007-9-29 12:46:48
I'm getting this error message. Since I don't find any error i my code, I think it might be the VM. Any ideas?//Jonas

java/lang/Float.floatTolntBits Has anyone got a clue what this means PLEAS

107 byte By firstlamba at 2007-9-29 12:47:39
I would appreciate any help on resolving this. I have no idea what it means or anything.Thanx

javadoc & jar

105 byte By kSamusa at 2007-9-29 12:49:02
Is anybody can say me how to generate javadoc from a jar file without extract it?Thank you!

malformed /uxxxx encoding Exception

865 byte By Xahraa at 2007-9-29 12:54:34
When i run a batch file which takes some jar file i get the following error!C:\opt\XtremWeb\v1r2-rc4.1\bin>xtremweb.worker.bat -f xwrcC:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\/XWAdministratorcache0 [main] INFO caltech238.xtremweb.worker.XWS - <**** XtremWeb Worker 1.2.4-head-200310010024 ...

import java.util Error

157 byte By DSM4Lifea at 2007-9-29 12:56:30
How come program wont accept import java.util ?I get cannot resole symbol ? i looked in up in my java book and its spelled right . what gives ?

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

617 byte By htieka at 2007-9-29 12:58:25
I use textpad and when I click on the hammer to compile the program it does it without any problems. But when I click on the hammer to run the program, it gives me this error:Exception in thread "main"java.lang.NoClassDefFoundError: (classname)I think that means the my classpath is wrong.Right ...

java.lang.OutOfMemoryError

2188 byte By UlaireSmileya at 2007-9-29 12:58:42
Hello, I'm trying to set up an IM service using the java.io and the java.net packages. Right now I'm trying to code a "server" which runs on an always-on computer and acts as a relay between the two computers communicating with each other. The server, after setting up a Socket, "listens" for ...

Multiple inheritance and Javadoc

1022 byte By Dave_Campbella at 2007-9-29 13:03:30
I have an interface that extends ten others. In some cases, the same method signature is present in several of the extended interfaces. When I look at the Javadoc for the extending interface, I see references to each of the ten extended interfaces (in the lists of methods inherited from). ...

Java and SNMP

195 byte By jkjyotia at 2007-9-29 13:06:13
Hi frens,I wanted to know if there is java api for SNMP.I dint find it in the java docsPls tell me if java supports any API for SNMP commands.Thanking U 'JYOTI

"javadoc: invalid flag: -d" when using "-doclet"

198 byte By MartinHilperta at 2007-9-29 13:19:24
When i change the options of javadoc to use a custom doclet (by adding -doclet and -docletpath) javadoc just throws an error saying:javadoc: invalid flag: -dIs this a known bug?

Doclet for business documentation

128 byte By MartinHilperta at 2007-9-29 13:19:52
is there a doclet for a kind of business documentation? perhaps a standard set of custom (business related) javadoc tags?

java.lang.OutOfmemory Exception on 2-CPU machine

572 byte By fmbrouwera at 2007-9-29 13:20:04
Hi All,I have a memory problem running an program, retrieving data from a database using jdbc, on an computer with 2 CPU's and 2GB of memory. Setting for JVM are -Xmx512M and -Xms512M (of course I have played around with these and other parameters). Memory increases rappidly (35-40MB every 10 ...

PackageDoc: how to add package Comments in Java code?

466 byte By MartinHilperta at 2007-9-29 13:20:25
There is a PackageDoc.commentText() that (should) return package comments. This would be great because i want to write package related comments. But where in the java code do i have to add this text? i tried adding javadoc over a apckage declaration:/** * Test package comment. */package ...

javadoc in ant build file(no source files and no packages specified)

1345 byte By vucca at 2007-9-29 13:23:24
Hi all, I have 3 packages: com.test.client, com.test.common, com.test.server. Each package contains many java source files(*.java). And I 'd like to write an ant script that has a target to javadoc all packages and source code files, but so far failed. Please help. (all other targets like ...

help me about this program

2527 byte By zhangbilla at 2007-9-29 13:25:04
I create a class that can generate javadoc, when you past file as parameter. but however, I encounter some problem.the code is below. when I try to run the code. it generate 4 files (html file). until I close DOS Prompt its generate rest files. <pre>import java.io.*;import ...

import TerminalIO.KeyboardReader Error

1102 byte By gamezaliena at 2007-9-29 13:31:48
Hi,I'm using JCreator Pro and get the following error when trying to compile my programs: --Configuration: j2sdk1.4.1_05 <Default>--C:\Program Files\Xinox Software\JCreator Pro\MyProjects\weekpaycalculator.java:1: ';' expectedimport TerminalIO.KeyboardReader^C:\Program Files\Xinox ...

Error Problem

637 byte By Bryan-DARKa at 2007-9-29 13:32:30
Im working on a simple .java file (very simple) and I keep getting this one error I just cant fix. Im shure its something little. Everytime I try to compile it it says public class SimpleScreenManager.java {^1 errorErrors compiling SimpleScreenManager.If you think you can help please e-mail me ...

Java Error 2

386 byte By Bryan-DARKa at 2007-9-29 13:33:42
I was getting annoyed because command prompt was telling me 'java' is not recognized as an internal or external command, operable program or batch file. So to check if it was something I had done I ran the simplest program you can the "HelloWorld" test. It gave me the same error. I have ...

OutOfMemoryError

1718 byte By prasanth_allama at 2007-9-29 13:41:09
Hi All,We have developed an RMI Based search engine, which provides the facility to search as per the categories, Boolean and phrase search, which is being implemented in the following way: - Books are divided into batches. Each batch has 50 books.In each Batch 37 files which are indexes i.e. a ...

class file contains wrong class:

956 byte By donaldsonallana at 2007-9-29 13:41:58
I am having a problem importing a class into my application. My application has a structure of packages but the class I am trying to import is not part of a package (and I don't have the source to put it into one!!). How do I import this class. I am trying to use the following code (which ...

Limitations of MIF Doclet, or FrameMaker 6?

2227 byte By Supersaus2001a at 2007-9-29 13:42:51
Hi I am having problems generating the following into FrameMaker, using MIFDoclet. This class currently contains 11 parameters and does not generate: 1) the method into the Member summary table, or 2) the method name under the 'Methods' heading. When I limit the maximum number of parameters ...

problems with inputstream read(byte[ ] b)

528 byte By pradnyasutea at 2007-9-29 13:45:37
hello everyone, i have a problem with the read(byte[] b) function of inputstream. I have a server and a client. The server sends in some string which the client has to read, but if the data sent is shorter than the eariler sent data the data that the client reads is a combination of the ...

DocCheck "NoSuchElementFound" error

2181 byte By lindashaffera at 2007-9-29 13:51:11
I'm running DocCheck 1.2b2 on jdk 1.4.2 on Windows, and am getting the following error:javadoc: In doclet class com.sun.tools.doclets.doccheck.DocCheck, method validOptions has thrown an exception java.lang.reflect.InvocationTargetExceptionjava.util.NoSuchElementExceptionat ...

Standard XSLT for Java(XML) Doclet

464 byte By stanioa at 2007-9-29 13:51:13
I've just found "Java Doclet" < http://wwws.sun.com/software/xml/developers/doclet> for generating XML documentation from Java source code files rather than generating HTML. It is just what I want because I can easily create customized HTML versions out of the XML using XSLT sheet.I've ...

Java Error - Can't access javascript links

1374 byte By rctxxxa at 2007-9-29 13:51:48
I am having difficult accessing any javascript links on the internet. The cursor will highlight the link and have a javascript message at the bottom of my page next to the interner explorer symbol, however when I click on the link I can't access it. Examples of messages include: "javascript:;" ...

cannot resolve symbol

616 byte By attack032259a at 2007-9-29 13:52:45
I'm a beginner in JAVA and I got this message trying to compile TestEmployee(see below). Employee class compiled OK. Any ideas?C:\java\chapter3\bin\TestEmployee.java:5: cannot resolve symbolsymbol : class Employeelocation: class TestEmployeeEmployee tester = new Employee ();public class ...

error 2755, please help!

241 byte By javkinga at 2007-9-29 13:52:48
Iv just downloaded SDK v1.4.2, and after i tried to install it, i got "internal error 2775. 1624 http://forum.java.sun.com/webapps/download/getfile/1.4.2_01-bo6/windows-i586/java 2 sdk, SE v1.4.2_01.msi"Please help

String.replaceAll doesn't work

1495 byte By Einheitlixa at 2007-9-29 13:52:59
Hi,I hope this is the correct forum to post about this problem. It's not a compiler error, it rather seems to be an interpreter or a logical error.Please consider this test program I wrote to clarify the problem.public class Test {public static void main( String args[]) {String someString = ...

error handling with file operation

1670 byte By bohlama at 2007-9-29 14:00:37
I'm new to programming and I'm a little confuse when I should handle the error right away and when I should throw it to the calling function.I thought in my code below it's good to throw the exception to the calling function. But, if exception occurred while my function below reading the ...