nullpointer exception

3097 byte By drake01a at 2007-10-2 0:20:51
Can anyone help? when I run the code below, I end up with a NullPointerException. I figured is because I am trying to do outputstream.write(cmdstring.getBytes()); on line 46.I need help figuring out why it gives me an exception. ThanksDrake01import java.util.*;import javax.comm.*;import ...

Column name not found

2957 byte By acetoleveragea at 2007-10-2 0:20:52
Please tell me how to resolve this exception ASAP. I have a cloumn by name text in the database, why doesnt it consider it?Unexpected Application Error Occurred.javax.servlet.jsp.JspException: columnName text not found in search results list at ...

nullpointer exception

3079 byte By drake01a at 2007-10-2 0:21:09
Can anyone help? when I run the code below, I end up with a NullPointerException. I figured is because I am trying to dooutputstream.write(cmdstring.getBytes()); on line 46.I need help figuring out why it gives me an exception. ThanksDrake01import java.util.*;import javax.comm.*;import ...

HotSpot Virtual Machine - EXCEPTION_ACCESS_VIOLATION (0xc0000005)

14425 byte By dalemboggs2a at 2007-10-2 0:21:34
About 3 times a day, all my browsers close, and this error mssg is then placed on my desktop. I have uninstalled Java 2 times, it seems I have no clue what I am doing. If anyone can provide me information (a fix, would be great) it would be greatly appriciated. Thanks.. Michael(as in log file ...

LOCAL CHURCH COMPUTER 'ON THE BLINK'PLEASE GIVE US ASSISTANCE

14454 byte By dalemboggs2a at 2007-10-2 0:21:41
OUR COMPUTER SYSTEM SEEMS TO HAVE A 'BUG' - ON A GIVEN DAY, THE COMPUTER SCREEN LOOSES OUR WORK, AND THEN I FIND THIS MESSAGE, DISPLAYED IN A WORDFILE, WITHIN AN ICON. HERE IS THE MESSAGE: PLEASE ASSIST WITH INFORMATION. THANK YOU MUCH.MRS. D. BOGGS,WANDO WOODS BAPTIST ...

Iam not able to run a simple batch file from within java

983 byte By sridhar_fundooa at 2007-10-2 0:21:52
This is how my code looks like.It does'nt give me any error but I dont see the output from batch file which is suposed to be a simple redirection of dir command...package mypackage1;import java.io.File;public class RunBatch { public RunBatch() {try{Runtime rt = Runtime.getRuntime();String cmd ...

reading from COM1

4816 byte By drake01a at 2007-10-2 0:22:05
Hello!I have been able to open the COM1 port and (i think ) write to it. However I don't quite understand how to receive data from the connected device (when it sends data). I have looked at the simpleread code, but don't understand some of its content. It had certain variables about sizes ...

reading from COM1

4830 byte By drake01a at 2007-10-2 0:22:06
Hello!I have been able to open the COM1 port and (i think ) write to it. However I don't quite understand how to receive data from the connected device (when it sends data). I have looked at the simpleread code, but don't understand some of its content. It had certain variables about sizes ...

reading from COM1

4831 byte By drake01a at 2007-10-2 0:22:07
Hello!I have been able to open the COM1 port and (i think ) write to it. However I don't quite understand how to receive data from the connected device (when it sends data). I have looked at the simpleread code, but don't understand some of its content. It had certain variables about sizes ...

Mozilla & IE shut down when running java pages.

14209 byte By Mwinaaaa at 2007-10-2 0:25:34
the browsers on the computer can't run java pages anymore for some strange reason and the following log turns up on the desktop.... help please..euforx@gmail.com## An unexpected error has been detected by HotSpot Virtual Machine:## EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d6c1f6c, ...

Java Error

56 byte By dmitchema at 2007-10-2 0:26:16
Getting "applet dominoactionbar notinited" error,

big java error

439 byte By binky291a at 2007-10-2 0:29:29
i have just reinstalled java...after it being corrupted, followed all instructions to the letter and guess what i have this lovely error java.lang.nullpointerexception.please does anyone know how to fix this? i have no idea ive spent hours trawling the net, removing java installing java ...

Inheritance problem

830 byte By Mr_Mixa at 2007-10-2 0:30:14
I am trying to learn inheritance but i can't seem to get it. Can someone please tell me why the following code doesn't work.Jim.java contains:abstract public class Jim{protected int number;public abstract int chat();}Joe.java contains:public class Joe extends Jim{public int chat(){number = ...

OutOfMemory Errors

981 byte By pjakhotiyaa at 2007-10-2 0:30:33
Hi All,The intention is to get rid of the cases, when OutOfMemoryError exception on Tomcat 5.0.28. The exception is thrown after some period of running (from several hours to days, depends on the load/usage model). We have several EJBs, created by servlets, which in turn called by the client. ...

How to complie a java game in J2SE? Pls help me!

398 byte By Helloma88a at 2007-10-2 0:33:23
I downloaded two files. One is j2sdk1.4.2_09, the other is j2me_wireless_toolkit-1_0_4_02. When I created a java file in test editor and wanted to complie it in J2sdk. A Error message is displayed " javax.microedition.midlet" does not exist. I found no microedition java package in it. How to ...

Compiling code using an older version of the java compiler

684 byte By tkrenzera at 2007-10-2 0:33:52
I'm trying to make some very simple applets. I thought I compiled them using the command prompt: javac -source 1.1 *.javaHowever now the same computer does not recognize 1.1 as a valid source. It does recognize 1.2 as a valid source but I need a version before 1.2 as I can view the applets ...

Error Message

267 byte By Helloma88a at 2007-10-2 0:38:47
HiI'm trying to compile a piece of code but the compiler gives me an error :package javax.microedition.midlet does not exist; import javax.microedition.midlet.*However, I have already downloaded j2me wireless toolkit-1_0_4_02 and jdk1.4.2

Error while running an Applet

1480 byte By ketchara at 2007-10-2 0:40:47
HiI have written an Applet which was working fine initiallly with JRE 1.4.Then I tried the same with JRE 5.0.It gives some error....Again when I tried with 1.4 it threw following error....Can anyone explain what is it all about.Thank you...java.lang.UnsupportedClassVersionError: ...

Compiling packages from command line

584 byte By TheChameleon84a at 2007-10-2 0:44:04
Hi. I'm new to Java. I have a custom class in a package and my main class is in the default unnamed package. Whenever I compile my main class, it doesn't recognize my class, although I've imported the package. After some poking around, I was able to figure out that I need to have the .java ...

Error when running program for no purpose

489 byte By Tyrant27a at 2007-10-2 0:45:10
Im making a program for my AP Computer Science in school and when i downloaded TxT pad at home and i installed the jdk-1_5_0_04-nb-4_1-win update, the same one we used at school it gives me a problem. Everything compiles fine and when i got to run the application is get the error: Exception in ...

Java Runtime Prob.

300 byte By vatsjaia at 2007-10-2 0:48:53
Respected all Java Gurusi am new prof. giving a hand to java. i wrote a very basic prog. it is successfull complied but when i run it i reciver a error sayingException in Java.lang.NoClassDefFound. Please help me to sort out this problem. i will be thankful. ...

<html:checkbox> disabling based on a condition

125 byte By acetoleveragea at 2007-10-2 0:54:18
does anyone know how to disable the <html:checkbox ? it should be disabled based on some conditionthanks>

Error in Program

6909 byte By gamecockguy28a at 2007-10-2 0:54:19
This program is one I am writing, not finished yet. I use bluej, and it has the little broken thing in the class box in the main screen. There are no syntactical errors, so it compiles fine. But this error thing is ANNOYING! Any help?import java.util.Random;//Import Random Number ...

Force use of deprecated API to fail compilation

319 byte By eerihela at 2007-10-2 0:58:10
Ok, short question that I hope you can help me with. Is it possible to force the compilation to fail if I a deprecated API is used. Why? Well, we are a large number of developers and sometimes people use a method or class that has been deprecated because they are either lazy or can't find the ...

Error (Unsupported major.minor version 49.0) in Servlet - Tomcat 4.1

6690 byte By Neon_Andersona at 2007-10-2 1:00:00
Hello,I have got below error when i have run web application with JSP,Servlet,beans:I have used Tomacat 4.1, 5.0 and 5.9.No change ?I am using j2sdk1.4.2_03 and j2re1.4.2_03.This is the complete project i want to run in my PC when i extract .war file and run on my PC it's generate below error ...

getColumn()

425 byte By acetoleveragea at 2007-10-2 1:00:39
HiI have 2 tables for eg: table a and table b with the same column name UOM...When i want to display my results on a jsp page using getColumn() then how can i differentiate between the two. I mean to get Table a column i wrote String a_var = getColumn("UOM");but then for table b how shud i get ...

Java Script Error plz help !!!!!!!!!!!!!!!!

361 byte By inferno-primea at 2007-10-2 1:00:49
HI IM having this java script error eveytime i go to a website i would like to either restore it and repair it somehow i need this fixed i try installing java dont work i dont want to use system restore right now its the default java script within windows i need fixed can someone plz tell me of ...

unreacheable statement error

2767 byte By Jlovea at 2007-10-2 1:00:59
I'm new to Java. honestly most of the time i have no idea what i'm doing. I'm suppose to do a prog. about dice throwing simulation. I'm getting the following errors that i do not understand:DiceSimulation232.java:59: unreachable statement DiceSimulation232 DiceSimulation232 = new ...

serial write

6789 byte By drake01a at 2007-10-2 1:07:46
Hi everyone I have this piece of code that i am using to open COM1, write, and read from it. Well the problem is I doubt if it actually writes to the port because when i run the program, it opens the port but there is no information to read at the port. I tested the port on hyperterminal and it ...

numberformatexception

498 byte By acetoleveragea at 2007-10-2 1:08:03
Error information: mg/mlStart server side stack trace:java.lang.NumberFormatException: mg/mlat java.lang.Integer.parseInt(Integer.java:409)at java.lang.Integer.parseInt(Integer.java:458)at ...

serial write

6754 byte By drake01a at 2007-10-2 1:08:07
Hi everyoneI have this piece of code that i am using to open COM1, write, and read from it.Well the problem is I doubt if it actually writes to the port because when i run the program, it opens the port but there is no information to read at the port. I tested the port on hyperterminal and it ...

nosuchelementexception

228 byte By acetoleveragea at 2007-10-2 1:08:31
Start server side stack trace:java.util.NoSuchElementExceptionat java.util.StringTokenizer.nextToken(StringTokenizer.java:230)how to resolve this?my code is:string soem = st.nextToken();

Compiling from command line

860 byte By majstera at 2007-10-2 1:10:16
Hello,I have allways used Jbuilder to compile and run programs but I would like to run from the command line. I have jdk1.5.0_04 and jre1.5.0_04 installed. Whenever I type java or javac at the command line, I get:Microsoft Windows XP [Version 5.1.2600](C) Copyright 1985-2001 Microsoft ...

speed up compile

380 byte By jan_techa at 2007-10-2 1:11:16
Hi there,I'm working with a big project that usually takes 45 min to compile which is a long time. I've noticed that the processor load most of the times is only at 50%. So it should be possible to speed this up, right? Does someone have some hints?thanks in advance,Janjava 1.4.2win xp3ghz ...

jsp error

733 byte By sandy_pria at 2007-10-2 1:18:20
helloI am compiling simple jsp page which contains a package and i am calling that package in jsp . While in that java file i am using jdbc connection with remote server that ia postgre server. While i am checkling that java code it works fine then i am copied that package to ...

Nullpointer exception.

7895 byte By BlackStara at 2007-10-2 1:18:33
Hi, I'm a student in Holland, and we just got java and we have to make a camera security system. We have got a CTP unit which is attached to the USB port, but uses a virtual comport (COM10). The CTP is programmed in Pbasic, and that works. We got a .java program for our security system, but it ...

List values to print on console

278 byte By acetoleveragea at 2007-10-2 1:20:21
how to print the values present in a List to output console?i mean system.out.println( ? );i want to know what values does a list has in order to debugeg: if i haveList pctList ;how system.out.println( what this shud be? );thanks

java.lang.OutOfMemoryError

953 byte By ketchara at 2007-10-2 1:22:15
HiI am writing an application which takes a stream and converts it into an image with some manipuation on it.( zooming out the image.)I have set the zooming to 90% initially.But it throws the following errorjava.lang.OutOfMemoryErrorI want to catch this Exception,reduce the zoom size and do the ...

Quirky?

730 byte By FateJHa at 2007-10-2 1:23:19
I'm kind of new to Java, but not to programming. This problem confuses me, not because I don't understand what's wrong but because the computer contradicts the obvious solution.I just installed JDK 5.0 that came with J2EE 1.4. A bit of advice from a number of people helped remind me how to ...

Java Won't Run

557 byte By SGraphixa at 2007-10-2 1:24:30
I cannot install Java at all on my PC. I knew my Java wasn't working, when I went to edit an EBay auction and none of the Java programs would work, so I had to put the auction in manually. I also cannot print from my AOL, play games, click on the delete link on Yahoo! email, and a few other ...

Java won't run / can't find file

557 byte By Urban_Spacemana at 2007-10-2 1:25:18
i'm new to using java so any help is usefullthe files are in the same directory, they are all named correctly. do i have to compile the java class file first or can i just point to it using a html as i am doing?this is the error message:load: class Scribble.class not ...

Exception: java.lang.NullPointerException

148 byte By mathiaslyloa at 2007-10-2 1:31:42
How do i fix this? It happends when I'm login in to my netbank account and it says I am about to download a certificate. Can anyone help me?

java.lang.ThreadDeath-rolling browser

9912 byte By Pluginatora at 2007-10-2 1:31:43
Hi all,Initially posted this in another forum section; hopefully I have it in the correct forum now, if not please advise.I抦 a local help desk tech here at a call center and we have a group of users with an annoying problem. It seems to affect users who are tasked with performing a certain ...

Help

368 byte By Lorza at 2007-10-2 1:32:11
[i]Hi new here and never used Java before having to do it as part of my course. I got told to come to this site and download JSE 1.4.2 and then go and download from DrJava the problem I'm having is that i keep getting error msg saying no compiler. Could some one please explain how I go about ...

Cannot compile a program

685 byte By mnmallika at 2007-10-2 1:33:17
Hi,I have written a project.it has three packagess model,view,controller.i.e we have folders like C:\exercise1\model\view\controller.and a main file C:\exercise1\mortgagecalculator.when i run the project in eclispe workspace it runs fine but when i run this at command prompt it gives me error ...

Help, im new at this

581 byte By wizar10a at 2007-10-2 1:33:50
um im working on a simple project where i have to re-assign values to variableprogram goes as suchpublic class Excecrise_2{ public static void main ( String[] args ) { double X = 4.0; double Equation = (3*X -8*X + 4); System.out.println("At X: = " + X ); System.out.println("the value is: = " + ...

NoClassDefFoundError

3790 byte By Soaida at 2007-10-2 1:36:39
Recently i deployed an application to our jboss server and have been getting this error.exception ...

package does not exist?

501 byte By nardza at 2007-10-2 1:36:54
Hey pplTrying to use a List Iterator with a linked list.LinkedList knowledgeBase = new LinkedList();ListIterator iter = new knowledgeBase.ListIterator();and when i try to compileIEPL.java:147: package knowledgeBase does not existListIterator iter = new knowledgeBase.ListIterator(); ^I know the ...

print iterator or stringtokenizer objects to console for checking values

503 byte By acetoleveragea at 2007-10-2 1:38:28
how to print StringTokenizer or Iterator objects to console window using System.out.println() command?eg: StringTokenizer st = new StringTokenizer(arraylist, delimiter);system.out.println(st);when i directly put it in system.out statement like above it prints ...

"cannot find symbol" error

7394 byte By Vancea at 2007-10-2 1:39:13
Windows XP home SP2JRESE 1.5.0_05-b05Hello everyone,I tried searching for help on this "cannot find symbol" error, but sun keeps redirecting me to forums when I try to view a page other than the first on searches, so I'm sorry if this is answered elsewhere. (I couldn't look beyond the first ...