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 174634 - StringIndexOutOfBoundsException: String index out of range: 55774
Summary: StringIndexOutOfBoundsException: String index out of range: 55774
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Pisl
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-15 12:10 UTC by Erno Mononen
Modified: 2009-11-16 03:19 UTC (History)
14 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 159902


Attachments
stacktrace (1.98 KB, text/plain)
2009-10-15 12:10 UTC, Erno Mononen
Details
stacktrace (1.98 KB, text/plain)
2009-10-15 14:17 UTC, Maksim Khramov
Details
stacktrace (1.98 KB, text/plain)
2009-10-23 20:14 UTC, Exceptions Reporter
Details
stacktrace (1.98 KB, text/plain)
2009-10-29 17:33 UTC, Filip Zamboj
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erno Mononen 2009-10-15 12:10:08 UTC
Build: NetBeans IDE Dev (Build 091008)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Linux, 2.6.27-14-generic, amd64

User Comments:
emononen: Opened jquery-1.2.6.min.js



Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: 55774
        at java.lang.String.charAt(String.java:687)
        at org.netbeans.modules.javascript.editing.JsAnalyzer.folds(JsAnalyzer.java:220)
        at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask.addTree(GsfFoldManager.java:496)
        at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask.scan(GsfFoldManager.java:492)
        at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask.access$200(GsfFoldManager.java:299)
        at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask$1.run(GsfFoldManager.java:395)
Comment 1 Erno Mononen 2009-10-15 12:10:13 UTC
Created attachment 89519 [details]
stacktrace
Comment 2 Erno Mononen 2009-10-15 12:11:32 UTC
Seems to be reliably reproducible with the mentioned file.
Comment 3 Maksim Khramov 2009-10-15 14:17:24 UTC
Build: NetBeans IDE Dev (Build nbms-and-javadoc-4054-on-091007)
VM: Java HotSpot(TM) Client VM, 14.1-b02, Java(TM) Platform, Standard Edition for Business, 1.6.0_15-b03
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: 2258
        at java.lang.String.charAt(String.java:686)
        at org.netbeans.modules.javascript.editing.JsAnalyzer.folds(JsAnalyzer.java:220)
        at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask.addTree(GsfFoldManager.java:496)
        at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask.scan(GsfFoldManager.java:492)
        at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask.access$200(GsfFoldManager.java:299)
        at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask$1.run(GsfFoldManager.java:395)
Comment 4 Maksim Khramov 2009-10-15 14:17:28 UTC
Created attachment 89540 [details]
stacktrace
Comment 5 Exceptions Reporter 2009-10-23 09:19:39 UTC
This issue already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=159902
Comment 6 Exceptions Reporter 2009-10-23 14:38:09 UTC
This issue already has 6 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=159902
Comment 7 Exceptions Reporter 2009-10-23 20:14:13 UTC
Build: NetBeans IDE 6.8 Beta (Build 200910212001)
VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Windows XP, 5.1, x86

User Comments: 
Creating a new javascript file with contents...

/**
 * Lists: main
 */

var Lists = {};

Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: 39
        at java.lang.String.charAt(String.java:686)
        at org.netbeans.modules.javascript.editing.JsAnalyzer.folds(JsAnalyzer.java:220)
        at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask.addTree(GsfFoldManager.java:496)
        at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask.scan(GsfFoldManager.java:492)
        at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask.access$200(GsfFoldManager.java:299)
        at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask$1.run(GsfFoldManager.java:395)
Comment 8 Exceptions Reporter 2009-10-23 20:14:17 UTC
Created attachment 90025 [details]
stacktrace
Comment 9 Exceptions Reporter 2009-10-23 20:14:26 UTC
This issue already has 7 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=159902
Comment 10 Exceptions Reporter 2009-10-24 18:11:49 UTC
This issue already has 9 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=159902
Comment 11 Exceptions Reporter 2009-10-24 23:46:51 UTC
This issue already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=159902
Comment 12 Filip Zamboj 2009-10-29 17:33:41 UTC
Build: NetBeans IDE Dev (Build 091029)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Linux, 2.6.28-16-generic, amd64

User Comments: 
opened jquery file

Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: 57254
        at java.lang.String.charAt(String.java:686)
        at org.netbeans.modules.javascript.editing.JsAnalyzer.folds(JsAnalyzer.java:220)
        at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask.addTree(GsfFoldManager.java:496)
        at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask.scan(GsfFoldManager.java:492)
        at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask.access$200(GsfFoldManager.java:299)
        at org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask$1.run(GsfFoldManager.java:395)
Comment 13 Filip Zamboj 2009-10-29 17:33:45 UTC
Created attachment 90225 [details]
stacktrace
Comment 14 Petr Pisl 2009-11-13 03:15:37 UTC
Fixed in web-main
Comment 15 Quality Engineering 2009-11-16 03:19:30 UTC
Integrated into 'main-golden', will be available in build *200911160201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/df7a6e376b41
User: Petr Pisl <ppisl@netbeans.org>
Log: issue #174634 -   StringIndexOutOfBoundsException: String index out of range: 55774