Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Padrino 0.10.6 problem on first request in JRuby #819

futurechimp opened this Issue · 10 comments

4 participants


We are having some problems getting Padrino 0.10.6 to work undery JRuby.

Startup completes successfully. Hitting the first URL, the following error is thrown:

 java package `' does not have a method `split'

This has also happened on

Reading the stack trace, we can see that it's somehow related to this code:

The code in the stack trace is the "split" method call on the first line of lock!:

  def lock!
    klasses = { |klass|'::')[0] }.uniq
    klasses = klasses | { |app| app.app_class }

Has anyone else seen this? The 0.10.6 release notes mention Trinidad support as one of the new features, so maybe we're just doing something wrong, if it's working for other people?

This seems to happen for us whether we deploy using Tomcat or using an executable .war file with Winstone.


Hey, thanks for this great report, can you try our git version which should already fixed that problem? Can you confirm?



Thanks for the report! We will investigate as soon as we can.


Hey, thanks for the fast responses, guys. We'll try directly from Git and report back.


The .split bug appears to be fixed in the edge Padrino.

We will have a problem like this:

 @contents = Content.all

# POW!

ArgumentError - wrong number of arguments (0 for 1):
    /tmp/winstone3767069798008986727webroot/padrino-on-jruby.war/WEB-INF/gems/gems/activesupport-3.2.2/lib/active_support/dependencies.rb:507:in `load_missing_constant'
    /tmp/winstone3767069798008986727webroot/padrino-on-jruby.war/WEB-INF/gems/gems/activesupport-3.2.2/lib/active_support/dependencies.rb:192:in `const_missing'
    org/jruby/ `each'
    /tmp/winstone3767069798008986727webroot/padrino-on-jruby.war/WEB-INF/gems/gems/activesupport-3.2.2/lib/active_support/dependencies.rb:190:in `const_missing'

Whereas this works:

@contents = ActiveRecord::Base.connection.select_all("SELECT * FROM contents")

However this appears to be a JRuby problem with ActiveRecord itself.

I think you can consider this .split problem fixed in Padrino trunk, although it's still a bug against 0.10.6 (in case anybody encounters the same problem with this version).


Thanks for following up! I think we fixed it in relation to another related problem with pry and the padrino reloader introduced in 0.10.6. We will release a followup hotfix release in the near future!


No trouble at all, happy to help.


Just wanted to mention that we are seeing an error with this same line of code in Ruby 1.8.7. It halts startup in our development environment.

/Library/Ruby/Gems/1.8/gems/padrino-core-0.10.6/lib/padrino-core/reloader.rb:106:in `lock!': private method `split' called for #<XPath::Expression::Name:0x135d518b8 @expression=.> (NoMethodError)

I'm mentioning it here because the fix you all added to the trunk seems to solve the problem. We're a little skittish about including a master branch dependency in our production Gemfile though, so we're stuck with 0.10.5 for the moment.



Thanks for the comment, we will be pushing out a fix soon to this issue in the next release.


Bump - same issue here - looking forward to next release.


Yeah really hoping to push it this week. @DAddYE what's left blocking?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.