From: Boris Do Newsgroups: comp.lang.ruby Subject: Stanfordparser (or rjb) error on Snow Leopard Date: Wed, 20 Apr 2011 19:42:56 -0500 Organization: Service de news de lacave.net Lines: 41 Message-ID: <076209b0fdedcc03438395fce74d2dc8@ruby-forum.com> NNTP-Posting-Host: bristol.highgroove.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: talisker.lacave.net 1303346594 62428 65.111.164.187 (21 Apr 2011 00:43:14 GMT) X-Complaints-To: abuse@lacave.net NNTP-Posting-Date: Thu, 21 Apr 2011 00:43:14 +0000 (UTC) X-Received-From: This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway X-Mail-Count: 381964 X-Ml-Name: ruby-talk X-Rubymirror: Yes X-Ruby-Talk: <076209b0fdedcc03438395fce74d2dc8@ruby-forum.com> Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.stben.net!talisker.lacave.net!lacave.net!not-for-mail Xref: x330-a1.tempe.blueboxinc.net comp.lang.ruby:3280 I'm having trouble getting stanfordparser to work under Snow Leopard. It appears to be an rjb issue. I tried the approach suggested at this post without success: http://www.foraker.com/resolving-issues-with-rjb-and-rvm-caused-by-snow-leopard-java-update/ The error I'm getting is the following: ruby-1.9.2-p180 :001 > require 'stanfordparser' => true ruby-1.9.2-p180 :002 > preproc = StanfordParser::DocumentPreprocessor.new RuntimeError: Constructor not found from /Users/boris/.rvm/gems/ruby-1.9.2-p180/gems/stanfordparser-2.2.0/lib/java_object.rb:40:in `new' from /Users/boris/.rvm/gems/ruby-1.9.2-p180/gems/stanfordparser-2.2.0/lib/java_object.rb:40:in `initialize' from /Users/boris/.rvm/gems/ruby-1.9.2-p180/gems/stanfordparser-2.2.0/lib/stanfordparser.rb:239:in `initialize' from (irb):2:in `new' from (irb):2 from /Users/boris/.rvm/rubies/ruby-1.9.2-p180/bin/irb:16:in `
' If I don't follow the approach suggested at the above post, I get a different error: ruby-1.9.2-p180 :001 > require 'stanfordparser' [BUG] cross-thread violation on rb_gc() (null) Abort trap Any ideas? -- Posted via http://www.ruby-forum.com/.