Socket creation error delay time

515 byte By mhugara at 2007-9-28 1:41:01
I'm developping an application tha tries to open a socket to a remote host via GPRS. I find the connection to be not very good, which makes the new Socket operation to fail very frequently. The main problem is that, in that case, the function throws an -IO exception: unable to connect to ...

Exception handlings?

3994 byte By dean_1221a at 2007-9-28 1:46:50
Hi, I'm wondering what the following exception handlings mean and when they would occur.This example is taken from Deitel & Deitel Java How to Program and didn't explain the sections of code with // ?.Your help would be greatly appreciated.Dean// Fig. 21.3: Server.java// Set up a Server ...

NullPointerException--what am I doing wrong?

4586 byte By mhansen7a at 2007-9-28 1:49:10
I can't get rid of this problem. I've created a method in a class and I'm trying to call that from within an application and it won't allow me to essentiall construct my classes. Any help would be greatly appreciated.import java.util.*;class ArmyBattle {public class Combatants { int ...

Making Javadoc work with Ant (or without it)

736 byte By LoneDerangera at 2007-9-28 1:49:29
I need to add Java doc to my Ant build file, with the following requirements:- All java files under the "WEB-INF\src" directory must be documented. They belong to many different packages and reside in many different folders. - The library JAR files should not be documented. There is just too ...

ServerSocket security exception

214 byte By pimperskina at 2007-9-28 1:49:53
how come i cant create a server socket?....i got though creating my client....and my server wont create a socket due to some security exception(cannot access port(port i assigned))......how can i solve this?

quieter javadoc?

287 byte By nianlongya at 2007-9-28 1:53:55
I am running javadoc inside my other programes. I can't find a way to turn of the following two lines printed by javadoc :Loading source file <fileName> ....Constructing Javadoc information...Anybody know how to turn this off?Thanks!-Neal

Hashtable changing on its own

1274 byte By thecrazy1a at 2007-9-28 1:54:46
I am having a problem with a Hashtable thats a private member of a class I wrote to sort Points and get the closest one. I added logging to any method to alter the Hashtable. I call this line of code in a separate class:selected_node.location.setLocation(x, y);The Hashtable has java.awt.Point ...

Inconsistent Thread

73 byte By javajean206a at 2007-9-28 1:58:15
Does anyone know what causes "Inconsistent thread" errors? Thanks.

javadoc on method variables?

386 byte By maclagcsa at 2007-9-28 1:58:47
I'd like to be able to document method level variables with javadoc comments. Does anyone know if that's possible?What I'm trying to do is to document exception handling inside a method and have a new tag handle the documentation. This way I can just re-run javadoc instead of having to ...

Errors

332 byte By heatherw_01a at 2007-9-28 1:59:46
9 times out of 10 when i use a java programme, my machine gets a blue screen then reboots.I have the most up to date version of Java and I use XP.Is there anything I can do?I cannot fully read the blue screen as it reboots so quick, but it says something like windows has found and error and ...

Virus Hoax

434 byte By RrobMa at 2007-9-28 2:08:15
This morning I received a mass e-mailing warning of a new Virus that was not being picked up by Norton and urging that I immediately delete the file: (jdbgmgr.exe )to rid my system of the virus. I dutifully followed the instruction. I now have been told that the notice was a hoax and that the ...

Curious Message in Console

2386 byte By OurDreamWeba at 2007-9-28 2:08:30
I am more curiuos than anything since my Applet seems to work fine, but when I get a successful login from my Login Applet that spawns a JRame that opens up with my control panel stuff on it. When I click on the X in my control panel to close that window I am seeing the following message appear ...

Incompatible types error? Why?

944 byte By apHeXa at 2007-9-28 2:10:19
Hello, I am having some trouble getting a program to compile. I am getting several "Incompatible types" errors, but I cannot understand why. Everything that should be an int is an int, etc. The errors refer to the following sections of code below:Error#: 354: incompatible types; found: ...

java.io.FileNotFoundException

334 byte By tmpilsnera at 2007-9-28 2:11:10
This is a very simple program. I just want to read the text out of a text file called names.txt. It is in the same folder as the rest of my project files.I'm using CodeWarrior and I was wondering if perhaps the program is looking for the file in the wrong place.Any help would be ...

Yahoo Error

2626 byte By janadoga at 2007-9-28 2:12:42
I am really illiterate about programming and such. I am unable to access just about everything in Yahoo. I can get to the main page and the main page of games. I can go in through a back door to play games but can not access it directly through Yahoo. I have Java on my computer. Here is a copy ...

JSP Load Errors

289 byte By kg6eyra at 2007-9-28 2:12:58
Greetings,I'm having problems loading various .jsp pages. I've flushed the cache, disabled Java security, tossed my cookies, and have done everything I can to re-initialize Java on my box. I'm running IE 6.0 although it says it's still 5.5. Any ideas?~Max (kg6eyr)

urgent !!!! why?

277 byte By larrywl0a at 2007-9-28 2:14:42
when I change int to String, I write [new String(int i)]debug:"ListSqlAuto.java": Error #: 306 : constructor String(byte[], int, int, sun.io.ByteToCharConverter) has private access in class java.lang.String at line 232, column 34how to write?

JVM does not run ie6

595 byte By corrala at 2007-9-28 2:20:54
I used to be able to play yahoo games on this same setup MS XP Home and IE6. Now i cant only play but open a lot of pages that need java script.I have down loaded JVM from this site and i get an error message as follows:Java Runtime EnvironmentInstall support file could not be ...

2 questions around javadoc...

650 byte By edger2002a at 2007-9-28 2:23:04
(1)Somewhere I've seen HTML-Doku created by a tool like javadoc,but additionally the Doku provided for every variable and method of the source code line numbers as links. So there was an opportunity to jump from Doku into code by such links. But I've forgotten what is the name of the tool. ...

please help in monitoring a weblogic application

450 byte By Sangitava at 2007-9-28 2:26:31
We(in my company) have downloaded weblogic and configured a small application that uses JSPS and SERVLETS. Made an .ear file and deployed it. It is running OK. BUT ...now my responsibility is to monitor this application. I wanted to to see ONLY ONE thing done : 1) If the application goes down ...

OutOfMemoryException

137 byte By vaniyedavallia at 2007-9-28 2:34:22
I am facing an OutOfMemory exception in my application. Cannot determine why we get this... We are using JDK 1.2.2_10 for Solaris.

NoSuchMethodError message

386 byte By Markenrodea at 2007-9-28 2:36:47
I installed the new JDK, but when I attempt to run an app I get the following error message:Exception in thread "main" java.lang.NoSuchMethodError: mainCould someone tell me what is wrong? What is this error message trying to tell me and how do I get an app to run? I get this when I try to run ...

BindException at socket creation

818 byte By gandugamerioa at 2007-9-28 2:37:23
hi,when i create new socket then i got bindexception.how to handle this.bcoz of that i can't open new socket.java.net.BindException: Cannot assign requested address: connectat java.net.PlainSocketImpl.socketConnect(Native Method)at java.net.PlainSocketImpl.doConnect(Unknown Source)at ...

JavaDoc with different languages

277 byte By mfischbacha at 2007-9-28 2:49:06
Hi,it seems not to be possible to create documentation for other languages than Java with JavaDoc. Is this right?If so, which tools are available in general. Which tools base on Java!Any solution or idea is welcome!Thx in advanceMartin

MP3 access file simultaneous Read and Write

512 byte By Daminoua at 2007-9-28 2:52:01
Hello,I am working on a project for MP3 streaming with my own protocol.The protocol is working and i write the data on a MP3 file but i can't read this file, with the interface Player, before the end of the complete tranfert. The compilator return :Error value: 80070020Error: Unable to realize ...

https:// sites dont load

339 byte By Unhappy_Usera at 2007-9-28 2:53:29
I cant connect to any https:// sites. They have always worked in the past. Honestly, I dont know anything about java so if anyone can answer this problem with simple terms and step by step I would be so happy. Please, if you can help me but you need me to give more information just ask. Many ...

Cant find file inside jar

754 byte By magicVa at 2007-9-28 2:57:58
I have the following problemIn my program Im using a file(Error.properties) that stores error messages in the following fashion01=Error 102=Error 2....Im loading this file using the following commandPropertyResourceBundle errorCodes = new PropertyResourceBundle(new ...

Unrecognized Windows Sockets error...

2010 byte By Linus3a at 2007-9-28 3:00:43
Hello everybody!I am encountering the following problem, when I try to run a program which wants to access the internet. I pasted an extract from the source code here, which I think includes the critical lines:...import java.net.*;import java.io.*;class FindLinks {public static Vector findLinks ...

javac is working but not java

1338 byte By lydaya at 2007-9-28 3:07:26
PLEASE HELP.I've got a project due very soon, and I can't get very far until I can run my apps.Thank you,Dustin__1.I CAN compile a single .java file if it does NOT refer to any class outside of itself.2.I CAN'T compile a .java file if it refers to another class outside of itself (even if ...

whats is wrong!?

943 byte By guareza at 2007-9-28 3:11:21
hi..look this code--import java.awt.*;import java.applet.*;public class Azul extends Applet{ public boolean mouseEnter(Event e, int x, int y) {public void paint(Graphics gr){int xPoints[] = {42, 52, 72, 52, 60, 40, 15, 28, 9, 32, 42};int yPoints[] = {38, 62, 68, 80, 105, 85, 102, 75, 58, 60, ...

logging

429 byte By youngster__a at 2007-9-28 3:13:05
I want to write a log method for my application. Should I open and close the logfile every time I want to write something to it? Or should I open it in the beginning, use a BufferedReader end close it when the application exits? Is it safer to open/close the file every time you write to it?If ...

create a single javadoc from several packages

524 byte By xpprojecta at 2007-9-28 3:15:33
I have the package structures like the following, and each package has relationship with each others:myproj.package1myproj.package2myproj.package3myproj.package4and I want to generate a single Javadoc for all packagesjavadoc -d c:\javadoc *.java -subpackages myproj.package1 myproj.package2 ...

Unknown ErrorMessage

408 byte By 121264a at 2007-9-28 3:22:29
HotSpot Virtual Machine Error, Internal Error Please report this error at http://java.sun.com/cgi-bin/bugreport.cgi Error ID: 4A41564123414C4C530E4350500015 Problematic Thread: prio=5 tid=0x98a960 nid=0x6f4 runnableOn our application we have sometimes this Error Message.We look for this ...

Weird IOException's

917 byte By PeterKoka at 2007-9-28 3:24:47
Okay people I hope you can help me out.This is my program code:public static void main (String args[]) {try {FileOutputStream out = new FileOutputStream("c:\\output.txt");ObjectOutputStream s = new ObjectOutputStream(out);s.writeObject("Today");Song song = new Song("lalala", ...

inheritdoc doesn't work !?

327 byte By mhmjavaa at 2007-9-28 3:38:08
Hi AllDoes anyone know how to put the @inheritDoc tag to work ?I 'am using JBuilder 7.o with JDK 1.3.1-b24 and 1.4.1_01-b01 to make Javadocs.All tests that i have done, generate the string "@inheritDoc" on the body of description method.Please send me samples.tksMarcelo ...

javadoc: warning - Cannot find class javax.mail.Session

2320 byte By pam11a at 2007-9-28 3:38:47
Hi,I am using jdk1.3.1When I run javadoc on our files, it loads the packages and then gives some warning messages like this:...Constructing Javadoc information...javadoc: warning - Cannot find class javax.mail.Sessionjavadoc: warning - Cannot find class javax.mail.internet.MimeMessagejavadoc: ...

Javadoc - better usability please

317 byte By quereinsteigera at 2007-9-28 3:43:59
When I need the documentation for a class I have to use the scrollbar and browse until I find it in the list.It would be much more comfortable if there would be a search option (done with Java script perhaps). The Javadoc should be as comfortable as the Windows Help System.Isn't it a good ...

Connection refused, but works on diff computer

1290 byte By vt_davea at 2007-9-28 3:48:31
Ok, i'm opening a connection to a web server using ssl (jsse) and this WAS working great. But now when I try to run the same code that was working on this computer (and still works upstairs) i get:java.net.ConnectException: Connection refused: connectat ...

java.lang.NoSuchMethodError

107 byte By ashcarrota at 2007-9-28 3:50:35
How do i catch this error ?i've tried try{}catch{}with Exception and RuntimeException

internal error in 1.4.1

412 byte By polyphemusa at 2007-9-28 3:54:46
Hi I try to document some j2me stuff and link it with the sun j2me documentation.For some classes it works, but then I got this error: private TextField tfImageWidth = new TextField("Image Width", "", 4, ^Internal error: package sets don't match: [] with: nullInternal error: package sets ...

How can I implement @see's behavior in a taglet?

1331 byte By mriffea at 2007-9-28 4:06:09
Admittedly I didn't search the whole forum, so please forgive me if this has been asked and answered before.However, I am attempting to implement a silly little taglet that will allow me to have a class 'link' to its junit test case. The reason it's silly is three-fold: 1) i know i can ...

Customize Javadoc for different comment style

136 byte By ksurykanta at 2007-9-28 4:12:05
Can we customize the java doc to look for a different comment style i.e. look for ## My comments # rather than /** My comments */

A class works alone but not inside JSP page

3600 byte By molinskya at 2007-9-28 4:15:05
Hi, I need quick help with this.I have a java class Mailer to send e-mails with or without attachments working perfetly. When I try to use an object of this class to send an e-mail with an attachment inside my jsp page it doesn't work!It sends without attachments, but if it has attachments it ...

Windows Shell script for Javadoc

143 byte By jksudhakara at 2007-9-28 4:17:45
HelloHow to write the Shell script for javadoc...in this case we were java 1.4please Respond me with one example...

JDBC and sql for loop error(PLEASE HELP)

2427 byte By jamesjudge82a at 2007-9-28 4:18:48
Hi everyone,I am getting an error when i try to compile my java code it says :SQL Problem: java SQLException: [Microsoft] [ODBC Driver Manager]function sequense errorI need my code to print out questions and possible answers from my database of questions the code is looping through and printion ...

Color2.java:89: missing method body, or declare abstract

2845 byte By tildalua at 2007-9-28 4:38:48
I am creating a color chooser applet but I keep receiving this error please help me to resolve this as my heads wrecked.Here is my code:import java.awt.*;import java.applet.*;import java.awt.event.*;public class Color2 extends Applet implements AdjustmentListener, ActionListener {Scrollbar ...

Exception handling

436 byte By rc_pathaka at 2007-9-28 4:41:58
Hi,Java provides the facility of handling exception in two ways, they are Checked Exception and Runtime Exception.My doubt is what is the need of this type of clasification, when we can do with only runtime Exception? For example, if a file is not found, the compiler should allow to declare ...

error when applet try to load java.security.spec.PKCS8EncodedKeySpec class

824 byte By xagapioua at 2007-9-28 4:43:34
Hi i am writing an applet which grants permissions from the user.I am using swing components so i use dubuild(from microsfot) to makea cab file,then i sign it and all goes ok.Also in my applet i try to read a Key from the user's harddrive in PKCS8Encoded format but it fails.I tried to run the ...

hs_err_pid####.log has no JNI call stack info

461 byte By philipchanga at 2007-9-28 4:47:18
I am running a stand-alone JAVA app myapp.jar that calls JNI C++ dll native code on Windows 2000.If inside my JNI C++ dll I have func_a() calling func_b() calling func_c(), and an EXCEPTION_ACCESS_VIOLATION occurs inside func_c(), hs_err_pid####.log would be created, but it would not contain ...

Problem Calling Remote Session Bean Method

936 byte By petehilfikera at 2007-9-28 4:55:04
Need help. I am trying to call a method in a remote stateless session bean in an EJB in my web application from a stateless session bean in a different EJB in the web application. I am getting a run-time error that says, "java.lang.NoClassDefFoundError: ...