 |
Forums |
Admin Discussion Forums: help Start New Thread
By: arton Tajima
RE: RJB Failed from the start [ reply ] 2013-02-27 13:37
|
It seems original Java class problem.
if you make Java program:
public class Foo {
public static void main(String[] args) {
com.edgil.ecco.eccoapi.MonetaryTransactionData bar = new com.edgil.ecco.eccoapi.MonetaryTransactionData();
}
}
Do you get NullPointerException ?
|
By: Jim Laskowski
RE: RJB Failed from the start [ reply ] 2013-02-23 13:40
|
Actually, turning on $DEBUG and $VERBOSE was all I needed to debug it myself. I wasn't aware of these flags.
It turns out the Java class's constructor is trying to read a properties file, but cannot find it. I can figure it out from here. Thanks for your help!
|
By: Jim Laskowski
RJB Failed from the start [ reply ] 2013-02-22 23:36
|
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>
|
|
 |