Comments (6)
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 method
call' for nil:NilClass (NoMethodError)
from jruby-rack.
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.
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.
So it ended up being a configuration error? I suppose the error messaging could be better. Can you suggest something?
from jruby-rack.
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.
Agreed. You or anyone else feel like writing that code :)?
from jruby-rack.
Related Issues (20)
- Response to preflight request is intercepted by servlet HOT 2
- servlet attributes with null / false values HOT 1
- Release a new version containing Rack >= 1.5.4 HOT 1
- org.jruby.rack.RackInitializationException: can't convert nil into String HOT 8
- Missing support for rack socket hijacking API? HOT 1
- issues running sinatra 1.4 with rack 1.6 HOT 2
- jruby.rack.logging Parameter not working HOT 1
- OPTIONS calls don't get passed to application in Jetty
- Getting an error while loading gems HOT 5
- exception in websphere HOT 1
- Incompatibility for Rails request body input stream
- Rails 4, streaming blocked by `@body.respond_to?(:body_parts)` HOT 2
- Java servlet store broken with Rails 5.1 and Tomcat 7 HOT 4
- Runtime error not logging specific message HOT 4
- Infinite loop when obtaining the session
- Requests are handled before rails app is fully loaded HOT 2
- Multiline environment variables set with jruby.runtime.env HOT 2
- Deprecation warnings under JRuby 9.2.x HOT 1
- Will this project ever support EE9 / jakarata servlet specs? HOT 4
- Session store `@env` is nil with Rails 7 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jruby-rack.