Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread
Message: 173380
BY: Jim Laskowski (jlaskowski)
DATE: 2013-02-22 23:36
SUBJECT: RJB Failed from the start

 

I have no problem calling the no-argument constructor in Java:

MonetaryTransactionData myTransactionData = new MonetaryTransactionData();

Why do I get an error doing this via RBJ:

irb(main):004:0> my_klass = Rjb::import 'com.edgil.ecco.eccoapi.MonetaryTransactionData'
=> #<Rjb::Com_edgil_ecco_eccoapi_MonetaryTransactionData:0xaac9d60>
irb(main):005:0> my_klass.new
NullPointerException: unknown exception
from (irb):5:in `new'
from (irb):5
from C:/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.1.4/lib/rails/commands/console.rb:45:in `start'
from C:/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.1.4/lib/rails/commands/console.rb:8:in `start'
from C:/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.1.4/lib/rails/commands.rb:40:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
irb(main):006:0>


Thread View

Thread Author Date
RJB Failed from the startJim Laskowski2013-02-22 23:36
      RE: RJB Failed from the startarton Tajima2013-02-23 01:17
            RE: RJB Failed from the startarton Tajima2013-02-23 01:30
      RE: RJB Failed from the startJim Laskowski2013-02-23 13:40
      RE: RJB Failed from the startarton Tajima2013-02-27 13:37
            RE: RJB Failed from the startarton Tajima2013-02-27 13:39

Post a followup to this message