How to fix this jasmine install error

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:inmakeTime’
from DefaultResolver.java:277:in create' from DefaultResolver.java:317:inhandleScalar’
from DefaultResolver.java:435:in orgHandler' from DefaultResolver.java:455:innode_import’
from org/yecht/ruby/DefaultResolver$s_method_1_0$RUBYINVOKER
$node_import.gen:65535:in call' from CachingCallSite.java:146:incall’
from RubyLoadHandler.java:40:in handle' from Parser.java:300:inaddNode’
from DefaultYAMLParser.java:676:in yyparse' from Parser.java:290:inyechtparse’
from Parser.java:284:in parse' from YParser.java:152:inload’
from org/yecht/ruby/YParser$s_method_0_1$RUBYINVOKER$load.gen:
65535:in
call' from JavaMethod.java:630:incall’
from DynamicMethod.java:186:in call' from CachingCallSite.java:309:incacheAndCall’
from CachingCallSite.java:148:in call' from CallOneArgNode.java:57:ininterpret’
from LocalAsgnNode.java:123:in interpret' from NewlineNode.java:104:ininterpret’
from InterpretedMethod.java:180:in call' from DefaultMethod.java:172:incall’
from CachingCallSite.java:309:in cacheAndCall' from CachingCallSite.java:148:incall’
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:incall’
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:incacheAndCall’
from CachingCallSite.java:148:in call' from tar_input.rb:183:inmethod__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:incall’
from CachingCallSite.java:309:in cacheAndCall' from CachingCallSite.java:148:incall’
from tar_input.rb:51:in ensure_2$RUBY$__ensure___4' from tar_input.rb:38:inblock_0$RUBY$block
from null:65535:in call' from CompiledBlock.java:115:inyield’
from CompiledBlock.java:98:in yield' from Block.java:194:inyield’
from tar_reader.rb:63:in block_0$RUBY$__block__' from null:65535:incall’
from CompiledBlock.java:115:in yield' from CompiledBlock.java:98:inyield’
from Block.java:194:in yield' from RubyKernel.java:1251:inloop_1_9’
from org/jruby/RubyKernel$s_method_0_0$RUBYFRAMEDINVOKER
$loop_1_9.gen:65535:in call' from CachingCallSite.java:299:incacheAndCall’
from CachingCallSite.java:117:in callBlock' from CachingCallSite.java:132:incallIter’
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:incall’
from CachingCallSite.java:299:in cacheAndCall' from CachingCallSite.java:117:incallBlock’
from CachingCallSite.java:132:in callIter' from tar_input.rb:32:inmethod__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:incall’
from CachingCallSite.java:339:in cacheAndCall' from CachingCallSite.java:197:incallBlock’
from CachingCallSite.java:202:in call' from RubyClass.java:815:incall’
from DynamicMethod.java:194:in call' from WrapperMethod.java:62:incall’
from CachingCallSite.java:329:in cacheAndCall' from CachingCallSite.java:188:incall’
from tar_input.rb:17:in ensure_1$RUBY$__ensure___2' from tar_input.rb:-1:inmethod__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:incall’
from CachingCallSite.java:339:in cacheAndCall' from CachingCallSite.java:197:incallBlock’
from CachingCallSite.java:202:in call' from package.rb:55:inmethod__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:incall’
from CachingCallSite.java:359:in cacheAndCall' from CachingCallSite.java:237:incallBlock’
from CachingCallSite.java:252:in callIter' from format.rb:63:inmethod__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:incall’
from CompiledMethod.java:228:in call' from CachingCallSite.java:349:incacheAndCall’
from CachingCallSite.java:228:in call' from format.rb:51:inblock_0$RUBY$block
from null:65535:in call' from CompiledBlock.java:115:inyield’
from CompiledBlock.java:98:in yield' from Block.java:194:inyield’
from RubyIO.java:1107:in open' from RubyKernel.java:283:inopen’
from org/jruby/RubyKernel$s_method_0_2$RUBYFRAMEDINVOKER
$open.gen:65535:in call' from DynamicMethod.java:198:incall’
from CachingCallSite.java:339:in cacheAndCall' from CachingCallSite.java:197:incallBlock’
from CachingCallSite.java:212:in callIter' from format.rb:50:inmethod__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:incall’
from CompiledMethod.java:223:in call' from CachingCallSite.java:329:incacheAndCall’
from CachingCallSite.java:188:in call' from installer.rb:118:inrescue_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:incall’
from DynamicMethod.java:198:in call' from CachingCallSite.java:339:incacheAndCall’
from CachingCallSite.java:197:in callBlock' from CachingCallSite.java:202:incall’
from RubyClass.java:815:in call' from DynamicMethod.java:194:incall’
from CachingCallSite.java:329:in cacheAndCall' from CachingCallSite.java:188:incall’
from dependency_installer.rb:257:in block_10$RUBY$__block__' from null:65535:incall’
from CompiledBlock.java:115:in yield' from CompiledBlock.java:98:inyield’
from Block.java:194:in yield' from RubyArray.java:1630:ineachCommon’
from RubyArray.java:1637:in each' from org/jruby/RubyArray$i_method_0_0$RUBYFRAMEDINVOKER $each.gen:65535:incall’
from CachingCallSite.java:299:in cacheAndCall' from CachingCallSite.java:117:incallBlock’
from CachingCallSite.java:132:in callIter' from dependency_installer.rb:240:inmethod__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:incall’
from CompiledMethod.java:223:in call' from CachingCallSite.java:329:incacheAndCall’
from CachingCallSite.java:188:in call' from install_command.rb:119:inrescue_1$RUBY$rescue___7’
from install_command.rb:117:in block_0$RUBY$__block__' from null:65535:incall’
from CompiledBlock.java:115:in yield' from CompiledBlock.java:98:inyield’
from Block.java:194:in yield' from RubyArray.java:1630:ineachCommon’
from RubyArray.java:1637:in each' from org/jruby/RubyArray$i_method_0_0$RUBYFRAMEDINVOKER $each.gen:65535:incall’
from CachingCallSite.java:299:in cacheAndCall' from CachingCallSite.java:117:incallBlock’
from CachingCallSite.java:132:in callIter' from install_command.rb:116:inmethod__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:incall’
from CachingCallSite.java:289:in cacheAndCall' from CachingCallSite.java:108:incall’
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:incall’
from DynamicMethod.java:160:in call' from CachingCallSite.java:279:incacheAndCall’
from CachingCallSite.java:68:in call' from command_manager.rb:134:inmethod__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:incall’
from CachingCallSite.java:309:in cacheAndCall' from CachingCallSite.java:148:incall’
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:incall’
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:incacheAndCall’
from CachingCallSite.java:148:in call' from gem_runner.rb:58:inmethod__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:incall’
from CachingCallSite.java:309:in cacheAndCall' from CachingCallSite.java:148:incall’
from gem:24:in rescue_1$RUBY$__rescue___0' from gem:23:infile
from gem:-1:in load' from Ruby.java:686:inrunScript’
from Ruby.java:569:in runNormally' from Ruby.java:415:inrunFromMain’
from Main.java:286:in run' from Main.java:128:inrun’
from Main.java:97:in `main’

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

Regards,
Shane

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs