Re: System.out is repeating the output
Re: System.out is repeating the output
- Subject: Re: System.out is repeating the output
- From: Nathan Dumar <email@hidden>
- Date: Tue, 16 Nov 2004 09:21:52 -0500
I know, this question is not specifically WO. I apologize. This
started as a WO question, when I wanted to email all exceptions to
myself. I went with a suggestion to use System.out, because I would be
sure to get almost everything that way (some exceptions, as Chuck
stated, can't be caught, like OOM). Now my question is not
specifically about WO, but I'm continuing to go back to this list,
because here is where I started this approach for solving a problem in
my WO app.
I didn't mean "double" as in the variable type. I meant repeated. If
you look at the output I get from the code, you'll see that it spit out
twice as much as it was supposed to produce. It should say this:
write 2
(re-)starting Error Timer
This is a test.
Sent by timer
but instead it says this:
write 2
(re-)starting Error Timer
This is a test.write 2
(re-)starting Error Timer
This is a test.
Sent by timer
So, if anyone has any ideas about how to get the repetition out of my
output, I would appreciate it.
It seems to me that System.out is writing twice, because "write 2" is
appearing twice (in the second write override). But it does not write
"This is a test." twice to the java standard output when I don't
re-route System.out.
Thank you for any help,
Nathan
On Nov 16, 2004, at 6:19 AM, Sako! wrote:
hello dude,
why dont you ask a concrete question.
do you want to convert double into string?
btw, this is a java qustion no relation to wo.
Sako.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden