cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

Bug 168973 - [68cat] ArrayIndexOutOfBoundsException: 2
: [68cat] ArrayIndexOutOfBoundsException: 2
Status: NEW
: platform
Help System
: 6.7
: All All
: P2 (vote)
: 6.9
Assigned To:
:
: http://statistics.netbeans.org/except...
: EXCEPTIONS_REPORT
: 6.8_WAIVER_APPROVED, RANDOM
:
:
  Show dependency treegraph
 
Reported: 2009-07-22 14:33 by
Modified: 2009-11-13 10:19 (History)
Issue Type: DEFECT
:


Attachments
stacktrace (1.18 KB, text/plain)
2009-07-22 14:33, exceptions_reporter
Details
stacktrace (1.14 KB, text/plain)
2009-07-29 00:35, vopisk
Details
stacktrace (1.18 KB, text/plain)
2009-08-14 10:13, pzajac
Details
stacktrace (1.18 KB, text/plain)
2009-09-03 18:33, matthies
Details
stacktrace (1.18 KB, text/plain)
2009-09-14 16:49, Jan Lahoda
Details
stacktrace (1.18 KB, text/plain)
2009-09-23 21:48, Michel Graciano
Details
stacktrace (1.18 KB, text/plain)
2009-09-25 16:59, Michel Graciano
Details


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2009-07-22 14:33:49
Build: NetBeans IDE 6.7 (Build 200906241340)
VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment,
1.6.0_14-b08
OS: Windows XP, 5.1, x86

User Comments:
chris_mcmillan: Unable to display help.

chrislundin: open help for JTextField - Properties - inputVerifier

jportway: openning help contents window



Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: 2
        at javax.swing.text.CompositeView.replace(CompositeView.java:170)
        at javax.swing.text.BoxView.replace(BoxView.java:164)
        at javax.swing.text.View.updateChildren(View.java:1095)
        at javax.swing.text.View.changedUpdate(View.java:761)
        at javax.swing.text.html.BlockView.changedUpdate(BlockView.java:324)
        at
javax.swing.plaf.basic.BasicTextUI$RootView.changedUpdate(BasicTextUI.java:1618)
------- Comment #1 From 2009-07-22 14:33:58 -------
Created an attachment (id=85068) [details]
stacktrace
------- Comment #2 From 2009-07-22 14:34:21 -------
This issue already has 6 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=150368
------- Comment #3 From 2009-07-28 12:39:28 -------
Seems to be a valid issue, reproducible testcase required.
------- Comment #4 From 2009-07-29 00:35:04 -------
Build: NetBeans IDE 6.7 (Build 200906241340)
VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment,
1.6.0_14-b08
OS: Windows XP, 5.1, x86

User Comments: 
Bringing up the help interface from the replace in projects window

Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: 2
        at javax.swing.text.CompositeView.replace(CompositeView.java:0)
        at javax.swing.text.BoxView.replace(BoxView.java:0)
        at javax.swing.text.View.updateChildren(View.java:0)
        at javax.swing.text.View.changedUpdate(View.java:0)
        at javax.swing.text.html.BlockView.changedUpdate(BlockView.java:0)
        at
javax.swing.plaf.basic.BasicTextUI$RootView.changedUpdate(BasicTextUI.java:0)
------- Comment #5 From 2009-07-29 00:35:08 -------
Created an attachment (id=85386) [details]
stacktrace
------- Comment #6 From 2009-07-29 00:35:13 -------
This issue already has 7 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=150368
------- Comment #7 From 2009-08-12 18:02:15 -------
This issue already has 8 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=150368
------- Comment #8 From 2009-08-14 10:13:48 -------
Build: NetBeans IDE 6.7 (Build 200906241340)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment,
1.6.0_13-b03
OS: Linux, 2.6.24-24-generic, i386

User Comments: 
random exception

Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: 2
        at javax.swing.text.CompositeView.replace(CompositeView.java:170)
        at javax.swing.text.BoxView.replace(BoxView.java:164)
        at javax.swing.text.View.updateChildren(View.java:1095)
        at javax.swing.text.View.changedUpdate(View.java:761)
        at javax.swing.text.html.BlockView.changedUpdate(BlockView.java:324)
        at
javax.swing.plaf.basic.BasicTextUI$RootView.changedUpdate(BasicTextUI.java:1618)
------- Comment #9 From 2009-08-14 10:13:52 -------
Created an attachment (id=86232) [details]
stacktrace
------- Comment #10 From 2009-08-14 10:13:57 -------
This issue already has 9 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=150368
------- Comment #11 From 2009-09-03 18:33:34 -------
Build: NetBeans IDE 6.7 (Build 200906241340)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment,
1.6.0_10-b33
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: 2
        at javax.swing.text.CompositeView.replace(CompositeView.java:170)
        at javax.swing.text.BoxView.replace(BoxView.java:164)
        at javax.swing.text.View.updateChildren(View.java:1095)
        at javax.swing.text.View.changedUpdate(View.java:761)
        at javax.swing.text.html.BlockView.changedUpdate(BlockView.java:324)
        at
