Hi,

Recently my boss asked me set up a jasmine testing environment for the
project, which was built on jruby 1.5.3 and rails 2.3.

Our development is on Windows (I can't change this...) and when I try
to "jruby -S gem install jasmine", it gives java exception as below. I
also tried to run the command "jruby -X+C -S gem install jasmine", it
throws the same exception:

null:-2:in `arraycopy': java.lang.ArrayIndexOutOfBoundsException
from DefaultResolver.java:111:in `makeTime'
from DefaultResolver.java:277:in `create'
from DefaultResolver.java:317:in `handleScalar'
from DefaultResolver.java:435:in `orgHandler'
from DefaultResolver.java:455:in `node_import'
from org/yecht/ruby/DefaultResolver$s_method_1_0$RUBYINVOKER
$node_import.gen:65535:in `call'
from CachingCallSite.java:146:in `call'
from RubyLoadHandler.java:40:in `handle'
from Parser.java:300:in `addNode'
from DefaultYAMLParser.java:676:in `yyparse'
from Parser.java:290:in `yechtparse'
from Parser.java:284:in `parse'
from YParser.java:152:in `load'
from org/yecht/ruby/YParser$s_method_0_1$RUBYINVOKER$load.gen:
65535:in
`call'
from JavaMethod.java:630:in `call'
from DynamicMethod.java:186:in `call'
from CachingCallSite.java:309:in `cacheAndCall'
from CachingCallSite.java:148:in `call'
from CallOneArgNode.java:57:in `interpret'
from LocalAsgnNode.java:123:in `interpret'
from NewlineNode.java:104:in `interpret'
from InterpretedMethod.java:180:in `call'
from DefaultMethod.java:172:in `call'
from CachingCallSite.java:309:in `cacheAndCall'
from CachingCallSite.java:148:in `call'
from specification.rb:480:in `method__27$RUBY$from_yaml'
from c_3a__jruby_minus_1_dot_5_dot_3_lib_ruby_site_ruby_
$1_dot_8_rubygems_specificationInvokermethod__27$RUBY
$from_yamlFixed1#from_yaml:65535:in `call'
from c_3a__jruby_minus_1_dot_5_dot_3_lib_ruby_site_ruby_
$1_dot_8_rubygems_specificationInvokermethod__27$RUBY
$from_yamlFixed1#from_yaml:65535:in `call'
from CachingCallSite.java:309:in `cacheAndCall'
from CachingCallSite.java:148:in `call'
from tar_input.rb:183:in `method__14$RUBY$load_gemspec'
from c_3a__jruby_minus_1_dot_5_dot_3_lib_ruby_site_ruby_
$1_dot_8_rubygems_package_tar_inputInvokermethod__14$RUBY
$load_gemspecFixed1#load_gemspec:65535:in `call'
from c_3a__jruby_minus_1_dot_5_dot_3_lib_ruby_site_ruby_
$1_dot_8_rubygems_package_tar_inputInvokermethod__14$RUBY
$load_gemspecFixed1#load_gemspec:65535:in `call'
from CachingCallSite.java:309:in `cacheAndCall'
from CachingCallSite.java:148:in `call'
from tar_input.rb:51:in `ensure_2$RUBY$__ensure___4'
from tar_input.rb:38:in `block_0$RUBY$__block__'
from null:65535:in `call'
from CompiledBlock.java:115:in `yield'
from CompiledBlock.java:98:in `yield'
from Block.java:194:in `yield'
from tar_reader.rb:63:in `block_0$RUBY$__block__'
from null:65535:in `call'
from CompiledBlock.java:115:in `yield'
from CompiledBlock.java:98:in `yield'
from Block.java:194:in `yield'
from RubyKernel.java:1251:in `loop_1_9'
from org/jruby/RubyKernel$s_method_0_0$RUBYFRAMEDINVOKER
$loop_1_9.gen:65535:in `call'
from CachingCallSite.java:299:in `cacheAndCall'
from CachingCallSite.java:117:in `callBlock'
from CachingCallSite.java:132:in `callIter'
from tar_reader.rb:54:in `method__6$RUBY$each'
from c_3a__jruby_minus_1_dot_5_dot_3_lib_ruby_site_ruby_
$1_dot_8_rubygems_package_tar_readerInvokermethod__6$RUBY
$eachFixed0#each:65535:in `call'
from CachingCallSite.java:299:in `cacheAndCall'
from CachingCallSite.java:117:in `callBlock'
from CachingCallSite.java:132:in `callIter'
from tar_input.rb:32:in `method__3$RUBY$initialize'
from c_3a__jruby_minus_1_dot_5_dot_3_lib_ruby_site_ruby_
$1_dot_8_rubygems_package_tar_inputInvokermethod__3$RUBY
$initializeOpt#initialize:65535:in `call'
from DynamicMethod.java:198:in `call'
from CachingCallSite.java:339:in `cacheAndCall'
from CachingCallSite.java:197:in `callBlock'
from CachingCallSite.java:202:in `call'
from RubyClass.java:815:in `call'
from DynamicMethod.java:194:in `call'
from WrapperMethod.java:62:in `call'
from CachingCallSite.java:329:in `cacheAndCall'
from CachingCallSite.java:188:in `call'
from tar_input.rb:17:in `ensure_1$RUBY$__ensure___2'
from tar_input.rb:-1:in `method__1$RUBY$open'
from c_3a__jruby_minus_1_dot_5_dot_3_lib_ruby_site_ruby_
$1_dot_8_rubygems_package_tar_inputInvokermethod__1$RUBY$openOpt#open:
65535:in `call'
from DynamicMethod.java:198:in `call'
from CachingCallSite.java:339:in `cacheAndCall'
from CachingCallSite.java:197:in `callBlock'
from CachingCallSite.java:202:in `call'
from package.rb:55:in `method__10$RUBY$open'
from c_3a__jruby_minus_1_dot_5_dot_3_lib_ruby_site_ruby_
$1_dot_8_rubygems_packageInvokermethod__10$RUBY$openOpt#open:65535:in
`call'
from DynamicMethod.java:206:in `call'
from CachingCallSite.java:359:in `cacheAndCall'
from CachingCallSite.java:237:in `callBlock'
from CachingCallSite.java:252:in `callIter'
from format.rb:63:in `method__3$RUBY$from_io'
from c_3a__jruby_minus_1_dot_5_dot_3_lib_ruby_site_ruby_
$1_dot_8_rubygems_formatInvokermethod__3$RUBY$from_ioOpt#from_io:
65535:in `call'
from DynamicMethod.java:206:in `call'
from CompiledMethod.java:228:in `call'
from CachingCallSite.java:349:in `cacheAndCall'
from CachingCallSite.java:228:in `call'
from format.rb:51:in `block_0$RUBY$__block__'
from null:65535:in `call'
from CompiledBlock.java:115:in `yield'
from CompiledBlock.java:98:in `yield'
from Block.java:194:in `yield'
from RubyIO.java:1107:in `open'
from RubyKernel.java:283:in `open'
from org/jruby/RubyKernel$s_method_0_2$RUBYFRAMEDINVOKER
$open.gen:65535:in `call'
from DynamicMethod.java:198:in `call'
from CachingCallSite.java:339:in `cacheAndCall'
from CachingCallSite.java:197:in `callBlock'
from CachingCallSite.java:212:in `callIter'
from format.rb:50:in `method__2$RUBY$from_file_by_path'
from c_3a__jruby_minus_1_dot_5_dot_3_lib_ruby_site_ruby_
$1_dot_8_rubygems_formatInvokermethod__2$RUBY
$from_file_by_pathOpt#from_file_by_path:65535:in
`call'
from DynamicMethod.java:198:in `call'
from CompiledMethod.java:223:in `call'
from CachingCallSite.java:329:in `cacheAndCall'
from CachingCallSite.java:188:in `call'
from installer.rb:118:in `rescue_1$RUBY$__rescue___5'
from installer.rb:117:in `method__4$RUBY$initialize'
from c_3a__jruby_minus_1_dot_5_dot_3_lib_ruby_site_ruby_
$1_dot_8_rubygems_installerInvokermethod__4$RUBY
$initializeOpt#initialize:65535:in `call'
from DynamicMethod.java:198:in `call'
from CachingCallSite.java:339:in `cacheAndCall'
from CachingCallSite.java:197:in `callBlock'
from CachingCallSite.java:202:in `call'
from RubyClass.java:815:in `call'
from DynamicMethod.java:194:in `call'
from CachingCallSite.java:329:in `cacheAndCall'
from CachingCallSite.java:188:in `call'
from dependency_installer.rb:257:in `block_10$RUBY$__block__'
from null:65535:in `call'
from CompiledBlock.java:115:in `yield'
from CompiledBlock.java:98:in `yield'
from Block.java:194:in `yield'
from RubyArray.java:1630:in `eachCommon'
from RubyArray.java:1637:in `each'
from org/jruby/RubyArray$i_method_0_0$RUBYFRAMEDINVOKER
$each.gen:65535:in `call'
from CachingCallSite.java:299:in `cacheAndCall'
from CachingCallSite.java:117:in `callBlock'
from CachingCallSite.java:132:in `callIter'
from dependency_installer.rb:240:in `method__9$RUBY$install'
from c_3a__jruby_minus_1_dot_5_dot_3_lib_ruby_site_ruby_
$1_dot_8_rubygems_dependency_installerInvokermethod__9$RUBY
$installOpt#install:65535:in `call'
from DynamicMethod.java:198:in `call'
from CompiledMethod.java:223:in `call'
from CachingCallSite.java:329:in `cacheAndCall'
from CachingCallSite.java:188:in `call'
from install_command.rb:119:in `rescue_1$RUBY$__rescue___7'
from install_command.rb:117:in `block_0$RUBY$__block__'
from null:65535:in `call'
from CompiledBlock.java:115:in `yield'
from CompiledBlock.java:98:in `yield'
from Block.java:194:in `yield'
from RubyArray.java:1630:in `eachCommon'
from RubyArray.java:1637:in `each'
from org/jruby/RubyArray$i_method_0_0$RUBYFRAMEDINVOKER
$each.gen:65535:in `call'
from CachingCallSite.java:299:in `cacheAndCall'
from CachingCallSite.java:117:in `callBlock'
from CachingCallSite.java:132:in `callIter'
from install_command.rb:116:in `method__6$RUBY$execute'
from c_3a__jruby_minus_1_dot_5_dot_3_lib_ruby_site_ruby_
$1_dot_8_rubygems_commands_install_commandInvokermethod__6$RUBY
$executeFixed0#execute:65535:in `call'
from c_3a__jruby_minus_1_dot_5_dot_3_lib_ruby_site_ruby_
$1_dot_8_rubygems_commands_install_commandInvokermethod__6$RUBY
$executeFixed0#execute:65535:in `call'
from CachingCallSite.java:289:in `cacheAndCall'
from CachingCallSite.java:108:in `call'
from command.rb:258:in `method__21$RUBY$invoke'
from c_3a__jruby_minus_1_dot_5_dot_3_lib_ruby_site_ruby_
$1_dot_8_rubygems_commandInvokermethod__21$RUBY$invokeOpt#invoke:
65535:in `call'
from DynamicMethod.java:160:in `call'
from CachingCallSite.java:279:in `cacheAndCall'
from CachingCallSite.java:68:in `call'
from command_manager.rb:134:in `method__7$RUBY$process_args'
from c_3a__jruby_minus_1_dot_5_dot_3_lib_ruby_site_ruby_
$1_dot_8_rubygems_command_managerInvokermethod__7$RUBY
$process_argsFixed1#process_args:65535:in `call'
from c_3a__jruby_minus_1_dot_5_dot_3_lib_ruby_site_ruby_
$1_dot_8_rubygems_command_managerInvokermethod__7$RUBY
$process_argsFixed1#process_args:65535:in `call'
from CachingCallSite.java:309:in `cacheAndCall'
from CachingCallSite.java:148:in `call'
from command_manager.rb:104:in `method__6$RUBY$run'
from c_3a__jruby_minus_1_dot_5_dot_3_lib_ruby_site_ruby_
$1_dot_8_rubygems_command_managerInvokermethod__6$RUBY$runFixed1#run:
65535:in `call'
from c_3a__jruby_minus_1_dot_5_dot_3_lib_ruby_site_ruby_
$1_dot_8_rubygems_command_managerInvokermethod__6$RUBY$runFixed1#run:
65535:in `call'
from CachingCallSite.java:309:in `cacheAndCall'
from CachingCallSite.java:148:in `call'
from gem_runner.rb:58:in `method__2$RUBY$run'
from c_3a__jruby_minus_1_dot_5_dot_3_lib_ruby_site_ruby_
$1_dot_8_rubygems_gem_runnerInvokermethod__2$RUBY$runFixed1#run:
65535:in `call'
from c_3a__jruby_minus_1_dot_5_dot_3_lib_ruby_site_ruby_
$1_dot_8_rubygems_gem_runnerInvokermethod__2$RUBY$runFixed1#run:
65535:in `call'
from CachingCallSite.java:309:in `cacheAndCall'
from CachingCallSite.java:148:in `call'
from gem:24:in `rescue_1$RUBY$__rescue___0'
from gem:23:in `__file__'
from gem:-1:in `load'
from Ruby.java:686:in `runScript'
from Ruby.java:569:in `runNormally'
from Ruby.java:415:in `runFromMain'
from Main.java:286:in `run'
from Main.java:128:in `run'
from Main.java:97:in `main'

Anyone has experience working around this problem? Thanks a lot!

Regards,
Shane

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedNov 25, '11 at 5:21p
activeNov 25, '11 at 5:21p
posts1
users1
websiterubyonrails.org
irc#RubyOnRails

1 user in discussion

Shane: 1 post

People

Translate

site design / logo © 2021 Grokbase