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.
After a cvs checkout to update a local cvs directory There was an ArrayIndexOutOfBoundsException. Now every time netbeans receives input focus this exception is thrown as well. The exception dialog box asks to include ide.log as an attachment, which I would like to do, but there seems to be no way to attach said document to this issue; and putting >250K bytes in this dialog does not seem like a good idea. Here's the stacktrace from 'more info' in the dialog box: java.lang.ArrayIndexOutOfBoundsException: -1 at org.netbeans.lib.editor.view.GapObjectArray.getItem(GapObjectArray.java:78) at org.netbeans.lib.editor.view.GapBoxViewChildren.getChild(GapBoxViewChildren.java:189) at org.netbeans.lib.editor.view.GapBoxView.getChild(GapBoxView.java:1574) at org.netbeans.lib.editor.view.GapBoxView.getView(GapBoxView.java:458) at org.netbeans.editor.CodeFoldingSideBar.collectPaintInfos(CodeFoldingSideBar.java:335) at org.netbeans.editor.CodeFoldingSideBar.getPaintInfo(CodeFoldingSideBar.java:380) at org.netbeans.editor.CodeFoldingSideBar.paintComponent(CodeFoldingSideBar.java:450) at javax.swing.JComponent.paint(JComponent.java:977) at javax.swing.JComponent.paintChildren(JComponent.java:814) at javax.swing.JComponent.paint(JComponent.java:986) at javax.swing.JComponent.paintChildren(JComponent.java:814) at javax.swing.JComponent.paint(JComponent.java:986) at javax.swing.JViewport.paint(JViewport.java:722) at javax.swing.JComponent.paintChildren(JComponent.java:814) at javax.swing.JComponent.paint(JComponent.java:986) at javax.swing.JComponent.paintChildren(JComponent.java:814) at javax.swing.JComponent.paint(JComponent.java:986) at javax.swing.JComponent.paintChildren(JComponent.java:814) at javax.swing.JComponent.paint(JComponent.java:986) at javax.swing.JComponent.paintChildren(JComponent.java:814) at javax.swing.JComponent.paint(JComponent.java:986) at javax.swing.JComponent.paintChildren(JComponent.java:814) at javax.swing.JComponent.paint(JComponent.java:986) at javax.swing.JComponent.paintChildren(JComponent.java:814) at javax.swing.JComponent.paint(JComponent.java:986) at javax.swing.JComponent.paintChildren(JComponent.java:814) at javax.swing.JComponent.paint(JComponent.java:986) at javax.swing.JComponent.paintChildren(JComponent.java:814) at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1021) at javax.swing.JComponent.paint(JComponent.java:986) at javax.swing.JComponent.paintChildren(JComponent.java:814) at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1021) at javax.swing.JComponent.paint(JComponent.java:986) at javax.swing.JComponent.paintChildren(JComponent.java:814) at javax.swing.JComponent.paint(JComponent.java:986) at javax.swing.JComponent.paintChildren(JComponent.java:814) at javax.swing.JComponent.paint(JComponent.java:986) at javax.swing.JComponent.paintChildren(JComponent.java:814) at javax.swing.JComponent.paint(JComponent.java:986) at javax.swing.JLayeredPane.paint(JLayeredPane.java:559) at javax.swing.JComponent.paintChildren(JComponent.java:814) at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4882) at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4828) at javax.swing.JComponent.paint(JComponent.java:967) at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:21) at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60) at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97) at java.awt.Container.paint(Container.java:1704) at sun.awt.RepaintArea.paintComponent(RepaintArea.java:248) at sun.awt.X11.XRepaintArea.paintComponent(XRepaintArea.java:56) at sun.awt.RepaintArea.paint(RepaintArea.java:224) at sun.awt.X11.XComponentPeer.handleEvent(XComponentPeer.java:632) at java.awt.Component.dispatchEventImpl(Component.java:4007) at java.awt.Container.dispatchEventImpl(Container.java:2019) at java.awt.Window.dispatchEventImpl(Window.java:1757) at java.awt.Component.dispatchEvent(Component.java:3779) [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
It seems the "<<<<<", "=====" and ">>>>>" characters inserted into the code by a cvs conflict causes the code folds to malfunction. Manually removing these characters with an external editor made the problems go away.
Reassigning for evaluation. Attachment can be attached using 'Create a new attachment' link.
This is actually a dup of issue 41383. We already work on the fix. It should be possible to workaround the problem by closing the actual file opened in the editor and then opening the file again. So this should not be a P1 issue. Anyway I agree that the problem is annoying so I have increased the priority of the original issue from P3 to P2. *** This issue has been marked as a duplicate of 41383 ***
Just to be completely accurate: closing and reopening netbeans as a whole did not resolve this issue; I did not test closing and reopening only the offending file.
Yes, I've seen the issue as well after restarting of the IDE. Reopening of the individual problematic file could make the problem to go away in the running IDE. Anyway could you please try to apply the binary patch provided in the issue 41383? If you would verify that the patch fixes the issue we could then resolve the issue. Thanks.
Sorry, I can't seem to reproduce the original problem :-(
Did you already apply the binary patch or you can't reproduce even with the original unpatched build?
Can't reproduce problem on rc2 without binary patch.
Aha. BTW my experience with the binary patch is that I can no longer reproduce the problem once I have applied the binary patch (right now it's more than week).