[2406] in java-interest

home help back first fref pref prev next nref lref last post

Re: What am I doing Wrong?

daemon@ATHENA.MIT.EDU (Jonathan Payne)
Sat Sep 30 10:14:09 1995

Date: Fri, 29 Sep 1995 09:07:27 -0700
From: jpayne@starwave.com (Jonathan Payne)
To: jones@iwn.com
Cc: java-interest@java.Eng.Sun.COM
In-Reply-To: <9509290004.AA15910@gladys.Eng.Sun.COM> (message from Joseph Jones on Thu, 28 Sep 1995 16:13:48 -0700)

You are probably getting some sort of exception, and for some reason
it's not falling all the way through to the end and getting printed
out.  So, put a try/catch around the body of your run method, and just
catch (Throwable e) and have a look to see what is happening.

That might not be what's going on, but I have noticed that sometimes
exceptions don't get printed.

Also, are you running on NT or solaris?  If on solaris, you can type
^\ (the QUIT character) and it will give you a stack trace on all the
active threads.  You can see (1) if your thread is still running, and
(2) if so, where it is.

> From: Joseph Jones <jones@iwn.com>
> Date: Thu, 28 Sep 1995 16:13:48 -0700
> Sender: owner-java-interest@java.sun.com
> Precedence: bulk
> X-Info: To unsubscribe, send 'unsubscribe' to java-interest-request@java.sun.com
> Content-Type: text
> Content-Length: 572
> 
> HI,
> 
> 	I'm writting a small applet that needs to talk to a server once very n =
> seconds.The way I envisioned the code working is something like this:
> 
> 	public void run() {
> 		make connection to server
> 		request data
> 		close connection to server
> 		process request
> 		repaint()
> 		sleep thread n seconds
> 	}
> 
> Unfortunately this only happens once. What is wrong. (Even if I take out =
> the sleep thread part, it still only executes the run method once.)
> 
> thanx
> joe
> 
> -
> Note to Sun employees: this is an EXTERNAL mailing list!
> Info: send 'help' to java-interest-request@java.sun.com
> 
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post