From: Tom Harris Date: 2006-01-14T04:24:33+09:00 Subject: Re: Getting YAJB to work at all SAKURAI Masashi wrote: > Tom Harris wrote: >> >> The situation is that the ruby side of the yajb is waiting for the >> >> connection from the java side. >> >> >> >> The windows firewall may block the connection. Will you check the >> >> event-viewer and firewall setting? >> > >> > I do not use windows firewall, and the Windows event viewer shows >> > nothing of consequence. Any other ideas? > > Will you try following options and check the log file output by java, > "jlog.txt". > > JBRIDGE_OPTIONS = { > :jvm_stdout => :t, > :jvm_log_file => "jlog.txt", > :jvm_log_level => "debug", > :bridge_log => true > } > > If the log file is too large, please send me the file. > After checking the problem, I will report here. Here is the contents of the jlog.txt file: Start main routine. CodeGen: ImplFlagField CodeGen: SuperClassField CodeGen: MethodFinderField CodeGen: SessionManagerField CodeGen: IdField CodeGen: InjectMethod CodeGen: SendMessage CodeGen: OverrideMethod_check CodeGen: OverrideMethod_return CodeGen: SuperCaller CodeGen: SuperConstructor CG: OriginalMethod BinServer: waiting for client's connection... Process is still hung without any results. The console window shows: JavaBridge: Startup communication bridge... CLASSPATH: "$CLASSPATH";c:/ruby/lib/ruby/site_ruby/1.8/yajb/yajb.jar java -classpath ""$CLASSPATH";c:/ruby/lib/ruby/site_ruby/1.8/yajb/yajb.jar" jbridge.BridgeBuilder jbridge.comm. binstream.BStream_JBServer -remoteport:1105 -logLevel:debug -logfile:jlog.txt JVM: OK. JVM: Initialized. start up BinStream connection on 1105 Ctrl-C was then pressed. EXIT JavaBridge... ----GC: begin cancelling finalizer: 0 nil c:/ruby/lib/ruby/site_ruby/1.8/yajb/jbridge.rb:451:in `__startup_JVM': undefined method `message' for nil:NilCla ss (NoMethodError) from c:/ruby/lib/ruby/site_ruby/1.8/yajb/jbridge.rb:440 c:/ruby/lib/ruby/site_ruby/1.8/yajb/jbridge.rb:451:in `__startup_JVM': undefined method `message' for nil:NilCla ss (NoMethodError) from c:/ruby/lib/ruby/site_ruby/1.8/yajb/jbridge.rb:440 Tom -- Posted via http://www.ruby-forum.com/.