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 193609 - [70cat] ArrayIndexOutOfBoundsException: 0
Summary: [70cat] ArrayIndexOutOfBoundsException: 0
Status: RESOLVED DUPLICATE of bug 195272
Alias: None
Product: platform
Classification: Unclassified
Component: Dialogs&Wizards (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
: 195424 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-12-19 19:47 UTC by eltony81
Modified: 2011-02-14 12:11 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 173896


Attachments
stacktrace (4.67 KB, text/plain)
2010-12-19 19:47 UTC, eltony81
Details
stacktrace (5.38 KB, text/plain)
2011-01-14 21:12 UTC, asmotrich
Details
stacktrace (5.38 KB, text/plain)
2011-01-14 21:14 UTC, asmotrich
Details
stacktrace (5.38 KB, text/plain)
2011-01-28 20:28 UTC, vanob
Details

Note You need to log in before you can comment on or make changes to this bug.
Description eltony81 2010-12-19 19:47:01 UTC
Build: NetBeans IDE 7.0 Beta (Build 201011152355)
VM: Java HotSpot(TM) 64-Bit Server VM, 17.1-b03-307, Java(TM) SE Runtime Environment, 1.6.0_22-b04-307-10M3261
OS: Mac OS X

User Comments:
mperezma: This exception is thrown every time the mouse pointer moves over the bottom of checkout dialog!

mperezma: I've just reported a problem from the IDE Report Problem wizard.




Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: 0
   at javax.swing.text.BoxView.getViewAtPoint(BoxView.java:655)
   at javax.swing.text.CompositeView.viewToModel(CompositeView.java:406)
   at javax.swing.text.BoxView.viewToModel(BoxView.java:486)
   at javax.swing.plaf.basic.BasicTextUI$RootView.viewToModel(BasicTextUI.java:1541)
   at javax.swing.plaf.basic.BasicTextUI.viewToModel(BasicTextUI.java:1090)
   at javax.swing.text.html.HTMLEditorKit$LinkController.mouseMoved(HTMLEditorKit.java:665)
Comment 1 eltony81 2010-12-19 19:47:04 UTC
Created attachment 104282 [details]
stacktrace
Comment 2 asmotrich 2011-01-14 21:12:21 UTC
Created attachment 105011 [details]
stacktrace
Comment 3 asmotrich 2011-01-14 21:14:59 UTC
Created attachment 105012 [details]
stacktrace
Comment 4 vanob 2011-01-28 20:28:10 UTC
Created attachment 105446 [details]
stacktrace
Comment 5 Exceptions Reporter 2011-01-28 20:28:21 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=173896
Comment 6 Ondrej Vrabec 2011-02-09 09:14:05 UTC
I have no idea how to fix it or how to reproduce. However from the stacktrace it seems related to the area inside a NB wizard where an error/info message is displayed. I tried to debug the code and it seems that WizardDescriptor sometimes tries to set text, icons and foreground of the message label in a background thread outside of AWT (see http://hg.netbeans.org/core-main/file/d0d4728eef07/openide.dialogs/src/org/openide/WizardDescriptor.java#l1454 and http://hg.netbeans.org/core-main/file/d0d4728eef07/openide.dialogs/src/org/openide/WizardDescriptor.java#l1473). Can you move that part of code into the EDT?
Or if you have any idea what subversion might do wrong, reassign back.
Comment 7 Ondrej Vrabec 2011-02-14 08:22:53 UTC
*** Bug 195424 has been marked as a duplicate of this bug. ***
Comment 8 Stanislav Aubrecht 2011-02-14 12:11:49 UTC
this seems to be a duplicate of #195272

the versioning wizard probably catches some exception and displays it as an html formatted error notification at the bottom of the wizard window. the error message most likely contains some elements which break swing's html document. so there are exceptions like this one: 
java.lang.NullPointerException
	at javax.swing.text.DefaultStyledDocument.getParagraphElement(DefaultStyledDocument.java:445)
	at javax.swing.text.StyledEditorKit$AttributeTracker.updateInputAttributes(StyledEditorKit.java:223)
	at javax.swing.text.StyledEditorKit$AttributeTracker.caretUpdate(StyledEditorKit.java:258)
	at javax.swing.text.JTextComponent.fireCaretUpdate(JTextComponent.java:391)
	at javax.swing.text.JTextComponent$MutableCaretEvent.fire(JTextComponent.java:4387)
	at javax.swing.text.JTextComponent$MutableCaretEvent.stateChanged(JTextComponent.java:4409)
	at javax.swing.text.DefaultCaret.fireStateChanged(DefaultCaret.java:782)
	at com.apple.laf.AquaCaret.fireStateChanged(AquaCaret.java:56)
	at javax.swing.text.DefaultCaret.changeCaretPosition(DefaultCaret.java:1257)
	at javax.swing.text.DefaultCaret.handleSetDot(DefaultCaret.java:1153)
	at javax.swing.text.DefaultCaret.setDot(DefaultCaret.java:1134)
	at javax.swing.text.DefaultCaret$Handler.removeUpdate(DefaultCaret.java:1777)
	at javax.swing.text.AbstractDocument.fireRemoveUpdate(AbstractDocument.java:243)
	at javax.swing.text.AbstractDocument.handleRemove(AbstractDocument.java:608)
	at javax.swing.text.AbstractDocument.remove(AbstractDocument.java:576)
	at javax.swing.JEditorPane.setText(JEditorPane.java:1493)
	at org.openide.WizardDescriptor$WizardPanel.prepareMessage(WizardDescriptor.java:2643)


and the broken html also makes problems when user mouse-overs the error notification:
java.lang.ArrayIndexOutOfBoundsException: 0
   at javax.swing.text.BoxView.getViewAtPoint(BoxView.java:655)
   at javax.swing.text.CompositeView.viewToModel(CompositeView.java:406)
   at javax.swing.text.BoxView.viewToModel(BoxView.java:486)
   at javax.swing.plaf.basic.BasicTextUI$RootView.viewToModel(BasicTextUI.java:1541)
   at javax.swing.plaf.basic.BasicTextUI.viewToModel(BasicTextUI.java:1090)
   at javax.swing.text.html.HTMLEditorKit$LinkController.mouseMoved(HTMLEditorKit.java:665)


if this problem is reproducible, i recommend checking the error message for broken html fragments and/or escaping special html characters in it.

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