Bug 470185 - multiple thread console write
Summary: multiple thread console write
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.4   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Debug-Inbox CLA
QA Contact:
URL: http://http://tinypic.com/r/fwpo5l/8
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2015-06-15 10:39 EDT by Yogesh Mujumdar CLA
Modified: 2015-07-23 09:46 EDT (History)
3 users (show)

See Also:


Attachments
Screen grab of the error (224.40 KB, image/jpeg)
2015-06-18 05:05 EDT, Yogesh Mujumdar CLA
no flags Details
Test Case (637 bytes, application/octet-stream)
2015-06-18 05:07 EDT, Yogesh Mujumdar CLA
no flags Details
Scgeen grab of the exception - no stack trace :( (129.12 KB, image/jpeg)
2015-06-18 05:44 EDT, Yogesh Mujumdar CLA
no flags Details
Test Maven Project (2.52 KB, application/zip)
2015-06-18 07:51 EDT, Yogesh Mujumdar CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yogesh Mujumdar CLA 2015-06-15 10:39:56 EDT
When multiple threads output on console using System.out.println, eclipse gives a popup with title "Multiple problems have occurred" and gives ArrayIndexOutOfBoundsException in the popup details. The program also uses log4j for logging on the console.


-- Configuration Details --
Product: Eclipse 4.4.0.20140612-0500 (org.eclipse.epp.package.jee.product)
Installed Features:
 org.eclipse.jdt 3.10.0.v20140925-0400
Comment 1 Noopur Gupta CLA 2015-06-18 03:21:59 EDT
Please provide the stacktrace having ArrayIndexOutOfBoundsException and an example to reproduce the issue.

See: https://www.eclipse.org/eclipse/platform-text/development/bug-incomplete.htm
Comment 2 Yogesh Mujumdar CLA 2015-06-18 05:05:57 EDT
Created attachment 254527 [details]
Screen grab of the error

Each "Reveal End of Document" error gives a different error code in the bottom pane.
Comment 3 Yogesh Mujumdar CLA 2015-06-18 05:07:04 EDT
Created attachment 254528 [details]
Test Case
Comment 4 Noopur Gupta CLA 2015-06-18 05:21:10 EDT
The stacktrace from logs showing ArrayIndexOutOfBoundsException would also help.
Comment 5 Yogesh Mujumdar CLA 2015-06-18 05:44:04 EDT
Created attachment 254532 [details]
Scgeen grab of the exception - no stack trace :(

All I get is : 

An internal error has occurred.
java.lang.ArrayIndexOutOfBoundsException
Comment 6 Sarika Sinha CLA 2015-06-18 06:53:14 EDT
Is there any error in Error Log for ArrayOutOfBoundException ?

I ma not bale to reproduce this. If I run it nothing gets printed on Console. 
It prints properly in Debug mode.
Comment 7 Yogesh Mujumdar CLA 2015-06-18 06:58:39 EDT
No error on the console. Any eclipse related file I should check for?

The test program creates 100 threads and each thread prints a dot(.) on the console. You mean you are not even getting the dots in eclipse console?
Comment 8 Sarika Sinha CLA 2015-06-18 07:01:27 EDT
(In reply to Yogesh Mujumdar from comment #7)
> No error on the console. Any eclipse related file I should check for?
Can you open "Error Log" View to see if any entry is made?
> 
> The test program creates 100 threads and each thread prints a dot(.) on the
> console. You mean you are not even getting the dots in eclipse console?

Yes, not getting the dots on the console.
Comment 9 Yogesh Mujumdar CLA 2015-06-18 07:51:38 EDT
Created attachment 254537 [details]
Test Maven Project
Comment 10 Sarika Sinha CLA 2015-06-18 22:55:00 EDT
Nothing gets printed with this project as well. 

Can you see any entry in Error Log ?
Comment 11 Dani Megert CLA 2015-07-23 09:46:14 EDT
Please reopen if you have more details.