jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • JRuby
  • JRUBY-2087

ActiveRecord does not work with views

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: JRuby 1.1RC1
  • Fix Version/s: JRuby 1.1.1
  • Component/s: None
  • Labels:
    None
  • Environment:
    OSX, Postgres 8.3

Description

All is working fine in ruby, but in jruby:

PoEM::Identity

  1. => PoEM::Identity(id: integer, uri: text)
    PoEM::Access
  2. => PoEM::Access(Table doesn't exist)

Where Access is a view. This was perfectly alright for activerecord/ruby, so why does activerecord/jruby complain?

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Nick Sieger added a comment - 07/Feb/08 11:43 AM

Can you give us some more information, including the version of activerecord-jdbc, and some code for the model you're using?

Show
Nick Sieger added a comment - 07/Feb/08 11:43 AM Can you give us some more information, including the version of activerecord-jdbc, and some code for the model you're using?
Hide
Permalink
K Venkatasubramaniyan added a comment - 07/Feb/08 12:18 PM

This is likely to be a duplicate of JRUBY-1966 and hence already fixed in ARJDBC Trunk.

Show
K Venkatasubramaniyan added a comment - 07/Feb/08 12:18 PM This is likely to be a duplicate of JRUBY-1966 and hence already fixed in ARJDBC Trunk.
Hide
Permalink
Hagen added a comment - 07/Feb/08 1:50 PM

Yes, absolutely reads like JRUBY-1966. Need to figure out how to move the gem installation to trunk though...

Thanks for the quick replies!

Show
Hagen added a comment - 07/Feb/08 1:50 PM Yes, absolutely reads like JRUBY-1966. Need to figure out how to move the gem installation to trunk though... Thanks for the quick replies!
Hide
Permalink
Hagen added a comment - 07/Feb/08 3:10 PM

Here I am again. There is no docu on how to do this:

jruby -S gem list

      • LOCAL GEMS ***

activerecord (2.0.2)
activesupport (2.0.2)
gem_plugin (0.2.3)
hoe (1.5.0)
mongrel (1.1.3)
rake (0.8.1)
rspec (1.1.1)
rubyforge (0.4.4)
sources (0.0.1)

I svn:externals activerecord-jdbc/trunk to lib/activerecord-jdbc
jruby -S rake java_compile

$LOAD_PATH <<
File.join(File.dirname(_FILE_), '..', 'lib', 'activerecord-jdbc', 'lib') <<
File.join(File.dirname(_FILE_), '..', 'lib', 'activerecord-jdbc', 'drivers', 'postgres', 'lib') <<
File.join(File.dirname(_FILE_), '..', 'lib', 'activerecord-jdbc', 'adapters', 'postgresql', 'lib')
require 'rubygems'
require 'jdbc_adapter'
require 'active_record'

But still:

PoEM::Identity

  1. => PoEM::Identity(id: integer, uri: text)
    PoEM::Access
  2. => PoEM::Access(Table doesn't exist)

Any suggestions?

Show
Hagen added a comment - 07/Feb/08 3:10 PM Here I am again. There is no docu on how to do this: jruby -S gem list
      • LOCAL GEMS ***
activerecord (2.0.2) activesupport (2.0.2) gem_plugin (0.2.3) hoe (1.5.0) mongrel (1.1.3) rake (0.8.1) rspec (1.1.1) rubyforge (0.4.4) sources (0.0.1) I svn:externals activerecord-jdbc/trunk to lib/activerecord-jdbc jruby -S rake java_compile $LOAD_PATH << File.join(File.dirname(_FILE_), '..', 'lib', 'activerecord-jdbc', 'lib') << File.join(File.dirname(_FILE_), '..', 'lib', 'activerecord-jdbc', 'drivers', 'postgres', 'lib') << File.join(File.dirname(_FILE_), '..', 'lib', 'activerecord-jdbc', 'adapters', 'postgresql', 'lib') require 'rubygems' require 'jdbc_adapter' require 'active_record' But still: PoEM::Identity
  1. => PoEM::Identity(id: integer, uri: text) PoEM::Access
  2. => PoEM::Access(Table doesn't exist)
Any suggestions?
Hide
Permalink
Matthew Williams added a comment - 17/Apr/08 2:40 PM

Having similar issues which are documented in JRUBY-2404, however I ran into a bug trying to solve this problem (which JRUBY-2404 addresses).

Show
Matthew Williams added a comment - 17/Apr/08 2:40 PM Having similar issues which are documented in JRUBY-2404, however I ran into a bug trying to solve this problem (which JRUBY-2404 addresses).
Hide
Permalink
Charles Oliver Nutter added a comment - 12/May/08 6:20 PM

I'm optimistically marking this fixed, since it mirrors other issues that have been fixed and I'm not sure it was retested against current ARJDBC and JRuby trunk...

Show
Charles Oliver Nutter added a comment - 12/May/08 6:20 PM I'm optimistically marking this fixed, since it mirrors other issues that have been fixed and I'm not sure it was retested against current ARJDBC and JRuby trunk...

People

  • Assignee:
    Charles Oliver Nutter
    Reporter:
    Hagen
Vote (0)
Watch (0)

Dates

  • Created:
    07/Feb/08 1:43 AM
    Updated:
    25/Aug/09 11:30 AM
    Resolved:
    12/May/08 6:20 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.