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 163434 - [67cat] ArrayIndexOutOfBoundsException: offset=955, length=1, snapshot-length=700
Summary: [67cat] ArrayIndexOutOfBoundsException: offset=955, length=1, snapshot-length...
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: YAML (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Erno Mononen
URL: http://statistics.netbeans.org/except...
Keywords:
: 165294 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-22 22:43 UTC by esmithbss
Modified: 2009-07-17 10:45 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 149980


Attachments
stacktrace (1.14 KB, text/plain)
2009-04-22 22:43 UTC, esmithbss
Details
stacktrace (1.14 KB, text/plain)
2009-05-11 13:19 UTC, Erno Mononen
Details
stacktrace (2.81 KB, text/plain)
2009-05-14 22:05 UTC, esmithbss
Details
stacktrace (1.14 KB, text/plain)
2009-05-14 22:13 UTC, esmithbss
Details

Note You need to log in before you can comment on or make changes to this bug.
Description esmithbss 2009-04-22 22:43:52 UTC
Build: NetBeans IDE Dev (Build 200904210201)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Linux, 2.6.27-14-generic, i386

User Comments:
esmithbss: Copying entire contents of a database.yml file from one RoR project to another RoR project.

File cannot be released, but it uses a jdbc connection and the driver is not yet installed.



Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: offset=955, length=1, snapshot-length=700
        at org.netbeans.modules.parsing.api.Snapshot.create(Snapshot.java:110)
        at org.netbeans.modules.languages.yaml.ruby.RubyEmbeddingProvider.translate(RubyEmbeddingProvider.java:153)
        at org.netbeans.modules.languages.yaml.ruby.RubyEmbeddingProvider.translate(RubyEmbeddingProvider.java:107)
        at org.netbeans.modules.languages.yaml.ruby.RubyEmbeddingProvider.getEmbeddings(RubyEmbeddingProvider.java:72)
        at org.netbeans.modules.parsing.impl.SourceCache.refresh(SourceCache.java:268)
        at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:651)
Comment 1 esmithbss 2009-04-22 22:43:58 UTC
Created attachment 80729 [details]
stacktrace
Comment 2 Erno Mononen 2009-05-11 13:19:06 UTC
Build: NetBeans IDE Dev (Build 090507)
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-11-generic, amd64

User Comments: 
Editing a yaml file.

Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: offset=327, length=1, snapshot-length=327
        at org.netbeans.modules.parsing.api.Snapshot.create(Snapshot.java:110)
        at org.netbeans.modules.languages.yaml.ruby.RubyEmbeddingProvider.translate(RubyEmbeddingProvider.java:153)
        at org.netbeans.modules.languages.yaml.ruby.RubyEmbeddingProvider.translate(RubyEmbeddingProvider.java:107)
        at org.netbeans.modules.languages.yaml.ruby.RubyEmbeddingProvider.getEmbeddings(RubyEmbeddingProvider.java:72)
        at org.netbeans.modules.parsing.impl.SourceCache.refresh(SourceCache.java:268)
        at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:651)
Comment 3 Erno Mononen 2009-05-11 13:19:24 UTC
Created attachment 81888 [details]
stacktrace
Comment 4 esmithbss 2009-05-14 22:05:43 UTC
Build: NetBeans IDE Dev (Build 200905140201)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Windows XP, 5.1, x86

User Comments: 
Creating a new RoR Project

Stacktrace: 
org.netbeans.modules.parsing.spi.ParseException
        at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:191)
        at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:99)
        at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.indexEmbedding(RepositoryUpdater.java:1106)
        at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.index(RepositoryUpdater.java:1029)
        at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$RootsWork.scanSource(RepositoryUpdater.java:1804)
        at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$RootsWork.scanSources(RepositoryUpdater.java:1732)
Comment 5 esmithbss 2009-05-14 22:05:53 UTC
Created attachment 82157 [details]
stacktrace
Comment 6 esmithbss 2009-05-14 22:13:42 UTC
Build: NetBeans IDE Dev (Build 200905140201)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Windows XP, 5.1, x86

User Comments: 
Switching Between 2 RoR Projects

Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: offset=1129, length=1, snapshot-length=1129
        at org.netbeans.modules.parsing.api.Snapshot.create(Snapshot.java:110)
        at org.netbeans.modules.languages.yaml.ruby.RubyEmbeddingProvider.translate(RubyEmbeddingProvider.java:153)
        at org.netbeans.modules.languages.yaml.ruby.RubyEmbeddingProvider.translate(RubyEmbeddingProvider.java:107)
        at org.netbeans.modules.languages.yaml.ruby.RubyEmbeddingProvider.getEmbeddings(RubyEmbeddingProvider.java:72)
        at org.netbeans.modules.parsing.impl.SourceCache.refresh(SourceCache.java:269)
        at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:651)
Comment 7 esmithbss 2009-05-14 22:13:45 UTC
Created attachment 82158 [details]
stacktrace
Comment 8 esmithbss 2009-05-14 22:17:31 UTC
This just became an infinite succession of Array Index Out Of Bounds Errors when I tried to open my database.yml file
after closing one of my two open RoR Projects.
Comment 9 Erno Mononen 2009-05-15 07:20:57 UTC
I will investigate.
Comment 10 Erno Mononen 2009-05-15 14:36:04 UTC
The problem seems to be caused be an extra newline token in the token sequence. Not sure yet how it gets there.
Comment 11 Erno Mononen 2009-05-15 15:39:01 UTC
Fixed in c93e4aa90772 (ruby-main), the fix for #159502 introduced an extra newline token that was causing the P1 aspect 
of the problem (you'd get into this exception loop even w/ an empty yaml file). The original exception (i.e. the first 
stack trace in this issue) is caused by something else though; so I'm leaving this open for further investagation but 
downgrading back to P3.
Comment 12 Quality Engineering 2009-05-16 08:57:20 UTC
Integrated into 'main-golden', will be available in build *200905160201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/c93e4aa90772
User: Erno Mononen <emononen@netbeans.org>
Log: #163434: [67cat] ArrayIndexOutOfBoundsException: offset=955, length=1, snapshot-length=700
Comment 13 Vitezslav Stejskal 2009-05-18 10:48:31 UTC
*** Issue 165294 has been marked as a duplicate of this issue. ***
Comment 14 Erno Mononen 2009-07-17 10:45:29 UTC
I think this is fully fixed now, no new exception reports since the fix was integrated.