Re: [jruby-user] Error 'uninitialized constant Arel::Visitors::SQLite' with rails

Christian MICHON <[email protected]>
Newsgroups gmane.comp.lang.jruby.user
Message-ID <CACx2yF8qOD2PCqAVzCejTSnbuyKfo4H_Fa-2sgb79GOxGJXawA@mail.gmail.com>
So you're mixing rails 2.3.8 (more than 4 years old) with the latest
release of a jdbcsqlite3 adaptor (few days old only) and you hope to
succeed? On top of this, you're using an almost 2 years old version of
jruby...

If you wish to succeed, and I guess some legacy is involved here (old
rails), please use at least a version of the jdbcsqlite3 adaptor that may
have been tested back then on jruby in 2010.

I would suggest using
https://rubygems.org/gems/activerecord-jdbcsqlite3-adapter/versions/1.0.3-java
and maybe also downgrade to jruby 1.6.8.

Good luck!


On Sun, Sep 7, 2014 at 4:19 AM, David Bennett <[email protected]> wrote:

> The problems started when I updated a working Rails project to Netbeans
> 7.4. I have installed all the gems I thought I needed, and the result is
> this error when trying to create a database.
>
> uninitialized constant Arel::Visitors::SQLite
>
> The error is here:
> .../activerecord-jdbc-adapter-1.3.10/lib/arjdbc/sqlite3/adapter.rb:104:in
> `SQLite3'
>
> Relevant versions are:
>
>     JRuby 1.7.0
>     Rails 2.3.8
>     activerecord-jdbcsqlite3-adaptor 1.3.10.
>
> A bit of searching told me that "Arel::Visitors::VISITORS is deprecated
> and will be removed", and this is likely to be somewhere around this
> version of Rails. It didn't tell me what to do about it.
>
> I suspect a dependency/version problem, but I have no idea what.
>
> [My apologies if this post is badly formatted -- I tried, but the
> markdown if any defeats me.]
>
> --
> Posted via http://www.ruby-forum.com/.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>


-- 
Christian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.