jruby / jruby-rack

Rack for JRuby and Java appservers
MIT License
397 stars 137 forks source link

Exception with query params using jruby.rack.handler.env #154

Closed devth closed 10 years ago

devth commented 11 years ago

When using the experimental jruby.rack.handler.env, this exception appears any time there are query params on the url. Using jetty-maven-plugin 8.1.3.v20120416.

org.jruby.exceptions.RaiseException: (NoMethodError) undefined method `length' for nil:NilClass
    at RUBY.load_parameters(file:/Users/trevorhartman/.m2/repository/org/jruby/rack/jruby-rack/1.1.13.2/jruby-rack-1.1.13.2.jar!/rack/handler/servlet/servlet_env.rb:61)
    at org.jruby.RubyHash.each(org/jruby/RubyHash.java:1257)
    at org.jruby.java.proxies.MapJavaProxy.each(org/jruby/java/proxies/MapJavaProxy.java:411)
    at RUBY.load_parameters(file:/Users/trevorhartman/.m2/repository/org/jruby/rack/jruby-rack/1.1.13.2/jruby-rack-1.1.13.2.jar!/rack/handler/servlet/servlet_env.rb:59)
    at RUBY.populate!(file:/Users/trevorhartman/.m2/repository/org/jruby/rack/jruby-rack/1.1.13.2/jruby-rack-1.1.13.2.jar!/rack/handler/servlet/servlet_env.rb:23)
    at RUBY.populate(file:/Users/trevorhartman/.m2/repository/org/jruby/rack/jruby-rack/1.1.13.2/jruby-rack-1.1.13.2.jar!/rack/handler/servlet/default_env.rb:64)
    at RUBY.create(file:/Users/trevorhartman/.m2/repository/org/jruby/rack/jruby-rack/1.1.13.2/jruby-rack-1.1.13.2.jar!/rack/handler/servlet/default_env.rb:43)
    at RUBY.create_env(file:/Users/trevorhartman/.m2/repository/org/jruby/rack/jruby-rack/1.1.13.2/jruby-rack-1.1.13.2.jar!/rack/handler/servlet.rb:26)
    at RUBY.call(file:/Users/trevorhartman/.m2/repository/org/jruby/rack/jruby-rack/1.1.13.2/jruby-rack-1.1.13.2.jar!/rack/handler/servlet.rb:22)

related: #110

kares commented 10 years ago

has been fixed on 1.1-stable branch and is now available in 1.1.15 ... thanks!