arton / rjb

Ruby Java Bridge
https://www.artonx.org/collabo/backyard/?RubyJavaBridge
GNU Lesser General Public License v2.1
117 stars 34 forks source link

wrong argument type nil (expected String) (TypeError) #31

Closed subvertallchris closed 10 years ago

subvertallchris commented 10 years ago

I'm using bind-it to load Rjb to use stanford-core-nlp.

The code itself says this:

  def self.init_rjb
      ::Rjb::load(nil, self.jvm_args)
      set_java_logging if self.log_file
    end

It worked fine for days and suddenly started giving this error. bind-it always calls ::Rjb::load with nil as its first argument and always has, so I'm not sure why it suddenly started giving an error. I posted an issue to bind-it but I'm not sure that the problem is there.

subvertallchris commented 10 years ago

This was caused by someone else in my project defining self.jvm_args that returned nil. :-1: