jruby / warbler

Warbler chirpily constructs .war files of your Ruby applications.
Other
883 stars 203 forks source link

I am trying to compile jar for selenium webdriver program #107

Open navneetkapur opened 12 years ago

navneetkapur commented 12 years ago

the jar file is created but on running the jar created in jruby i get the following error on execute

require "selenium-webdriver" proxy = Selenium::WebDriver::Proxy.new(:http => ENV['HTTP_PROXY'] || ENV['http_proxy']) ENV['HTTP_PROXY'] = ENV['http_proxy'] = nil browser = Selenium::WebDriver.for :firefox , :proxy => proxy browser.manage.timeouts.implicit_wait = 60 browser.navigate.to "http://www.google.com"


NoMethodError: undefined method `bytesize' for nil:NilClass read_c_dir_entry at file:C:/loader.jar!/gems/rubyzip-0.9.9/lib/z ip/zip_entry.rb:302 read_c_dir_entry at file:C:/loader.jar!/gems/rubyzip-0.9.9/lib/z ip/zip_entry.rb:213 read_central_directory_entries at file:C:/loader.jar!/gems/rubyzip-0.9.9/lib/z ip/zip_central_directory.rb:79 times at org/jruby/RubyFixnum.java:252 read_central_directory_entries at file:C:/loader.jar!/gems/rubyzip-0.9.9/lib/z ip/zip_central_directory.rb:78 read_from_stream at file:C:/loader.jar!/gems/rubyzip-0.9.9/lib/z ip/zip_central_directory.rb:86 initialize at file:C:/loader.jar!/gems/rubyzip-0.9.9/lib/z ip/zip_file.rb:67 open at org/jruby/RubyIO.java:1139 initialize at file:C:/loader.jar!/gems/rubyzip-0.9.9/lib/z ip/zip_file.rb:66 open at file:C:/loader.jar!/gems/rubyzip-0.9.9/lib/z ip/zip_file.rb:87 unzip at file:C:/loader.jar!/gems/selenium-webdriver- 2.25.0/lib/selenium/webdriver/common/zipper.rb:21 create_root at file:C:/loader.jar!/gems/selenium-webdriver- 2.25.0/lib/selenium/webdriver/firefox/extension.rb:38 write_to at file:C:/loader.jar!/gems/selenium-webdriver- 2.25.0/lib/selenium/webdriver/firefox/extension.rb:17 install_extensions at file:C:/loader.jar!/gems/selenium-webdriver- 2.25.0/lib/selenium/webdriver/firefox/profile.rb:193 each at org/jruby/RubyHash.java:1181 install_extensions at file:C:/loader.jar!/gems/selenium-webdriver- 2.25.0/lib/selenium/webdriver/firefox/profile.rb:191 layout_on_disk at file:C:/loader.jar!/gems/selenium-webdriver- 2.25.0/lib/selenium/webdriver/firefox/profile.rb:76 create_profile at file:C:/loader.jar!/gems/selenium-webdriver- 2.25.0/lib/selenium/webdriver/firefox/launcher.rb:58 launch at file:C:/loader.jar!/gems/selenium-webdriver- 2.25.0/lib/selenium/webdriver/firefox/launcher.rb:34 locked at file:C:/loader.jar!/gems/selenium-webdriver- 2.25.0/lib/selenium/webdriver/firefox/socket_lock.rb:20 launch at file:C:/loader.jar!/gems/selenium-webdriver- 2.25.0/lib/selenium/webdriver/firefox/launcher.rb:32 initialize at file:C:/loader.jar!/gems/selenium-webdriver- 2.25.0/lib/selenium/webdriver/firefox/bridge.rb:20 for at file:C:/loader.jar!/gems/selenium-webdriver- 2.25.0/lib/selenium/webdriver/common/driver.rb:31 for at file:C:/loader.jar!/gems/selenium-webdriver- 2.25.0/lib/selenium/webdriver.rb:65 (root) at ./execute.rb:4 load at org/jruby/RubyKernel.java:1058 (root) at ./bin/loader.rb:1 load at org/jruby/RubyKernel.java:1058 (root) at ./execute.rb:1 require at org/jruby/RubyKernel.java:1033 require at file:/C:/loader.jar!/META-INF/main.rb:36 (root) at Githubissues.

  • Githubissues is a development platform for aggregating issues.