Uploaded image for project: 'Aptana Studio'
  1. Aptana Studio
  2. APSTUD-3198

StringIndexOutOfBoundsException in JSFileIndexingParticipant.getText()

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Aptana Studio 3.0.4
    • Component/s: JS
    • Labels:
      None
    • Environment:

      Titanium Studio, build: 1.0.4.201108031226

      Description

      Found in the log file of a developer. local_webview.html attached. Marking as critical until we know it's benign.

       
      !ENTRY com.aptana.editor.html 4 0 2011-08-04 12:13:03.994
      !MESSAGE (Build 3.0.3.1312312167) [ERROR]  An error occurred while indexing local_webview.html
      !STACK 0
      java.lang.StringIndexOutOfBoundsException: String index out of range: 2315
      	at java.lang.String.substring(String.java:1934)
      	at com.aptana.editor.js.contentassist.index.JSFileIndexingParticipant.getText(JSFileIndexingParticipant.java:308)
      	at com.aptana.editor.js.contentassist.index.JSFileIndexingParticipant.processCommentNode(JSFileIndexingParticipant.java:266)
      	at com.aptana.editor.js.contentassist.index.JSFileIndexingParticipant.processComments(JSFileIndexingParticipant.java:256)
      	at com.aptana.editor.js.contentassist.index.JSFileIndexingParticipant.processParseResults(JSFileIndexingParticipant.java:196)
      	at com.aptana.editor.html.contentassist.index.HTMLFileIndexingParticipant.processHTMLSpecialNode(HTMLFileIndexingParticipant.java:136)
      	at com.aptana.editor.html.contentassist.index.HTMLFileIndexingParticipant.processNode(HTMLFileIndexingParticipant.java:152)
      	at com.aptana.editor.html.contentassist.index.HTMLFileIndexingParticipant.walkAST(HTMLFileIndexingParticipant.java:223)
      	at com.aptana.editor.html.contentassist.index.HTMLFileIndexingParticipant.indexFileStore(HTMLFileIndexingParticipant.java:261)
      	at com.aptana.index.core.AbstractFileIndexingParticipant.index(AbstractFileIndexingParticipant.java:139)
      	at com.aptana.index.core.IndexRequestJob.indexFileStores(IndexRequestJob.java:423)
      	at com.aptana.index.core.IndexContainerJob.run(IndexContainerJob.java:100)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
       
      !ENTRY com.aptana.editor.html 4 0 2011-08-04 12:13:07.297
      !MESSAGE (Build 3.0.3.1312312167) [ERROR]  An error occurred while indexing local_webview.html
      !STACK 0
      java.lang.StringIndexOutOfBoundsException: String index out of range: 2315
      	at java.lang.String.substring(String.java:1934)
      	at com.aptana.editor.js.contentassist.index.JSFileIndexingParticipant.getText(JSFileIndexingParticipant.java:308)
      	at com.aptana.editor.js.contentassist.index.JSFileIndexingParticipant.processCommentNode(JSFileIndexingParticipant.java:266)
      	at com.aptana.editor.js.contentassist.index.JSFileIndexingParticipant.processComments(JSFileIndexingParticipant.java:256)
      	at com.aptana.editor.js.contentassist.index.JSFileIndexingParticipant.processParseResults(JSFileIndexingParticipant.java:196)
      	at com.aptana.editor.html.contentassist.index.HTMLFileIndexingParticipant.processHTMLSpecialNode(HTMLFileIndexingParticipant.java:136)
      	at com.aptana.editor.html.contentassist.index.HTMLFileIndexingParticipant.processNode(HTMLFileIndexingParticipant.java:152)
      	at com.aptana.editor.html.contentassist.index.HTMLFileIndexingParticipant.walkAST(HTMLFileIndexingParticipant.java:223)
      	at com.aptana.editor.html.contentassist.index.HTMLFileIndexingParticipant.indexFileStore(HTMLFileIndexingParticipant.java:261)
      	at com.aptana.index.core.AbstractFileIndexingParticipant.index(AbstractFileIndexingParticipant.java:139)
      	at com.aptana.index.core.IndexRequestJob.indexFileStores(IndexRequestJob.java:423)
      	at com.aptana.index.core.IndexContainerJob.run(IndexContainerJob.java:100)
      	at com.aptana.core.build.UnifiedBuilder.fullBuild(UnifiedBuilder.java:206)
      	at com.aptana.core.build.UnifiedBuilder.build(UnifiedBuilder.java:115)
      	at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:629)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:172)
      	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:203)
      	at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258)
      	at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:311)
      	at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:343)
      	at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)
      	at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                klindsey Kevin Lindsey
                Reporter:
                ingo Ingo Muschenetz
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code