This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 72957 - AIOOBE when opening help window in tests
Summary: AIOOBE when opening help window in tests
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Help System (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: mslama
URL: http://bugs.sun.com/bugdatabase/view_...
Keywords: T9Y
: 69011 90871 (view as bug list)
Depends on: 87273
Blocks:
  Show dependency tree
 
Reported: 2006-02-22 23:18 UTC by Pavel Buzek
Modified: 2008-12-22 17:48 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace (3.44 KB, text/plain)
2006-02-23 10:02 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Buzek 2006-02-22 23:18:31 UTC
The test fails w/o any obvious reason (seems like it passes on some machines but
fails on continual builder). I will remove it from the tests set until it gets
fixed.
Comment 1 Jiri Skrivanek 2006-02-23 09:57:04 UTC
The test is not broken. It fails because IDE throws an exception. I don't know
yet why the exception is thrown. I can't reproduce it any way.
I noticed that JDK on which build runs was changed from j2sdk1.4.2_09 to
jdk1.5.0_06. Is it intentional?
Comment 2 Jiri Skrivanek 2006-02-23 10:02:12 UTC
Created attachment 28996 [details]
Stack trace
Comment 3 rbalada 2006-02-23 10:14:30 UTC
Jiri,

NB 5.5 daily and continuous and builds run on Solaris 9 SPARC, on JDK 1.5.0_06.
The change of JDK for build is intentional.

Let's meet later today and watch the NB 5.5 c/b what happens.
Comment 4 Pavel Buzek 2006-02-23 14:28:43 UTC
Sorry, I did not want to say that the test is broken. I just see it failing and
do not see how to fix it so I think it makes little sense to send "broken build"
messages all the time.
Comment 5 Jiri Skrivanek 2006-02-27 11:29:07 UTC
OK, neither I don't know exact reason why it is failing. I want to ask core guys
for help. What we know about it so far:

- ArrayIndexOutOfBoundsException (see attachment) is thrown when opening help
window. The test clicks main menu item 'Help|Help Contents'.
- it started to happen when we switched from j2sdk1.4.2_09 to jdk1.5.0_06
- it can be reproduced only on multiprocessor SPARC with Solaris 9 

From above it seems to be a threading issue when concurrent threads are
accessing the same data. Do you have an idea how to fix it or better investigate?
Comment 6 mslama 2006-02-27 12:05:58 UTC
It looks like problem in JavaHelp. AFAIK there was some change in 2.0_02 to
improve performance - some parsing was moved to background thread. Ihave no idea
if there is any workaround. I will ask JavaHelp if there is any solution.
Comment 7 mslama 2006-02-27 12:12:10 UTC
Ruda is building machine multiprocessor?
Comment 8 rbalada 2006-02-27 13:13:53 UTC
Marek,

yes, pytlik is NB 5.5 buildmachine and it's SunFire V880 with 4x UltraSPARC III+
CPUs. More details about this hardware is available at
http://www.sun.com/servers/midrange/v880/

Output of 'uname -a':
SunOS pytlik 5.9 Generic_117171-05 sun4u sparc SUNW,Sun-Fire-880.

Well this hardware was EOLed some time ago, so we may try to apply lates Solaris
9 patches and see what happens, but don't expect major changes.
Comment 9 mslama 2006-02-27 13:25:52 UTC
Thanks for info. How often does it happen? I tried to reproduce it manually on
our testing 2 CPU Sparc machine with Sol 10/JDK 1.5.0_06. I tried to start IDE
and open Help window 5 times but problem does not appear. (No I do not blame RE
HW :))
Comment 10 mslama 2006-02-27 13:28:15 UTC
It happenned now. Maybe 10% cases.
Comment 11 Jiri Skrivanek 2006-02-27 13:34:51 UTC
It happens almost everytime (but not 100%) in commit validation suite. Impacted
test case was removed from the suite for now. But I was not able to reproduce it
manually. On RE HW we reproduced it this way:

cd nb_all55/ide/test
ant -Dxtest.attribs=validation -Dnetbeans.dest.dir=<NB55home> -Djdkhome=<jdk_home>
Comment 12 mslama 2006-03-06 11:39:20 UTC
I filed issue #6394203 against Javahelp.
Comment 13 Marian Mirilovic 2006-03-10 16:50:13 UTC
I temporary disabled JavaHelp test in Commit Validation (trunk), do not forget
enable it again after fixing this issue.
Comment 14 mslama 2006-03-29 08:10:23 UTC
We agreed on lowering priority to P3 and leave this issue opened for tracking.
Problem is in JavaHelp NOT in NetBeans. We must somehow convince them to fix it.
Comment 15 mslama 2006-06-06 09:26:36 UTC
No progress on Javahelp issue.
Comment 16 mslama 2006-10-17 15:27:03 UTC
New JavaHelp version 2.0_04 is integrated to main trunk => this issue is fixed.
Comment 17 Jiri Skrivanek 2006-10-18 09:03:50 UTC
I added testHelp to the commit validation suite again.
Comment 18 mslama 2006-12-13 16:56:54 UTC
*** Issue 90871 has been marked as a duplicate of this issue. ***
Comment 19 mslama 2006-12-13 16:57:16 UTC
*** Issue 69011 has been marked as a duplicate of this issue. ***