[jruby-1.7.0.preview2] rack.input #<IO:0x222942da> does not have ASCII-8BIT as its external encoding

Hello again,

So I have my Sinatra + Mizuno application set up, and it works fine
under
Webrick in development.

I start the application up in Mizuno, and whenever I hit a page I get
the
following error:

Rack::Lint::LintError at /ping
rack.input #IO:0x222942da does not have ASCII-8BIT as its external
encoding

Ruby
/home/mark/.rvm/gems/jruby-1.7.0.preview2/gems/rack-1.4.1/lib/rack/lint.rb:
in assert, line 19
WebGET localhost/ping

/home/mark/.rvm/gems/jruby-1.7.0.preview2/gems/rack-1.4.1/lib/rack/lint.rb:
in assert
/home/mark/.rvm/gems/jruby-1.7.0.preview2/gems/rack-1.4.1/lib/rack/lint.rb:
in check_input
/home/mark/.rvm/gems/jruby-1.7.0.preview2/gems/rack-1.4.1/lib/rack/lint.rb:
in check_env
/home/mark/.rvm/gems/jruby-1.7.0.preview2/gems/rack-1.4.1/lib/rack/lint.rb:
in _call
/home/mark/.rvm/gems/jruby-1.7.0.preview2/gems/rack-1.4.1/lib/rack/lint.rb:
in call
/home/mark/.rvm/gems/jruby-1.7.0.preview2/gems/rack-1.4.1/lib/rack/showexceptions.rb:
in call
/home/mark/.rvm/gems/jruby-1.7.0.preview2/gems/rack-1.4.1/lib/rack/commonlogger.rb:
in call
/home/mark/.rvm/gems/jruby-1.7.0.preview2/gems/sinatra-1.3.3/lib/sinatra/base.rb:
in call
/home/mark/.rvm/gems/jruby-1.7.0.preview2/gems/mizuno-0.6.4/lib/mizuno/rack/chunked.rb:
in call
/home/mark/.rvm/gems/jruby-1.7.0.preview2/gems/rack-1.4.1/lib/rack/content_length.rb:
in call
/home/mark/.rvm/gems/jruby-1.7.0.preview2/gems/mizuno-0.6.4/lib/mizuno/rack_servlet.rb:
in service
/home/mark/.rvm/gems/jruby-1.7.0.preview2/gems/mizuno-0.6.4/lib/mizuno/rack_servlet.rb:
in service
/home/mark/.rvm/gems/jruby-1.7.0.preview2/gems/mizuno-0.6.4/lib/mizuno/rack_servlet.rb:
in handle_exceptions
/home/mark/.rvm/gems/jruby-1.7.0.preview2/gems/mizuno-0.6.4/lib/mizuno/rack_servlet.rb:
in service

I have no idea what it is. Could it be an issue between Mizuno and the
1.7
release of JRuby? I honestly have no idea.

Thanks in advance for any help you can provide.

Mark


E: [email protected]
T: http://www.twitter.com/neurotic
W: www.compoundtheory.com

2 Devs from Down Under Podcast

Just as an aside, in case anyone else comes across this issue.

It was caused by:
https://jira.codehaus.org/browse/JRUBY-6851

Which has now been fixed for the next(?) release.

If people need a workaround, they can use my version of Mizuno which can
be
found here:
https://github.com/markmandel/mizuno/tree/feature/jruby1.7-p2

Mark

On Tue, Aug 21, 2012 at 9:48 AM, Mark M. [email protected]
wrote:

encoding
/home/mark/.rvm/gems/jruby-1.7.0.preview2/gems/rack-1.4.1/lib/rack/lint.rb:
in call

/home/mark/.rvm/gems/jruby-1.7.0.preview2/gems/mizuno-0.6.4/lib/mizuno/rack_servlet.rb:

E: [email protected]
T: http://www.twitter.com/neurotic
W: www.compoundtheory.com

2 Devs from Down Under Podcast
http://www.2ddu.com/


E: [email protected]
T: http://www.twitter.com/neurotic
W: www.compoundtheory.com

2 Devs from Down Under Podcast
http://www.2ddu.com/

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