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.
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)
Created attachment 85068 [details] stacktrace
This issue already has 6 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=150368
Seems to be a valid issue, reproducible testcase required.
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)
Created attachment 85386 [details] stacktrace
This issue already has 7 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=150368
This issue already has 8 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=150368
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)
Created attachment 86232 [details] stacktrace
This issue already has 9 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=150368
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)
Created attachment 87083 [details] stacktrace
This issue already has 11 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=150368
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)
Created attachment 87626 [details] stacktrace
This issue already has 12 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=150368
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)
Created attachment 88237 [details] stacktrace
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)
Created attachment 88376 [details] stacktrace
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.
This issue already has 23 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=150368
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.
This issue already has 24 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=150368
Probably, this bug has a relation to the bug 176078
To have progress in investigation of this bug I'd like to check that the JavaHelp code is always executed in the AWT thread. I hope the assertion statements added by me will help to catch illegal situation. http://hg.netbeans.org/main/rev/2be12a0d54f9 I'll close this bug until new events. Please, re-open it if events related to this bug will occur.
Integrated into 'main-golden', will be available in build *201002100200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/2be12a0d54f9 User: Victor G. Vasilyev <vvg@netbeans.org> Log: #168973 - [68cat] ArrayIndexOutOfBoundsException: 2. Assertions for AWT thread are added.
Clearly the fix did not help. *** This bug has been marked as a duplicate of bug 195727 ***