Datamapper/AppEngine: "org.jruby.RubyClass is not a supported property type"


#1

I’m using the latest trunk of appengine-apis-0.0.4 and the
dm-appengine-0.0.1 gem to talk to DataMapper (0.10.0) on App Engine via
JRuby (1.3rc) on Rails. I thought this configuration was compatible.

However, when I try to save an instance of my Car model, I get an error
saying that “org.jruby.RubyClass is not a supported property type”.
The
full trace is here: http://pastie.org/502404
I have no idea what might be causing this.

The Car model is basic:

class Car
include DataMapper::Resource

property :id, Serial
property :make, String
property :model, String
end

And the Controller does very little beyond generic scaffold logic and
trying
to save an initial Car to the datastore:

http://pastie.org/502400

Finally, this is how I set up Datamapper in my Environment.rb file:

http://pastie.org/502405

Would appreciate any feedback on what might be going wrong here.


#2

I believe the problem is that you’re using a property named ‘model’,
but DataMapper::Resource already has a model method. I suspect it will
work if you change the name of that property.

– Ryan B.

On Fri, Jun 5, 2009 at 11:26 PM, Chris C.removed_email_address@domain.invalid wrote:

And the Controller does very little beyond generic scaffold logic and trying
to save an initial Car to the datastore:

http://pastie.org/502400

Finally, this is how I set up Datamapper in my Environment.rb file:

http://pastie.org/502405

Would appreciate any feedback on what might be going wrong here.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

#3

That was the answer. Thanks Ryan.


#4

If you could, I’d say this should be reported as a bug somewhere. Ryan,
where do you want bugs for dm-appengine? I think it should report a
better, more helpful error.

Chris C. wrote:

 > However, when I try to save an instance of my Car model, I get an
 >   include DataMapper::Resource
 > http://pastie.org/502400

   http://xircles.codehaus.org/manage_email

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

#5

The issue tracker for dm-appengine is at
http://code.google.com/p/appengine-jruby/issues/list

However this is actually appears to be DataMapper issue 756:
http://datamapper.lighthouseapp.com/projects/20609/tickets/756-reserved-methods-for-property-getter#ticket-756-7

– Ryan B.

On Sun, Jun 7, 2009 at 11:19 AM, Charles Oliver
Nutterremoved_email_address@domain.invalid wrote:

>
>
> end
>

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email