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.
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)
Created attachment 80729 [details] stacktrace
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)
Created attachment 81888 [details] stacktrace
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)
Created attachment 82157 [details] stacktrace
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)
Created attachment 82158 [details] stacktrace
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.
I will investigate.
The problem seems to be caused be an extra newline token in the token sequence. Not sure yet how it gets there.
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.
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
*** Issue 165294 has been marked as a duplicate of this issue. ***
I think this is fully fixed now, no new exception reports since the fix was integrated.