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 41684 - ArrayIndexOutOfBoundsException after cvs checkout
Summary: ArrayIndexOutOfBoundsException after cvs checkout
Status: RESOLVED DUPLICATE of bug 41383
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-04 12:13 UTC by leomekenkamp
Modified: 2007-11-05 13:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description leomekenkamp 2004-04-04 12:13:17 UTC
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)
Comment 1 leomekenkamp 2004-04-04 12:28:46 UTC
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.
Comment 2 Milan Kubec 2004-04-05 09:43:11 UTC
Reassigning for evaluation. 

Attachment can be attached using 'Create a new attachment' link.
Comment 3 Miloslav Metelka 2004-04-05 13:41:14 UTC
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 ***
Comment 4 leomekenkamp 2004-04-05 13:54:18 UTC
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.
Comment 5 Miloslav Metelka 2004-04-07 13:43:59 UTC
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.
Comment 6 leomekenkamp 2004-04-07 19:58:16 UTC
Sorry, I can't seem to reproduce the original problem :-(
Comment 7 Miloslav Metelka 2004-04-09 14:40:11 UTC
Did you already apply the binary patch or you can't reproduce even
with the original unpatched build?
Comment 8 leomekenkamp 2004-04-10 07:57:58 UTC
Can't reproduce problem on rc2 without binary patch.
Comment 9 Miloslav Metelka 2004-04-14 15:39:40 UTC
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).