Skip to content

Instantly share code, notes, and snippets.

failed com.google.apphosting.utils.jetty.RuntimeAppEngineWebAppContext@176484e{/,/base/data/home/apps/notheory/1.332652272837223087}
java.lang.NoClassDefFoundError: Could not initialize class com.google.apphosting.runtime.security.shared.stub.sun.misc.Signal
at org.jruby.util.SunSignalFacade.trap(SunSignalFacade.java:105)
at org.jruby.util.SunSignalFacade.trap(SunSignalFacade.java:97)
at org.jruby.RubySignal.registerThreadDumpSignalHandler(RubySignal.java:98)
at org.jruby.RubySignal.createSignal(RubySignal.java:66)
at org.jruby.Ruby.initCore(Ruby.java:1156)
at org.jruby.Ruby.bootstrap(Ruby.java:968)
at org.jruby.Ruby.init(Ruby.java:946)
at org.jruby.Ruby.newInstance(Ruby.java:173)
16:23 < knowtheory> but i think beingable to harness help would be useful
16:23 < knowtheory> so i'm going to be obnoxious and say that i can at least help out by trying to disseminate info
16:24 < knowtheory> and maybe find out what will happen if we did suddenly drop dm-more ;)
16:24 < knowtheory> antares_: yeah i think getting the specs right is really important
16:24 < knowtheory> and that's a task that really requires an understanding of what the intent is
16:25 < knowtheory> i get to the point where, i know some things about DM, i know some of the promise that it lives up to, i find it very difficult to figure out exactly where DM is going, and how i, or anyone else can help with that, hehe.
16:25 < knowtheory> So i'm trying to dig out tasks that people who have some familiarity w/ DM can do, produce useful info for the people who do understand DM in depth
@knowtheory
knowtheory / gist:94809
Created April 13, 2009 22:50 — forked from paul/gist:94701
Rando's DM goals
Rando's DM Goals
================
* Adapters (complete)
* Types (waiting on dkubb to realize my ideas are right)
* Migrations
* Work with the new type system
* Combine auto- and normal migrations
* Alternative Methods of Doing Joins (foreign_key, links, embedded) See: http://gist.github.com/94246
>> Movie.all(Movie.tags => [1,2,3])
~ (0.000375) SET sql_auto_is_null = 0
~ (0.000130) SET SESSION sql_mode = 'ANSI,NO_AUTO_VALUE_ON_ZERO,NO_DIR_IN_CREATE,NO_ENGINE_SUBSTITUTION,NO_UNSIGNED_SUBTRACTION,TRADITIONAL'
~ QUERY INVALID: #<DataMapper::Query @repository=:default @model=Movie @fields=[#<Property:Movie:id>, #<Property:Movie:slug>, #<Property:Movie:title>, #<Property:Movie:user_id>, #<Property:Movie:state>, #<Property:Movie:document_type>, #<Property:Movie:created_at>, #<Property:Movie:updated_at>] @links=[#<DataMapper::Associations::RelationshipChain:0x20e124c @parent_model=Movie, @extra_links=[], @parent_properties=nil, @repository_name=:default, @child_key=#<PropertySet:{#<Property:Tag::MovieTag:movie_id>}>, @child_model="Tag", @parent_key=#<PropertySet:{#<Property:Movie:id>}>, @mutable=false, @options={:child_key=>nil, :child_model=>"Tag", :max=>Infinity, :parent_model=>Movie, :near_relationship_name=>:taggings, :parent_key=>nil, :remote_relationship_name=>:tags, :repository_name=>:default, :min
umbra:jars ted$ jirb
>> import java.io.File
/Users/ted/Code/jruby/lib/ruby/site_ruby/1.8/builtin/javasupport/core_ext/object.rb:34 warning: already initialized constant File
=> Java::JavaIo::File
>> approot = File.new('../guestbook')
=> #<Java::JavaIo::File:0x6312e6 @java_object=#<Java::JavaObject:0x6dcd37>
>> require 'appengine-tools-api.jar'
=> true
>> import com.google.appengine.tools.development.DevAppServerFactory
=> Java::ComGoogleAppengineToolsDevelopment::DevAppServerFactory
>> import com.google.appengine.tools.info.SdkInfo
NameError: cannot initialize Java class com.google.appengine.tools.info.SdkInfo
from /Users/ted/Code/jruby/lib/ruby/1.8/irb/ruby-token.rb:46:in `get_proxy_or_package_under_package'
from /Users/ted/Code/jruby/lib/ruby/site_ruby/1.8/builtin/javasupport/java.rb:51:in `method_missing'
from (irb):13:in `irb_binding'
Maybe IRB bug!!
>> import Java.com.google.appengine.tools.info.SdkInfo
NameError: cannot link Java class com.google.appengine.tools.info.SdkInfo, probable missing dependency: null
from /Users/ted/Code/jruby/lib/ruby/1.8/irb/ruby-token.rb:46:in `get_proxy_or_package_under_package'
from /Users/ted/Code/jruby/lib/ruby/site_ruby/1.8/builtin/javasupport/java.rb:51:in `method_missing'
>> require 'appengine-tools-api.jar'
=> true
>> import java.io.File
/Users/ted/Code/jruby/lib/ruby/site_ruby/1.8/builtin/javasupport/core_ext/object.rb:34 warning: already initialized constant File
=> Java::JavaIo::File
>> approot = File.new('../guestbook')
=> #<Java::JavaIo::File:0x26b7df @java_object=#<Java::JavaObject:0xf1d0a3>
>> import java.security.CodeSource
=> Java::JavaSecurity::CodeSource
>> import java.security.ProtectionDomain
umbra:gae ted$ clear; CLASSPATH=appengine-java-sdk/lib/appengine-tools-api.jar jirb
>> import java.io.File
/Users/ted/Code/jruby/lib/ruby/site_ruby/1.8/builtin/javasupport/core_ext/object.rb:34 warning: already initialized constant File
=> Java::JavaIo::File
>> approot = File.new('guestbook')
=> #<Java::JavaIo::File:0x2586a @java_object=#<Java::JavaObject:0xfad5ba>
>> DevAppServerFactory.new.createDevAppServer(approot,"127.0.0.1",8080)
NameError: uninitialized constant DevAppServerFactory
from /Users/ted/Code/jruby/lib/ruby/1.8/irb/ruby-token.rb:102:in `const_missing'
>> Pet.first(:name=>"Bo")
=> #<Pet id=1 name="Bo" kind="Portugese Water Dog">
>> toys = Toy.all
=> [#<Toy id=1 name="Chew Toy" price=nil>, #<Toy id=2 name="Squeaky Toy" price=nil>, #<Toy id=3 name="Bell Ball" price=nil>]
>> bo.toys = toys
=> [#<Toy id=1 name="Chew Toy" price=nil>, #<Toy id=2 name="Squeaky Toy" price=nil>, #<Toy id=3 name="Bell Ball" price=nil>]
>> bo.save
MysqlError: (mysql_errno=1062, sql_state=23000) Duplicate entry '1-1' for key 'PRIMARY'
Query: INSERT INTO `pets_toys` (`pet_id`, `toy_id`) VALUES (1, 1)
from /Library/Ruby/Gems/1.8/gems/dm-core-0.9.11/lib/dm-core/adapters/data_objects_adapter.rb:92:in `execute_non_query'
%w[rubygems dm-core].each { |g| require g.to_s }
DataMapper.setup(:default, 'sqlite3::memory:')
class Something
include DataMapper::Resource
property :id, Serial
property :p1, String
property :p2, String