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 244878 - A java.lang.ArrayIndexOutOfBoundsException exception has occurred
Summary: A java.lang.ArrayIndexOutOfBoundsException exception has occurred
Status: RESOLVED DUPLICATE of bug 246957
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-04 06:02 UTC by jijesh
Modified: 2015-07-23 16:33 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 jijesh 2014-06-04 06:02:18 UTC

    
Comment 1 Tomas Mysik 2014-06-04 06:14:47 UTC
We need a stacktrace... Thanks.
Comment 2 sforrest 2015-01-14 15:31:58 UTC
I don't know if this is the same bug, php remote project, version = nightly build 20150106001.  This is my first time trying out NetBeans and this exception comes up only editing php, not html, js, cpp, h files and it pops up everytime the mouse stops moving over the document.  I had to use the nightly build to get past issues in remote c++.

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
	at java.lang.AbstractStringBuilder.substring(AbstractStringBuilder.java:868)
	at java.lang.StringBuilder.substring(StringBuilder.java:72)
	at java.lang.AbstractStringBuilder.subSequence(AbstractStringBuilder.java:849)
	at java.lang.StringBuilder.subSequence(StringBuilder.java:72)
	at org.netbeans.modules.html.editor.hints.Nesting.getSPIHintFixes(Nesting.java:130)
	at org.netbeans.modules.html.editor.hints.Nesting.getExtraHintFixes(Nesting.java:109)
	at org.netbeans.modules.html.editor.hints.HtmlValidatorRule.run(HtmlValidatorRule.java:92)
	at org.netbeans.modules.html.editor.hints.HtmlHintsProvider.computeErrors(HtmlHintsProvider.java:319)
	at org.netbeans.modules.csl.hints.GsfHintsProvider.processProviderErrors(GsfHintsProvider.java:321)
	at org.netbeans.modules.csl.hints.GsfHintsProvider.processErrors(GsfHintsProvider.java:407)
	at org.netbeans.modules.csl.hints.GsfHintsProvider.processErrorsRecursive(GsfHintsProvider.java:383)
	at org.netbeans.modules.csl.hints.GsfHintsProvider.processErrorsRecursive(GsfHintsProvider.java:378)
	at org.netbeans.modules.csl.hints.GsfHintsProvider.refreshErrors(GsfHintsProvider.java:351)
	at org.netbeans.modules.csl.hints.GsfHintsProvider.access$000(GsfHintsProvider.java:101)
	at org.netbeans.modules.csl.hints.GsfHintsProvider$2.run(GsfHintsProvider.java:434)
	at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:603)
	at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:153)
	at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:137)
	at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:203)
	at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:200)
	at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:176)
	at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:360)
	at org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:141)
	at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:87)
	at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:200)
Caused: org.netbeans.modules.parsing.spi.ParseException
	at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:208)
	at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:104)
[catch] at org.netbeans.modules.csl.hints.GsfHintsProvider.run(GsfHintsProvider.java:432)
	at org.netbeans.modules.csl.hints.GsfHintsProvider.run(GsfHintsProvider.java:101)
	at org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:578)
	at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:750)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1425)
	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:59)
	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:294)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2038)
Comment 3 Tomas Mysik 2015-01-19 07:59:27 UTC
> at org.netbeans.modules.html.editor.hints.Nesting.getSPIHintFixes(Nesting.java:130)

Reassigning to HTML editor, please evaluate. Thanks.
Comment 4 Milutin Kristofic 2015-07-23 16:33:50 UTC
This was already fixed in Bug #246957

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