Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 100700

Summary: Normal console sometimes gets accidentally replaced by an empty stack trace console
Product: [Eclipse Project] Platform Reporter: Stefan Matthias Aust <sma>
Component: DebugAssignee: Platform-Debug-Inbox <platform-debug-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: chance.yohman, eclipse, fillg1
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Stefan Matthias Aust CLA 2005-06-18 05:26:24 EDT
I20050617-1618 (and JDK 1.6.0-b40)

When I run a console application via Ctrl+F11, sometimes (but not always) the
normal console view which shows "<terminated>..." gets replaced by an empty
"Java Stack Trace Console" and I can't get my old console output :(
Comment 1 Darin Wright CLA 2005-06-20 09:33:16 EDT
Consoles are removed when you remove the associated launch. If you have not 
removed the launch, the console is still accessible from the console view. 
There is a drop down action in the toolbar that allows you to choose from 
available consoles. Otherwise, simple select the associated launch in the 
debug view to see the associated console.
Comment 2 Stefan Matthias Aust CLA 2005-06-20 10:47:58 EDT
Sorry, I wasn't clear enough: I do not remove the launcher and the console view
is still there, but after the program printed something and terminated, that
"<terminated> console" sub-view is replaced by an empty "Java Stack traces"
sub-view for no obvious reason.

Unfortunately, I cannot reproduce the problem... it happens only sometimes. And
if I re-run the application, the "<terminated> console" stays.

However, I know that other people on the German Hava news group already reported
the same problem. I'll ask them to comment on this problem, too.
Comment 3 Michael Paap CLA 2005-06-20 12:30:28 EDT
I have this problem too, with 3.1 RC2: After running an program, the
console-view sometimes becomes cleaned, so tat the output is no longer visible.
Comment 4 Kevin Barnes CLA 2005-06-20 14:16:40 EDT
Does this happen on JDK 1.4.X or 1.5?
Comment 5 Stefan Matthias Aust CLA 2005-06-20 14:39:44 EDT
I was using JDK 1.6.0-b40.
Comment 6 Michael Paap CLA 2005-06-20 14:42:58 EDT
It should have been 1.5.
I now have installed RC3 and couldn't reproduce the problem til now.
Comment 7 Kevin Barnes CLA 2005-06-20 15:01:35 EDT
Do you have the "Pin Console" button turned on?

I'm still not clear on this. Have you ever seen the behavior you describe when
using 1.4 or 1.5? I do not have a 1.6 vm to test on and I have not been able to
reproduce this bug on any vm that I have access to.
Comment 8 Stefan Matthias Aust CLA 2005-06-20 15:17:45 EDT
I'm now running Eclipse on 1.5.0_03 and I think, I can reproduce the issue.

0. Create a Java project.
1. Create a new class with a simple "Hello, World" Java application.
2. Create and run new launch configuration (editor's context menu: Run As | Java
Application)
3. Run it (should open a console view if not already open and show "Hello,
World"; so far so good)
4. Now edit the class (inserting a single space should do the trick) but do NOT
save it.
5. Press Ctrl+F11 to run the application again.
6. A "Save Resources" dialog is poping up, the source file is selected, press
RETURN.
7. The application runs, something is displayed BUT the sub view is immediately
removed, only displaying "A console is not available."

Comment 9 Darin Wright CLA 2005-06-20 15:48:31 EDT
Seems to happen on 1.4.2 and 1.5 when the General preference to "Always run in 
background" is "off". When on, I do not see the behavior.
Comment 10 Darin Wright CLA 2005-06-20 15:51:13 EDT
An interesting bug, bug none-the-less, deferred for post 3.1 consideration.
Comment 11 Darin Wright CLA 2005-06-22 10:30:31 EDT
*** Bug 101222 has been marked as a duplicate of this bug. ***
Comment 12 Darin Wright CLA 2005-06-24 15:45:44 EDT
I am unable to reproduce this on I20050624-1300
Comment 13 Darin Wright CLA 2005-06-24 15:50:03 EDT
(ooops, I can reproduce in a fresh workspace).
Comment 14 Stefan Matthias Aust CLA 2005-06-24 15:59:01 EDT
I downloaded that build and I can still reproduce the issue. The console
vanishes if you run an application with modified source via Ctrl+F11.
Comment 15 satguru CLA 2005-07-22 20:59:33 EDT
(In reply to comment #14)
I have this problem, too. The console tab is displayed but I get a message that 
the no console is available. I closed the console tab and chose Run > Java 
application again - and then it worked. I am content with this work-around for 
now.

Comment 16 Darin Wright CLA 2005-10-24 15:50:42 EDT
*** Bug 112273 has been marked as a duplicate of this bug. ***
Comment 17 Stephanie Galanie CLA 2006-01-15 00:02:29 EST
I am running eclipse 3.1.1 on Mac OS X 10.3.9 with java sdk 1.4.2.  Same problem - before running a program, the title bar of the console shows "no console available" after running, it changes to <terminated> blah blah...but the system.out.println output is not shown.  This happens every time I use eclipse.  satguru's workaround doesn't work for me.
Comment 18 Darin Wright CLA 2006-05-15 11:01:34 EDT
Fixed in 3.2
Comment 19 Darin Wright CLA 2006-05-15 11:01:44 EDT

*** This bug has been marked as a duplicate of 128452 ***