« Return to Thread: What could cause spec_directories_from_classpath / org.jruby.rack.RackInitializationException ?

Re: What could cause spec_directories_from_classpath / org.jruby.rack.RackInitializationException ?

by Charles Oliver Nutter-4 :: Rate this Message:

Reply to Author | View in Thread

On Sat, Jun 20, 2009 at 11:53 PM, Chris Collins<xoptop@...> wrote:
> Hi All,
>
> Could anyone throw out a wild unsubstantiated guess as to what might cause
> this exception when I try to start an AppEngine/Rails app.
>
> It seems to be related to my spec directories/classpath but I have no idea
> what kinds of issues would trigger this or where to look for more info.

Wow that's an interesting one. It looks like some logic for walking
paths in CLASSPATH expects that the object returned will always be a
Java Enumerable, which has a hasMoreElements method. In this case, it
seems like the result is *not* an Enumerable.

You'd probably be able to look into that file
(lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb:86) and see how
it's doing the CLASSPATH walking. My guess is that on whatever JVM/JDK
version you have, what it's walking isn't guaranteed to be an
Enumerable, and we'll have to clean up the code a bit for that
potential.

- Charlie

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: What could cause spec_directories_from_classpath / org.jruby.rack.RackInitializationException ?