Hi,
I’m checking out “Glimmer”, a DSL which provides a simple interface to
the
SWT library for desktop app development. I’m trying to modify a supplied
sample app, a contact manager, so that it loads contacts from a database
(activerecord-jdbcsqlite3) instead of using hard-coded values.
When I run the script (without warnings) I get -
“Processing method: text and args: [“Contact Manager”]
c:/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/string/output_safety.rb:25:in
`add_with_safety’: can’t convert nil into String (TypeError)”
which would seem to indicate that I’m passing a nil object. In irb, the
data
and format look good to me - but I’m a newbie.
When I run it with jruby -w, I get - “Processing method: text and args:
[“Contact Manager”]
java.lang.ClassNotFoundException: org.eclipse.swt.Table” before the
error
above.
There is a Table in swt.jar but it’s in org.eclipse.swt.widgets. Is this
a
name conflict with another Table? and if so how do I resolve it?
BTW, I’ve tried restoring the original (hard-coded) instantiation of
contacts from values and commenting out ALL my code, except for -
require
‘active_record’ - in which case, I still get the errors.
So is this a name collision, a conflict with ActiveRecord or just
something
I’m doing wrong?
Any ideas greatly appreciated!
haden
View this message in context:
http://old.nabble.com/Help-with-Name-Collision-tp27424567p27424567.html
Sent from the JRuby - User mailing list archive at Nabble.com.
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email