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

Posted by Mark Mandel (Guest)
on 2012-08-21 01:49
(Received via mailing list)
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: mark.mandel@gmail.com
T: http://www.twitter.com/neurotic
W: www.compoundtheory.com

2 Devs from Down Under Podcast
http://www.2ddu.com/
Posted by Mark Mandel (Guest)
on 2012-08-27 14:01
(Received via mailing list)
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/...

Mark

On Tue, Aug 21, 2012 at 9:48 AM, Mark Mandel <mark.mandel@gmail.com> 
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: mark.mandel@gmail.com
> T: http://www.twitter.com/neurotic
> W: www.compoundtheory.com
>
> 2 Devs from Down Under Podcast
> http://www.2ddu.com/
>
>


--
E: mark.mandel@gmail.com
T: http://www.twitter.com/neurotic
W: www.compoundtheory.com

2 Devs from Down Under Podcast
http://www.2ddu.com/
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.