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 189576 - IndexOutOfBoundsException: Invalid index=6; foldCount=6 component=10894526 [root-fold] E <0,1372>, hash=0x1367658, [0, 1372] {0, 1372} [0]: [javadoc] E0 <39,134>, desc='...', hash=0x1331b54, [42,
Summary: IndexOutOfBoundsException: Invalid index=6; foldCount=6 component=10894526 [r...
Status: RESOLVED WORKSFORME
Alias: None
Product: editor
Classification: Unclassified
Component: Code folding (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-17 08:38 UTC by dragosani
Modified: 2011-09-06 14:06 UTC (History)
15 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 169955


Attachments
stacktrace (2.86 KB, text/plain)
2010-08-17 08:38 UTC, dragosani
Details
stacktrace (2.86 KB, text/plain)
2010-12-21 10:30 UTC, rohitbrai
Details
stacktrace (2.86 KB, text/plain)
2010-12-22 18:42 UTC, stefan79
Details
stacktrace (2.86 KB, text/plain)
2010-12-29 09:45 UTC, rohitbrai
Details
stacktrace (2.97 KB, text/plain)
2011-02-14 12:43 UTC, Erno Mononen
Details
stacktrace (3.08 KB, text/plain)
2011-02-17 09:06 UTC, dds.dhawal
Details
stacktrace (3.20 KB, text/plain)
2011-02-20 07:13 UTC, dds.dhawal
Details
stacktrace (3.08 KB, text/plain)
2011-03-06 17:34 UTC, gauravmurkute
Details
stacktrace (2.86 KB, text/plain)
2011-03-16 19:43 UTC, gauravmurkute
Details
stacktrace (2.86 KB, text/plain)
2011-03-27 17:15 UTC, gauravmurkute
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dragosani 2010-08-17 08:38:55 UTC
Build: NetBeans IDE 6.9.1 (Build 201008030030)
VM: Java HotSpot(TM) Client VM, 17.0-b16, Java(TM) SE Runtime Environment, 1.6.0_21-b06
OS: Windows XP

User Comments:
GUEST: typed in a jsp comment

GUEST: Editing an inline javascript function in a JSP page

GUEST: started typing the jsp comment tag: <%--




Stacktrace: 
java.lang.IndexOutOfBoundsException: Invalid index=6; foldCount=6
component=10894526
[root-fold] E <0,1372>, hash=0x1367658, [0, 1372] {0, 1372}
    [0]: [javadoc] E0 <39,134>, desc='...', hash=0x1331b54, [42, 132] {42, 132}
    [1]: [tag] E0 <464,1372>, desc='<.../>', hash=0x109872c, [464, 1372] {465, 1371}
        [0]: [tag] E0 <494,776>, desc='<.../>', hash=0x58cb26, [494, 776] {495, 775}
        [1]: [tag] E0 <832,905>, desc='<.../>', hash=0x5cae45, [832, 905] {833, 904}
        [2]: [tag] E0 <918,987>, desc='<.../>', hash=0xafb5e7, [918, 987] {919, 986}
        [3]: [tag] E0 <1000,1070>, desc='<.../>', hash=0x1a852ba, [1000, 1070] {1001, 1069}
        [4]: [tag] E0 <1083,1157>, desc='<.../>', hash=0xebfac3, [1083, 1157] {1084, 1156}
        [5]: [javadoc] E0 <1252,1372>, desc='...', hash=0x1c27df1, [1252, 1370] {1252, 1370}

BLOCKED
    [tag] E0 <1170,1372>, desc='<.../>', hash=0x3e994c, [1170, 1372] {1171, 1371} blocked-by [jsp-tag] E1 <135,1371>, desc='<jsp:root>...</jsp:root>', hash=0x131d76d, [135, 1
   at org.netbeans.modules.editor.fold.FoldChildren.getFold(FoldChildren.java:118)
   at org.netbeans.api.editor.fold.Fold.getFold(Fold.java:324)
   at org.netbeans.api.editor.fold.Fold.replaceByChildren(Fold.java:375)
   at org.netbeans.api.editor.fold.FoldHierarchy$ApiPackageAccessorImpl.foldReplaceByChildren(FoldHierarchy.java:382)
   at org.netbeans.modules.editor.fold.FoldHierarchyTransactionImpl.removeFoldFromHierarchy(FoldHierarchyTransactionImpl.java:944)
   at org.netbeans.modules.editor.fold.FoldHierarchyTransactionImpl.removeOverlap(FoldHierarchyTransactionImpl.java:934)
Comment 1 dragosani 2010-08-17 08:38:59 UTC
Created attachment 101437 [details]
stacktrace
Comment 2 rohitbrai 2010-12-21 10:30:18 UTC
Created attachment 104342 [details]
stacktrace
Comment 3 stefan79 2010-12-22 18:42:27 UTC
Created attachment 104406 [details]
stacktrace

Exception occured while editing on a jsp-file.
Comment 4 rohitbrai 2010-12-29 09:45:57 UTC
Created attachment 104586 [details]
stacktrace
Comment 5 Erno Mononen 2011-02-14 12:43:19 UTC
Created attachment 105974 [details]
stacktrace

Editing a jsp page
Comment 6 dds.dhawal 2011-02-17 09:06:35 UTC
Created attachment 106102 [details]
stacktrace
Comment 7 dds.dhawal 2011-02-20 07:13:20 UTC
Created attachment 106208 [details]
stacktrace

just opened scriplet tag...
Comment 8 gauravmurkute 2011-03-06 17:34:23 UTC
Created attachment 106767 [details]
stacktrace
Comment 9 gauravmurkute 2011-03-16 19:43:08 UTC
Created attachment 107062 [details]
stacktrace
Comment 10 gauravmurkute 2011-03-27 17:15:59 UTC
Created attachment 107314 [details]
stacktrace
Comment 11 Marian Mirilovic 2011-08-17 10:19:27 UTC
119 dups ... reported also for 7.0.1
Comment 12 Svata Dedic 2011-09-06 14:06:38 UTC
Cannot reproduce in dev build 20110903; tried:
* editing inline JSTL expressions, 
* JSTL expressions in tag attributes, 
* adding closed or unclosed HTML and JSP comments
* some small scriptlets
* <%= scriptlet

no exception happened, sadly. It would be great to have a precise text whose modification will produce the error.