Code Monkey home page Code Monkey logo

Comments (6)

libo avatar libo commented on July 23, 2024

same error here with

file:/Users/libo/Sites/falck/pdf/WEB-INF/lib/jruby-rack-1.0.7.jar!/rack/handler/servlet.rb:19:in call': undefined methodcall' for nil:NilClass (NoMethodError)

from jruby-rack.

nicksieger avatar nicksieger commented on July 23, 2024

What does your rack configuration look like? I think your problem is with your application, though the error messaging could be better. Try running with Rack::Lint to see.

from jruby-rack.

bwtaylor avatar bwtaylor commented on July 23, 2024

I got the error a couple of times because Rack couldn't find my rackup script. For example, if you use a rackup.path in your web.xml, but the actual config.ru isn't where you said it was. Then DefaultRackApplicationFactory calls Rack::Handler::Servlet and when rackup is null b/c no config.ru was found, the app ends up as nil, and the error follows because you can't call methods on a nil object.

from jruby-rack.

nicksieger avatar nicksieger commented on July 23, 2024

So it ended up being a configuration error? I suppose the error messaging could be better. Can you suggest something?

from jruby-rack.

bwtaylor avatar bwtaylor commented on July 23, 2024

I think there is a "can't find rackup script" type of message in the log, but perhaps the thing to do is check if the app is null and if so, deliver a page that says your app didn't get set and some boilerplate on how to set it.

from jruby-rack.

nicksieger avatar nicksieger commented on July 23, 2024

Agreed. You or anyone else feel like writing that code :)?

from jruby-rack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.