javax.swing.plaf.basic.BasicTextUI$RootView.changedUpdate(BasicTextUI.java:1618)
------- Comment #12 From 2009-09-03 18:33:38 -------
Created an attachment (id=87083) [details]
stacktrace
------- Comment #13 From 2009-09-03 18:33:43 -------
This issue already has 11 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=150368
------- Comment #14 From 2009-09-14 16:49:50 -------
Build: NetBeans IDE Dev (Build jet-main-1201-on-090908)
VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment,
1.6.0_11-b03
OS: Linux, 2.6.28-11-generic, i386

User Comments: 


Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: 2
        at javax.swing.text.CompositeView.replace(CompositeView.java:170)
        at javax.swing.text.BoxView.replace(BoxView.java:164)
        at javax.swing.text.View.updateChildren(View.java:1095)
        at javax.swing.text.View.changedUpdate(View.java:761)
        at javax.swing.text.html.BlockView.changedUpdate(BlockView.java:324)
        at
javax.swing.plaf.basic.BasicTextUI$RootView.changedUpdate(BasicTextUI.java:1618)
------- Comment #15 From 2009-09-14 16:49:54 -------
Created an attachment (id=87626) [details]
stacktrace
------- Comment #16 From 2009-09-14 16:50:00 -------
This issue already has 12 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=150368
------- Comment #17 From 2009-09-23 21:48:23 -------
Build: NetBeans IDE Dev (Build 200909221401)
VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment,
1.6.0_16-b01
OS: Linux, 2.6.28-15-generic, i386

User Comments: 


Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: 2
        at javax.swing.text.CompositeView.replace(CompositeView.java:170)
        at javax.swing.text.BoxView.replace(BoxView.java:164)
        at javax.swing.text.View.updateChildren(View.java:1095)
        at javax.swing.text.View.changedUpdate(View.java:761)
        at javax.swing.text.html.BlockView.changedUpdate(BlockView.java:324)
        at
javax.swing.plaf.basic.BasicTextUI$RootView.changedUpdate(BasicTextUI.java:1618)
------- Comment #18 From 2009-09-23 21:48:27 -------
Created an attachment (id=88237) [details]
stacktrace
------- Comment #19 From 2009-09-25 16:59:28 -------
Build: NetBeans IDE Dev (Build 200909221401)
VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment,
1.6.0_16-b01
OS: Linux, 2.6.28-15-generic, i386

User Comments: 
Openning Help Content dialog

Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: 2
        at javax.swing.text.CompositeView.replace(CompositeView.java:170)
        at javax.swing.text.BoxView.replace(BoxView.java:164)
        at javax.swing.text.View.updateChildren(View.java:1095)
        at javax.swing.text.View.changedUpdate(View.java:761)
        at javax.swing.text.html.BlockView.changedUpdate(BlockView.java:324)
        at
javax.swing.plaf.basic.BasicTextUI$RootView.changedUpdate(BasicTextUI.java:1618)
------- Comment #20 From 2009-09-25 16:59:33 -------
Created an attachment (id=88376) [details]
stacktrace
------- Comment #21 From 2009-10-08 04:27:19 -------
Unfortunately, I can't reproduce this random exception.

All the attached stack traces explain only that the issue is inside the Swing
code when JEditorPane tries to read an
HTML document , but it doesn't contain any pointers to the NetBeans code where
the issue might be fixed.

It is unclear which Document (i.e HTMLDocument) are used by the JEditorPane
during reading to model the issue. Seems the
issue doesn't depend on InputStream (i.e. a page URL).

BTW there is a chance that the issue occurs against newly initialized
HTMLDocument(see the method
JEditorPane.initializeModel(EditorKit kit, URL page) ). If so then it is a bug
in either the Swing or the Java platform,
probably in the method HTMLDocument$HTMLReader.adjustEndElement() when
added/removed model for HTML elements is
generated to be fired as an event of the changed update.
Of course, there is another scenario for this issue - broken added/removed
model can be generated if there are uncaught
errors during reading the HTML file, e.g. as consequences of incorrect
buffering or translation for a given encoding.

Hence, we need have more info about the issue and its environmental conditions.
------- Comment #22 From 2009-11-01 15:10:35 -------
This issue already has 23 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=150368
------- Comment #23 From 2009-11-11 19:57:02 -------
The statistical info (23 episodes) can't give us a chance to select common
scenario to reproduce this issue. The exception has random nature. We need have
intensive testing around this issue or wait some occasional info from our
users. Another way is an investigation of changes in the code of the NetBeans
that have been made before the first episode. All these approaches are
extremely time-consuming.

I'll continue work in this area, but my opinion is the existing time frame up
to the NB6.8 release is not enough to find a cause of this issue and fix it. 

I'll highly appreciate any ideas about possible solutions for this issue.
------- Comment #24 From 2009-11-13 01:13:34 -------
This issue already has 24 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=150368
------- Comment #25 From 2009-11-13 10:19:51 -------
Probably, this bug has a relation to the bug 176078