<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-14107</id>
	<title>Nabble - JRuby - User</title>
	<updated>2009-11-23T12:04:55Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/JRuby---User-f14107.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JRuby---User-f14107.html" />
	<subtitle type="html"></subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26484952</id>
	<title>Re: JRuby + hibernate</title>
	<published>2009-11-23T12:04:55Z</published>
	<updated>2009-11-23T12:04:55Z</updated>
	<author>
		<name>Aaron McLeod</name>
	</author>
	<content type="html">Ditch the xml, yay! :). It will be cool to see where this goes. Ill try to sift through it a bit tonight.&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Mon, Nov 23, 2009 at 2:58 PM, Chris Nelson &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26484952&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;me@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;For those not at jrubyconf, I&amp;#39;ve taken some of the code from my lightning talk and pushed it to github.  It uses Charlie&amp;#39;s jibernate code as a starting point, but the intention is to flesh it out enough to make it a viable ruby persistence back end.  So far I&amp;#39;ve gotten annotation emitting working and managed to ditch the xml.  There&amp;#39;s lot&amp;#39;s more to do.  Github repo is: git://&lt;a href=&quot;http://github.com/superchris/hibernate.git&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;github.com/superchris/hibernate.git&lt;/a&gt;&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;
&lt;br&gt;--Chris&lt;br&gt;&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Aaron McLeod&lt;br&gt;&lt;a href=&quot;http://agmprojects.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://agmprojects.com&lt;/a&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JRuby-%2B-hibernate-tp26484811p26484952.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26484811</id>
	<title>JRuby + hibernate</title>
	<published>2009-11-23T11:58:04Z</published>
	<updated>2009-11-23T11:58:04Z</updated>
	<author>
		<name>Chris Nelson-5</name>
	</author>
	<content type="html">For those not at jrubyconf, I&amp;#39;ve taken some of the code from my lightning talk and pushed it to github.  It uses Charlie&amp;#39;s jibernate code as a starting point, but the intention is to flesh it out enough to make it a viable ruby persistence back end.  So far I&amp;#39;ve gotten annotation emitting working and managed to ditch the xml.  There&amp;#39;s lot&amp;#39;s more to do.  Github repo is: git://&lt;a href=&quot;http://github.com/superchris/hibernate.git&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;github.com/superchris/hibernate.git&lt;/a&gt;&lt;br&gt;
&lt;br&gt;--Chris&lt;br&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JRuby-%2B-hibernate-tp26484811p26484811.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26478512</id>
	<title>Re: JRuby on windows thru proxy gem install fails</title>
	<published>2009-11-23T05:57:47Z</published>
	<updated>2009-11-23T05:57:47Z</updated>
	<author>
		<name>Peter Ritchie</name>
	</author>
	<content type="html">Greg Ditrick wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Okay, I tried this on a MicroSuck box at home and it works fine, so it 
&lt;br&gt;&amp;gt; is the proxy server that is causing th problem.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Now, my question is: how does the remote gem repositories work? &amp;nbsp;Does it 
&lt;br&gt;&amp;gt; open a seperate port to download the remote file? &amp;nbsp;I'm thinking it might 
&lt;br&gt;&amp;gt; and my work proxy server has that port locked down. &amp;nbsp;Any insight would 
&lt;br&gt;&amp;gt; be great.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; GregD
&lt;/div&gt;&lt;br&gt;Hello Greg,
&lt;br&gt;&lt;br&gt;If you are running behind a proxy server, make sure the environment 
&lt;br&gt;variable HTTP_PROXY is set.
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;Radoslav.
&lt;br&gt;-- 
&lt;br&gt;Posted via &lt;a href=&quot;http://www.ruby-forum.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ruby-forum.com/&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-JRuby-on-windows-thru-proxy-gem-install-fails-tp26478512p26478512.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26477168</id>
	<title>Re: JRuby-Rack JMS support - RubyThread leak</title>
	<published>2009-11-23T04:23:55Z</published>
	<updated>2009-11-23T04:23:55Z</updated>
	<author>
		<name>Chris Andrews-4</name>
	</author>
	<content type="html">On Mon, Nov 23, 2009 at 12:11 PM, Christian Seiler &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26477168&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;chr.seiler@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Frankly I think that it's beyond our scope to come up with a patch in this
&lt;br&gt;&amp;gt; case. The usage of the WeakReferenceMap is simply broken IMO and the
&lt;br&gt;&amp;gt; original author of that code should have a look. Do you want to file a bug?
&lt;br&gt;&amp;gt; Otherwise I can do it as well if you prefer!
&lt;br&gt;&lt;br&gt;Done: JRUBY-4264
&lt;br&gt;&lt;br&gt;Thanks anyway!
&lt;br&gt;&lt;br&gt;&lt;br&gt;Chris.
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JRuby-Rack-JMS-support---RubyThread-leak-tp26372962p26477168.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26476807</id>
	<title>Re: JRuby-Rack JMS support - RubyThread leak</title>
	<published>2009-11-23T03:56:42Z</published>
	<updated>2009-11-23T03:56:42Z</updated>
	<author>
		<name>Chris Andrews-4</name>
	</author>
	<content type="html">On Mon, Nov 23, 2009 at 11:17 AM, Christian Seiler &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26476807&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;chr.seiler@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Hi Chris,
&lt;br&gt;&amp;gt; just wondering, did you actually open a ticket?
&lt;br&gt;&lt;br&gt;I actually haven't yet - my WeakReference patch isn't suitable for
&lt;br&gt;just the reason you suggested. I'll get it opened today with or
&lt;br&gt;without a fix.
&lt;br&gt;&lt;br&gt;The fix I'm running with now, to run a background reaper thread, does
&lt;br&gt;seem to stop the leak I see.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Chris.
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JRuby-Rack-JMS-support---RubyThread-leak-tp26372962p26476807.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26473581</id>
	<title>Re: Stupid question (hopefully) on become_java!</title>
	<published>2009-11-22T23:10:59Z</published>
	<updated>2009-11-22T23:10:59Z</updated>
	<author>
		<name>Chris Nelson-5</name>
	</author>
	<content type="html">Nevermind, figured out that I needed to require &amp;#39;core_ext&amp;#39; and that become_java! gives me the java class I need.  Making progress again.&lt;br&gt;&lt;br&gt;--Chris&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Mon, Nov 23, 2009 at 1:49 AM, Chris Nelson &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26473581&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;me@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;All,&lt;br&gt;&lt;br&gt;I&amp;#39;ve been furiously coding on the hibernate stuff I demoed at JRubyconf today as I wait for my airplane and am trying to get annotations working.  The API for the annotation configuration wants me to call an addAnnotatedClass method and pass in the java class of the model.  I&amp;#39;m thinking after I call become_java! there ought be some way to get the java class in ruby code, but so far I have been unsuccessful.  I tried calling JClass.for_name(&amp;quot;ruby.Event&amp;quot;) and that didn&amp;#39;t seem to do it, and I can&amp;#39;t find a ruby method to do it either.  Weirder still, I tried to experiment with all this in jirb but when I create a class in jirb and call become_java! on it I get an undefined method error.  All this leads me to believe I am missing something obvious and silly.  Can someone clue me in?&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;
&lt;br&gt;--Chris&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Stupid-question-%28hopefully%29-on-become_java%21-tp26473464p26473581.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26473464</id>
	<title>Stupid question (hopefully) on become_java!</title>
	<published>2009-11-22T22:49:28Z</published>
	<updated>2009-11-22T22:49:28Z</updated>
	<author>
		<name>Chris Nelson-5</name>
	</author>
	<content type="html">All,&lt;br&gt;&lt;br&gt;I&amp;#39;ve been furiously coding on the hibernate stuff I demoed at JRubyconf today as I wait for my airplane and am trying to get annotations working.  The API for the annotation configuration wants me to call an addAnnotatedClass method and pass in the java class of the model.  I&amp;#39;m thinking after I call become_java! there ought be some way to get the java class in ruby code, but so far I have been unsuccessful.  I tried calling JClass.for_name(&amp;quot;ruby.Event&amp;quot;) and that didn&amp;#39;t seem to do it, and I can&amp;#39;t find a ruby method to do it either.  Weirder still, I tried to experiment with all this in jirb but when I create a class in jirb and call become_java! on it I get an undefined method error.  All this leads me to believe I am missing something obvious and silly.  Can someone clue me in?&lt;br&gt;
&lt;br&gt;--Chris&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Stupid-question-%28hopefully%29-on-become_java%21-tp26473464p26473464.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26472475</id>
	<title>Re: &quot;state of the art&quot; in rails, and jruby?</title>
	<published>2009-11-22T19:53:17Z</published>
	<updated>2009-11-22T19:53:17Z</updated>
	<author>
		<name>Hassan Schroeder-2</name>
	</author>
	<content type="html">On Sun, Nov 22, 2009 at 8:44 AM, Michael Campbell
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26472475&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;michael.campbell@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; I have a commercial website for my wife's business that's written using Java
&lt;br&gt;&amp;gt; (jsps + servlet, WebWork, Ibatis).   I have wanted to redo it in rails for
&lt;br&gt;&amp;gt; some time now (3 years!), but time has conspired against me.
&lt;br&gt;&lt;br&gt;Funny, I'm in almost exactly that same situation :-)
&lt;br&gt;&lt;br&gt;&amp;gt; My question boils down to, what are the jruby's team's thoughts or plans on
&lt;br&gt;&amp;gt; keeping up with all this?  Is &amp;quot;running rails&amp;quot; a high priority
&lt;br&gt;&lt;br&gt;Not speaking for anyone but myself, but having just spent most of
&lt;br&gt;today at JRubyConf SF (and thanks to EngineYard and the rest of
&lt;br&gt;the sponsors for a job well done!) -- I'd say yes, Rails running on
&lt;br&gt;JRuby is a priority.
&lt;br&gt;&lt;br&gt;That's not to say that it's exactly like running MRI; you have to be
&lt;br&gt;aware of gems with native extensions, etc. but there's no reason I
&lt;br&gt;can see for you to hesitate to &amp;nbsp;jump on board.
&lt;br&gt;&lt;br&gt;HTH,
&lt;br&gt;-- 
&lt;br&gt;Hassan Schroeder ------------------------ &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26472475&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hassan.schroeder@...&lt;/a&gt;
&lt;br&gt;twitter: @hassan
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/%22state-of-the-art%22-in-rails%2C-and-jruby--tp26466901p26472475.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26467223</id>
	<title>Re: &quot;state of the art&quot; in rails, and jruby?</title>
	<published>2009-11-22T09:19:20Z</published>
	<updated>2009-11-22T09:19:20Z</updated>
	<author>
		<name>Vladimir Sizikov-2</name>
	</author>
	<content type="html">Hi Michael,
&lt;br&gt;&lt;br&gt;On Sun, Nov 22, 2009 at 5:44 PM, Michael Campbell
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26467223&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;michael.campbell@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; I could of course do this in jruby/rails, which is my current thought, but
&lt;br&gt;&amp;gt; am a little nervous with the flux in the rails world with respect to the
&lt;br&gt;&amp;gt; upcoming merb &amp;quot;merge&amp;quot;.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; My question boils down to, what are the jruby's team's thoughts or plans on
&lt;br&gt;&amp;gt; keeping up with all this?  Is &amp;quot;running rails&amp;quot; a high priority
&lt;br&gt;&lt;br&gt;I could probably say with confidence that running rails is always a
&lt;br&gt;priority, and JRuby does that great right now and for sure will
&lt;br&gt;continue to do so in the future. My understanding is that now JRuby is
&lt;br&gt;a popular alternative to MRI and since many folks do run JRuby on
&lt;br&gt;Rails, the rails core team itself also tests with JRuby.
&lt;br&gt;&lt;br&gt;Not to mention that Yehuda Katz, a lead dev of Merb, works at Engine
&lt;br&gt;Yard, exactly where the 3 core JRuby guys are. I'm sure they will
&lt;br&gt;figure this stuff out :)
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&amp;nbsp; --Vladimir
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/%22state-of-the-art%22-in-rails%2C-and-jruby--tp26466901p26467223.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26467068</id>
	<title>Re: &quot;state of the art&quot; in rails, and jruby?</title>
	<published>2009-11-22T08:56:37Z</published>
	<updated>2009-11-22T08:56:37Z</updated>
	<author>
		<name>Joseph Athman</name>
	</author>
	<content type="html">Not to speak for any of the core developers, but as long as Rails stays as Ruby only code (which I&amp;#39;m sure it always will) then it should always work fine with JRuby.  I think Rails 3.x is targeting Ruby 1.8.7 which JRuby already supports so you really shouldn&amp;#39;t have anything to worry about.  Obviously its possible that some change in Rails could expose an incompatibility with JRuby, but I&amp;#39;m sure it would get fixed very quickly.  JRuby is designed to run (basically) any Ruby code out there so Rails should always work just fine.  &lt;div&gt;
&lt;br&gt;&lt;/div&gt;&lt;div&gt;I suppose there could possibly be issues with the ActiveRecord JDBC adapters since those are a little more Rails dependent but I&amp;#39;m sure the plan would be to update them to work with Rails 3 (if the don&amp;#39;t already).  Maybe Nick has some better idea about this.&lt;div&gt;
&lt;br&gt;&lt;/div&gt;&lt;div&gt;Joe&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Sun, Nov 22, 2009 at 10:44 AM, Michael Campbell &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26467068&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;michael.campbell@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;I have a commercial website for my wife&amp;#39;s business that&amp;#39;s written using Java (jsps + servlet, WebWork, Ibatis).   I have wanted to redo it in rails for some time now (3 years!), but time has conspired against me.&lt;br&gt;

&lt;br&gt;
If I should be able to do this, I&amp;#39;d like to stick with my current hosting provider as they&amp;#39;re inexpensive, good service, and local.  They are, however, a Tomcat shop.&lt;br&gt;
&lt;br&gt;
I could of course do this in jruby/rails, which is my current thought, but am a little nervous with the flux in the rails world with respect to the upcoming merb &amp;quot;merge&amp;quot;.&lt;br&gt;
&lt;br&gt;
My question boils down to, what are the jruby&amp;#39;s team&amp;#39;s thoughts or plans on keeping up with all this?  Is &amp;quot;running rails&amp;quot; a high priority inasmuch as when Rails starts making some big changes (and to be fair, this might already be happening; I haven&amp;#39;t paid a WHOLE lot of attention after the announcement)?  Or is jruby to the point now where Rails changes can&amp;#39;t really break it?&lt;br&gt;

&lt;br&gt;
I know nothing is ever going to be absolute, but wanted to get a feel for priorities and general thoughts.&lt;br&gt;
&lt;br&gt;
Thanks.&lt;br&gt;
&lt;br&gt;
---------------------------------------------------------------------&lt;br&gt;
To unsubscribe from this list, please visit:&lt;br&gt;
&lt;br&gt;
   &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/%22state-of-the-art%22-in-rails%2C-and-jruby--tp26466901p26467068.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26466901</id>
	<title>&quot;state of the art&quot; in rails, and jruby?</title>
	<published>2009-11-22T08:44:18Z</published>
	<updated>2009-11-22T08:44:18Z</updated>
	<author>
		<name>Michael Campbell-4</name>
	</author>
	<content type="html">I have a commercial website for my wife's business that's written using 
&lt;br&gt;Java (jsps + servlet, WebWork, Ibatis). &amp;nbsp; I have wanted to redo it in 
&lt;br&gt;rails for some time now (3 years!), but time has conspired against me.
&lt;br&gt;&lt;br&gt;If I should be able to do this, I'd like to stick with my current 
&lt;br&gt;hosting provider as they're inexpensive, good service, and local. &amp;nbsp;They 
&lt;br&gt;are, however, a Tomcat shop.
&lt;br&gt;&lt;br&gt;I could of course do this in jruby/rails, which is my current thought, 
&lt;br&gt;but am a little nervous with the flux in the rails world with respect to 
&lt;br&gt;the upcoming merb &amp;quot;merge&amp;quot;.
&lt;br&gt;&lt;br&gt;My question boils down to, what are the jruby's team's thoughts or plans 
&lt;br&gt;on keeping up with all this? &amp;nbsp;Is &amp;quot;running rails&amp;quot; a high priority 
&lt;br&gt;inasmuch as when Rails starts making some big changes (and to be fair, 
&lt;br&gt;this might already be happening; I haven't paid a WHOLE lot of attention 
&lt;br&gt;after the announcement)? &amp;nbsp;Or is jruby to the point now where Rails 
&lt;br&gt;changes can't really break it?
&lt;br&gt;&lt;br&gt;I know nothing is ever going to be absolute, but wanted to get a feel 
&lt;br&gt;for priorities and general thoughts.
&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/%22state-of-the-art%22-in-rails%2C-and-jruby--tp26466901p26466901.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26460590</id>
	<title>[ANN] Scuby 0.1 - Scala-JRuby integration</title>
	<published>2009-11-21T13:36:40Z</published>
	<updated>2009-11-21T13:36:40Z</updated>
	<author>
		<name>Mario Camou</name>
	</author>
	<content type="html">Hi everyone,
&lt;br&gt;&lt;br&gt;I am proud to release my first open-source Ruby and Scala project:
&lt;br&gt;Scuby. From the README:
&lt;br&gt;&lt;br&gt;Scuby is a thin integration layer between Scala and JRuby. It aims to
&lt;br&gt;provide DSLs for Scala and JRuby to ease interoperability. The
&lt;br&gt;original inspiration came from a couple of articles published by
&lt;br&gt;Daniel Spiewak at his blog, &lt;a href=&quot;http://www.codecommit.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.codecommit.com&lt;/a&gt;. These are the
&lt;br&gt;two articles:
&lt;br&gt;&lt;br&gt;JRuby Interop DSL in Scala
&lt;br&gt;(&lt;a href=&quot;http://www.codecommit.com/blog/ruby/jruby-interop-dsl-in-scala&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.codecommit.com/blog/ruby/jruby-interop-dsl-in-scala&lt;/a&gt;)
&lt;br&gt;Integrating Scala into JRuby
&lt;br&gt;(&lt;a href=&quot;http://www.codecommit.com/blog/ruby/integrating-scala-into-jruby&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.codecommit.com/blog/ruby/integrating-scala-into-jruby&lt;/a&gt;)
&lt;br&gt;&lt;br&gt;The idea architecture came also from a post by Ola Bini called
&lt;br&gt;&amp;quot;Fractal Programming&amp;quot;
&lt;br&gt;(&lt;a href=&quot;http://olabini.com/blog/2008/06/fractal-programming/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://olabini.com/blog/2008/06/fractal-programming/&lt;/a&gt;) in which he
&lt;br&gt;talks about dividing a program in 3 layers: the static layer for
&lt;br&gt;performance-critical functionality and those functions in which type
&lt;br&gt;safety is paramount, a dynamic layer where you create a DSL, and a DSL
&lt;br&gt;layer where the bulk of the business logic resides.
&lt;br&gt;&lt;br&gt;Scuby will be publicly presented at the 2009 RubyConf, in the talk
&lt;br&gt;&amp;quot;Ruby is from Mars, Functional Languages are from Venus: Integrating
&lt;br&gt;Ruby with Erlang, Scala or F#&amp;quot; by Angela O.K. Wright.
&lt;br&gt;&lt;br&gt;The project is sponsored by Abstra.cc (&lt;a href=&quot;http://www.abstra.cc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.abstra.cc&lt;/a&gt;) where we
&lt;br&gt;use it for our internal development.
&lt;br&gt;&lt;br&gt;Scuby can be found on GitHub (primary repository) at
&lt;br&gt;&lt;a href=&quot;http://github.com/mcamou/scuby&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://github.com/mcamou/scuby&lt;/a&gt;, and on Kenai (secondary repository) at
&lt;br&gt;&lt;a href=&quot;http://kenai.com/projects/scuby&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://kenai.com/projects/scuby&lt;/a&gt;&lt;br&gt;&lt;br&gt;Enjoy!
&lt;br&gt;-Mario.
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-ANN--Scuby-0.1---Scala-JRuby-integration-tp26460590p26460590.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26459011</id>
	<title>Nailgun slower than stock JRuby?</title>
	<published>2009-11-21T10:20:31Z</published>
	<updated>2009-11-21T10:20:31Z</updated>
	<author>
		<name>Don Werve-3</name>
	</author>
	<content type="html">&lt;div&gt;&lt;div&gt;I&amp;#39;ve been experimenting with using Nailgun to speed up rake tasks, to make developing a Rails app on JRuby a little more pleasant.  But the odd thing is, Nailgun actually seems to be slower at most tasks than just running Java: &lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;(First run is to warm up the nailgun):&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;    $ time jruby --ng -S rake environment&lt;/div&gt;&lt;div&gt;    real&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;0m18.704s&lt;/div&gt;&lt;div&gt;
    user&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;0m0.010s&lt;/div&gt;&lt;div&gt;    sys&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;0m0.023s&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;And then after that:&lt;/div&gt;&lt;div&gt;
&lt;br&gt;&lt;/div&gt;&lt;div&gt;    $ time jruby --ng -S rake environment&lt;/div&gt;&lt;div&gt;    real&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;0m12.418s&lt;/div&gt;&lt;div&gt;    user&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;0m0.010s&lt;/div&gt;
&lt;div&gt;    sys&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;0m0.024s&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;    $ time jruby -S rake environment&lt;/div&gt;&lt;div&gt;    real&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;0m8.788s&lt;/div&gt;
&lt;div&gt;    user&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;0m8.951s&lt;/div&gt;&lt;div&gt;    sys&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;0m0.605s&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;The operating system is OS X Snow Leopard:&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;    $ uname -mrsv&lt;/div&gt;&lt;div&gt;    Darwin 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov  3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;    $ java -version -d32 -server&lt;/div&gt;
&lt;div&gt;    java version &amp;quot;1.6.0_15&amp;quot;&lt;/div&gt;&lt;div&gt;    Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219)&lt;/div&gt;&lt;div&gt;    Java HotSpot(TM) Server VM (build 14.1-b02-90, mixed mode)&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;The only bit of oddness in my setup that I can think of is that I&amp;#39;m running the JVM in 32-bit mode, with &amp;#39;JAVA_OPTS=-d32 -server&amp;#39;.  If I pull this out, go to a 64-bit JVM, and warm up Nailgun, here&amp;#39;s what I get:&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;    $ java -version&lt;/div&gt;&lt;div&gt;    java version &amp;quot;1.6.0_15&amp;quot;&lt;/div&gt;&lt;div&gt;    Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219)&lt;/div&gt;&lt;div&gt;    Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode)&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;    $ time jruby -S rake environment&lt;/div&gt;&lt;div&gt;    real&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;0m13.618s&lt;/div&gt;&lt;div&gt;    user&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;0m20.729s&lt;/div&gt;
&lt;div&gt;    sys&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;0m1.108s&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;    $ time jruby --ng -S rake environment&lt;/div&gt;&lt;div&gt;    real&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;0m11.550s&lt;/div&gt;
&lt;div&gt;    user&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;0m0.010s&lt;/div&gt;&lt;div&gt;    sys&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;0m0.024s&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;This is pretty much the opposite of my experience with running JRuby apps with the &amp;#39;-d32&amp;#39; option, so I&amp;#39;m curious what I&amp;#39;m missing.  Any ideas as to what I&amp;#39;m doing wrong?&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Nailgun-slower-than-stock-JRuby--tp26459011p26459011.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26456771</id>
	<title>Re: [ANN] Using JRuby+Java to prototype audio VST  plugins</title>
	<published>2009-11-21T05:50:51Z</published>
	<updated>2009-11-21T05:50:51Z</updated>
	<author>
		<name>thbar</name>
	</author>
	<content type="html">Hi guys,&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;thanks for all the comments on FFI, that will be helpful.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;-- Thibaut&lt;br&gt;&lt;/div&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-ANN--Using-JRuby%2BJava-to-prototype-audio-VST-plugins-tp26417763p26456771.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26456633</id>
	<title>Re: Help: Can't require gems</title>
	<published>2009-11-21T05:37:40Z</published>
	<updated>2009-11-21T05:37:40Z</updated>
	<author>
		<name>Peter Ritchie</name>
	</author>
	<content type="html">Aaron McLeod wrote:
&lt;br&gt;&amp;gt; Im not sure how you may type it in jruby, but in ruby mri you usually 
&lt;br&gt;&amp;gt; need
&lt;br&gt;&amp;gt; to require rubygems as well.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; require 'rubygems'
&lt;br&gt;&lt;br&gt;&lt;br&gt;Oh, yeah, that's the point. Im Sorry. Just used Rails before, and never 
&lt;br&gt;had to do this there. ;)
&lt;br&gt;-- 
&lt;br&gt;Posted via &lt;a href=&quot;http://www.ruby-forum.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ruby-forum.com/&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Help%3A-Can%27t-require-gems-tp26456247p26456633.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26456372</id>
	<title>Re: Help: Can't require gems</title>
	<published>2009-11-21T05:00:47Z</published>
	<updated>2009-11-21T05:00:47Z</updated>
	<author>
		<name>Aaron McLeod</name>
	</author>
	<content type="html">Im not sure how you may type it in jruby, but in ruby mri you usually need to require rubygems as well.&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;require &amp;#39;rubygems&amp;#39;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Sat, Nov 21, 2009 at 7:43 AM, Nils Ha &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26456372&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lists@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;I just installed JRuby by downloading the source and then using ant.&lt;br&gt;
&lt;br&gt;
I installed the gem &amp;quot;profligacy&amp;quot; for the easy use of Swing.&lt;br&gt;
&lt;br&gt;
Now i wanted to try out the examples, but when using:&lt;br&gt;
&lt;br&gt;
require &amp;#39;profligacy&amp;#39;&lt;br&gt;
&lt;br&gt;
it says:&lt;br&gt;
&lt;br&gt;
test.rb:1:in `require&amp;#39;: no such file to load -- profligacy (LoadError)&lt;br&gt;
  from test.rb:1&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
What did i do wrong ?&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;--&lt;br&gt;
Posted via &lt;a href=&quot;http://www.ruby-forum.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.ruby-forum.com/&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
---------------------------------------------------------------------&lt;br&gt;
To unsubscribe from this list, please visit:&lt;br&gt;
&lt;br&gt;
    &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Aaron McLeod&lt;br&gt;&lt;a href=&quot;http://agmprojects.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://agmprojects.com&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Help%3A-Can%27t-require-gems-tp26456247p26456372.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26456247</id>
	<title>Help: Can't require gems</title>
	<published>2009-11-21T04:43:45Z</published>
	<updated>2009-11-21T04:43:45Z</updated>
	<author>
		<name>Peter Ritchie</name>
	</author>
	<content type="html">I just installed JRuby by downloading the source and then using ant.
&lt;br&gt;&lt;br&gt;I installed the gem &amp;quot;profligacy&amp;quot; for the easy use of Swing.
&lt;br&gt;&lt;br&gt;Now i wanted to try out the examples, but when using:
&lt;br&gt;&lt;br&gt;require 'profligacy'
&lt;br&gt;&lt;br&gt;it says:
&lt;br&gt;&lt;br&gt;test.rb:1:in `require': no such file to load -- profligacy (LoadError)
&lt;br&gt;&amp;nbsp; from test.rb:1
&lt;br&gt;&lt;br&gt;&lt;br&gt;What did i do wrong ?
&lt;br&gt;-- 
&lt;br&gt;Posted via &lt;a href=&quot;http://www.ruby-forum.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ruby-forum.com/&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Help%3A-Can%27t-require-gems-tp26456247p26456247.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26450131</id>
	<title>Re: StringIndexOutOfBoundsException with RSpec + Parsing  YAML</title>
	<published>2009-11-20T12:55:16Z</published>
	<updated>2009-11-20T12:55:16Z</updated>
	<author>
		<name>António Alegria</name>
	</author>
	<content type="html">Ouch, I need some sleep. Anyways, the spec should fail and not crash, I guess. It runs onMRI 1.8.7.&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Thanks a lot for the help.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Antonio Alegria&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Nov 20, 2009 at 8:02 PM, Vladimir Sizikov &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26450131&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vsizikov@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;Hi António,&lt;br&gt;
&lt;br&gt;
But you do realize that you&amp;#39;re loading not the YAML file, but the rb&lt;br&gt;
file itself? :)&lt;br&gt;
&lt;br&gt;
YAML.load_file &amp;quot;config_yaml_spec.rb&amp;quot;&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
  --Vladimir&lt;br&gt;
&lt;br&gt;
2009/11/20 António Alegria &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26450131&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;antoniomcalegria@...&lt;/a&gt;&amp;gt;:&lt;br&gt;
&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&amp;gt; Hi,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; When doing jspec config_yaml_spec.rb (attached) a java&lt;br&gt;
&amp;gt; StringIndexOutOfBoundsException occurs.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; The strangest part is that small changes in the script, such as removing one&lt;br&gt;
&amp;gt; RSpec example or removing the whole describe block and running it with plain&lt;br&gt;
&amp;gt; JRuby doesn&amp;#39;t raise this error.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Used Platform:&lt;br&gt;
&amp;gt; --------------------&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; JRuby version: jruby 1.4.0 (ruby 1.8.7 patchlevel 174) (2009-11-16 6586)&lt;br&gt;
&amp;gt; (Java HotSpot(TM) Client VM 1.6.0_03-p3) [i386-java]&lt;br&gt;
&amp;gt; Mac OS X 10.5 with Soylatte 1.6 1.0.3 i386&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Full Exception:&lt;br&gt;
&amp;gt; --------------------&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; String.java:398:in `checkBounds&amp;#39;: java.lang.StringIndexOutOfBoundsException:&lt;br&gt;
&amp;gt; String index out of range: -1&lt;br&gt;
&amp;gt;     from String.java:443:in `&amp;lt;init&amp;gt;&amp;#39;&lt;br&gt;
&amp;gt;     from RubyErrHandler.java:28:in `handle&amp;#39;&lt;br&gt;
&amp;gt;     from TokenScanner.java:19:in `error&amp;#39;&lt;br&gt;
&amp;gt;     from DefaultYAMLParser.java:803:in `yyerror&amp;#39;&lt;br&gt;
&amp;gt;     from DefaultYAMLParser.java:329:in `yyparse&amp;#39;&lt;br&gt;
&amp;gt;     from Parser.java:290:in `yechtparse&amp;#39;&lt;br&gt;
&amp;gt;     from Parser.java:284:in `parse&amp;#39;&lt;br&gt;
&amp;gt;     from YParser.java:152:in `load&amp;#39;&lt;br&gt;
&amp;gt;     from org/yecht/ruby/YParser$s_method_0_1$RUBYINVOKER$load.gen:-1:in&lt;br&gt;
&amp;gt; `call&amp;#39;&lt;br&gt;
&amp;gt;     from JavaMethod.java:623:in `call&amp;#39;&lt;br&gt;
&amp;gt;     from DynamicMethod.java:176:in `call&amp;#39;&lt;br&gt;
&amp;gt;     from CachingCallSite.java:147:in `call&amp;#39;&lt;br&gt;
&amp;gt;     from CallOneArgNode.java:57:in `interpret&amp;#39;&lt;br&gt;
&amp;gt;     from LocalAsgnNode.java:123:in `interpret&amp;#39;&lt;br&gt;
&amp;gt;     from NewlineNode.java:104:in `interpret&amp;#39;&lt;br&gt;
&amp;gt;     from InterpretedMethod.java:173:in `call&amp;#39;&lt;br&gt;
&amp;gt;     from DefaultMethod.java:169:in `call&amp;#39;&lt;br&gt;
&amp;gt;     from CachingCallSite.java:147:in `call&amp;#39;&lt;br&gt;
&amp;gt;     from FCallOneArgNode.java:36:in `interpret&amp;#39;&lt;br&gt;
&amp;gt;     from NewlineNode.java:104:in `interpret&amp;#39;&lt;br&gt;
&amp;gt;     from InterpretedBlock.java:317:in `evalBlockBody&amp;#39;&lt;br&gt;
&amp;gt;     from InterpretedBlock.java:268:in `yield&amp;#39;&lt;br&gt;
&amp;gt;     from Block.java:194:in `yield&amp;#39;&lt;br&gt;
&amp;gt;     from RubyIO.java:1067:in `open&amp;#39;&lt;br&gt;
&amp;gt;     from org/jruby/RubyIO$s_method_0_2$RUBYFRAMEDINVOKER$open.gen:-1:in&lt;br&gt;
&amp;gt; `call&amp;#39;&lt;br&gt;
&amp;gt;     from DynamicMethod.java:180:in `call&amp;#39;&lt;br&gt;
&amp;gt;     from CachingCallSite.java:156:in `callBlock&amp;#39;&lt;br&gt;
&amp;gt;     from CachingCallSite.java:163:in `call&amp;#39;&lt;br&gt;
&amp;gt;     from CallOneArgBlockNode.java:60:in `interpret&amp;#39;&lt;br&gt;
&amp;gt;     from NewlineNode.java:104:in `interpret&amp;#39;&lt;br&gt;
&amp;gt;     from InterpretedMethod.java:173:in `call&amp;#39;&lt;br&gt;
&amp;gt;     from DefaultMethod.java:169:in `call&amp;#39;&lt;br&gt;
&amp;gt;     from CachingCallSite.java:310:in `cacheAndCall&amp;#39;&lt;br&gt;
&amp;gt;     from CachingCallSite.java:149:in `call&amp;#39;&lt;br&gt;
&amp;gt;     from CallOneArgNode.java:57:in `interpret&amp;#39;&lt;br&gt;
&amp;gt;     from NewlineNode.java:104:in `interpret&amp;#39;&lt;br&gt;
&amp;gt;     from BlockNode.java:71:in `interpret&amp;#39;&lt;br&gt;
&amp;gt;     from RootNode.java:129:in `interpret&amp;#39;&lt;br&gt;
&amp;gt;     from Ruby.java:2419:in `loadFile&amp;#39;&lt;br&gt;
&amp;gt;     from ExternalScript.java:64:in `load&amp;#39;&lt;br&gt;
&amp;gt;     from LoadService.java:249:in `load&amp;#39;&lt;br&gt;
&amp;gt;     from RubyKernel.java:932:in `load&amp;#39;&lt;br&gt;
&amp;gt;     from org/jruby/RubyKernel$s_method_0_1$RUBYFRAMEDINVOKER$load.gen:-1:in&lt;br&gt;
&amp;gt; `call&amp;#39;&lt;br&gt;
&amp;gt;     from DynamicMethod.java:180:in `call&amp;#39;&lt;br&gt;
&amp;gt;     from DynamicMethod.java:176:in `call&amp;#39;&lt;br&gt;
&amp;gt;     from CachingCallSite.java:147:in `call&amp;#39;&lt;br&gt;
&amp;gt;     from FCallOneArgNode.java:36:in `interpret&amp;#39;&lt;br&gt;
&amp;gt;     from NewlineNode.java:104:in `interpret&amp;#39;&lt;br&gt;
&amp;gt;     from InterpretedBlock.java:317:in `evalBlockBody&amp;#39;&lt;br&gt;
&amp;gt;     from InterpretedBlock.java:268:in `yield&amp;#39;&lt;br&gt;
&amp;gt;     from Block.java:194:in `yield&amp;#39;&lt;br&gt;
&amp;gt;     from RubyArray.java:1635:in `eachCommon&amp;#39;&lt;br&gt;
&amp;gt;     from RubyArray.java:1642:in `each&amp;#39;&lt;br&gt;
&amp;gt;     from org/jruby/RubyArray$i_method_0_0$RUBYFRAMEDINVOKER$each.gen:-1:in&lt;br&gt;
&amp;gt; `call&amp;#39;&lt;br&gt;
&amp;gt;     from CachingCallSite.java:116:in `callBlock&amp;#39;&lt;br&gt;
&amp;gt;     from CachingCallSite.java:123:in `call&amp;#39;&lt;br&gt;
&amp;gt;     from CallNoArgBlockNode.java:64:in `interpret&amp;#39;&lt;br&gt;
&amp;gt;     from NewlineNode.java:104:in `interpret&amp;#39;&lt;br&gt;
&amp;gt;     from BlockNode.java:71:in `interpret&amp;#39;&lt;br&gt;
&amp;gt;     from InterpretedMethod.java:173:in `call&amp;#39;&lt;br&gt;
&amp;gt;     from DefaultMethod.java:169:in `call&amp;#39;&lt;br&gt;
&amp;gt;     from CachingCallSite.java:147:in `call&amp;#39;&lt;br&gt;
&amp;gt;     from CallOneArgNode.java:57:in `interpret&amp;#39;&lt;br&gt;
&amp;gt;     from NewlineNode.java:104:in `interpret&amp;#39;&lt;br&gt;
&amp;gt;     from BlockNode.java:71:in `interpret&amp;#39;&lt;br&gt;
&amp;gt;     from IfNode.java:119:in `interpret&amp;#39;&lt;br&gt;
&amp;gt;     from NewlineNode.java:104:in `interpret&amp;#39;&lt;br&gt;
&amp;gt;     from BlockNode.java:71:in `interpret&amp;#39;&lt;br&gt;
&amp;gt;     from EnsureNode.java:96:in `interpret&amp;#39;&lt;br&gt;
&amp;gt;     from BeginNode.java:83:in `interpret&amp;#39;&lt;br&gt;
&amp;gt;     from NewlineNode.java:104:in `interpret&amp;#39;&lt;br&gt;
&amp;gt;     from BlockNode.java:71:in `interpret&amp;#39;&lt;br&gt;
&amp;gt;     from InterpretedMethod.java:136:in `call&amp;#39;&lt;br&gt;
&amp;gt;     from DefaultMethod.java:153:in `call&amp;#39;&lt;br&gt;
&amp;gt;     from CachingCallSite.java:290:in `cacheAndCall&amp;#39;&lt;br&gt;
&amp;gt;     from CachingCallSite.java:109:in `call&amp;#39;&lt;br&gt;
&amp;gt;     from CallNoArgNode.java:61:in `interpret&amp;#39;&lt;br&gt;
&amp;gt;     from OrNode.java:97:in `interpret&amp;#39;&lt;br&gt;
&amp;gt;     from NewlineNode.java:104:in `interpret&amp;#39;&lt;br&gt;
&amp;gt;     from InterpretedMethod.java:136:in `call&amp;#39;&lt;br&gt;
&amp;gt;     from DefaultMethod.java:153:in `call&amp;#39;&lt;br&gt;
&amp;gt;     from CachingCallSite.java:290:in `cacheAndCall&amp;#39;&lt;br&gt;
&amp;gt;     from CachingCallSite.java:109:in `call&amp;#39;&lt;br&gt;
&amp;gt;     from VCallNode.java:85:in `interpret&amp;#39;&lt;br&gt;
&amp;gt;     from FCallOneArgNode.java:36:in `interpret&amp;#39;&lt;br&gt;
&amp;gt;     from IfNode.java:119:in `interpret&amp;#39;&lt;br&gt;
&amp;gt;     from NewlineNode.java:104:in `interpret&amp;#39;&lt;br&gt;
&amp;gt;     from InterpretedBlock.java:317:in `evalBlockBody&amp;#39;&lt;br&gt;
&amp;gt;     from InterpretedBlock.java:305:in `yield&amp;#39;&lt;br&gt;
&amp;gt;     from BlockBody.java:72:in `call&amp;#39;&lt;br&gt;
&amp;gt;     from BlockBody.java:78:in `call&amp;#39;&lt;br&gt;
&amp;gt;     from Block.java:89:in `call&amp;#39;&lt;br&gt;
&amp;gt;     from RubyProc.java:221:in `call&amp;#39;&lt;br&gt;
&amp;gt;     from RubyProc.java:204:in `call&amp;#39;&lt;br&gt;
&amp;gt;     from Ruby.java:2616:in `tearDown&amp;#39;&lt;br&gt;
&amp;gt;     from Main.java:274:in `run&amp;#39;&lt;br&gt;
&amp;gt;     from Main.java:117:in `run&amp;#39;&lt;br&gt;
&amp;gt;     from Main.java:97:in `main&amp;#39;&lt;br&gt;
&amp;gt; ---&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thanks,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Antonio Alegria&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&amp;gt; ---------------------------------------------------------------------&lt;br&gt;
&amp;gt; To unsubscribe from this list, please visit:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;    &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;br&gt;
---------------------------------------------------------------------&lt;br&gt;
To unsubscribe from this list, please visit:&lt;br&gt;
&lt;br&gt;
    &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/StringIndexOutOfBoundsException-with-RSpec-%2B-Parsing-YAML-tp26449351p26450131.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26449964</id>
	<title>Re: StringIndexOutOfBoundsException with RSpec + Parsing  YAML</title>
	<published>2009-11-20T12:41:08Z</published>
	<updated>2009-11-20T12:41:08Z</updated>
	<author>
		<name>Vladimir Sizikov-2</name>
	</author>
	<content type="html">So I've filed the bug:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://jira.codehaus.org/browse/JRUBY-4254&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jira.codehaus.org/browse/JRUBY-4254&lt;/a&gt;&lt;br&gt;&lt;br&gt;No matter how bad the input data is, JRuby/yecht should not crash.
&lt;br&gt;I've also added a simple patch for yecht that fixes the problem, but I
&lt;br&gt;need Ola's OK for that.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&amp;nbsp; --Vladimir
&lt;br&gt;&lt;br&gt;2009/11/20 António Alegria &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26449964&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;antoniomcalegria@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When doing jspec config_yaml_spec.rb (attached) a java
&lt;br&gt;&amp;gt; StringIndexOutOfBoundsException occurs.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The strangest part is that small changes in the script, such as removing one
&lt;br&gt;&amp;gt; RSpec example or removing the whole describe block and running it with plain
&lt;br&gt;&amp;gt; JRuby doesn't raise this error.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Used Platform:
&lt;br&gt;&amp;gt; --------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; JRuby version: jruby 1.4.0 (ruby 1.8.7 patchlevel 174) (2009-11-16 6586)
&lt;br&gt;&amp;gt; (Java HotSpot(TM) Client VM 1.6.0_03-p3) [i386-java]
&lt;br&gt;&amp;gt; Mac OS X 10.5 with Soylatte 1.6 1.0.3 i386
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Full Exception:
&lt;br&gt;&amp;gt; --------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; String.java:398:in `checkBounds': java.lang.StringIndexOutOfBoundsException:
&lt;br&gt;&amp;gt; String index out of range: -1
&lt;br&gt;&amp;gt;     from String.java:443:in `&amp;lt;init&amp;gt;'
&lt;br&gt;&amp;gt;     from RubyErrHandler.java:28:in `handle'
&lt;br&gt;&amp;gt;     from TokenScanner.java:19:in `error'
&lt;br&gt;&amp;gt;     from DefaultYAMLParser.java:803:in `yyerror'
&lt;br&gt;&amp;gt;     from DefaultYAMLParser.java:329:in `yyparse'
&lt;br&gt;&amp;gt;     from Parser.java:290:in `yechtparse'
&lt;br&gt;&amp;gt;     from Parser.java:284:in `parse'
&lt;br&gt;&amp;gt;     from YParser.java:152:in `load'
&lt;br&gt;&amp;gt;     from org/yecht/ruby/YParser$s_method_0_1$RUBYINVOKER$load.gen:-1:in
&lt;br&gt;&amp;gt; `call'
&lt;br&gt;&amp;gt;     from JavaMethod.java:623:in `call'
&lt;br&gt;&amp;gt;     from DynamicMethod.java:176:in `call'
&lt;br&gt;&amp;gt;     from CachingCallSite.java:147:in `call'
&lt;br&gt;&amp;gt;     from CallOneArgNode.java:57:in `interpret'
&lt;br&gt;&amp;gt;     from LocalAsgnNode.java:123:in `interpret'
&lt;br&gt;&amp;gt;     from NewlineNode.java:104:in `interpret'
&lt;br&gt;&amp;gt;     from InterpretedMethod.java:173:in `call'
&lt;br&gt;&amp;gt;     from DefaultMethod.java:169:in `call'
&lt;br&gt;&amp;gt;     from CachingCallSite.java:147:in `call'
&lt;br&gt;&amp;gt;     from FCallOneArgNode.java:36:in `interpret'
&lt;br&gt;&amp;gt;     from NewlineNode.java:104:in `interpret'
&lt;br&gt;&amp;gt;     from InterpretedBlock.java:317:in `evalBlockBody'
&lt;br&gt;&amp;gt;     from InterpretedBlock.java:268:in `yield'
&lt;br&gt;&amp;gt;     from Block.java:194:in `yield'
&lt;br&gt;&amp;gt;     from RubyIO.java:1067:in `open'
&lt;br&gt;&amp;gt;     from org/jruby/RubyIO$s_method_0_2$RUBYFRAMEDINVOKER$open.gen:-1:in
&lt;br&gt;&amp;gt; `call'
&lt;br&gt;&amp;gt;     from DynamicMethod.java:180:in `call'
&lt;br&gt;&amp;gt;     from CachingCallSite.java:156:in `callBlock'
&lt;br&gt;&amp;gt;     from CachingCallSite.java:163:in `call'
&lt;br&gt;&amp;gt;     from CallOneArgBlockNode.java:60:in `interpret'
&lt;br&gt;&amp;gt;     from NewlineNode.java:104:in `interpret'
&lt;br&gt;&amp;gt;     from InterpretedMethod.java:173:in `call'
&lt;br&gt;&amp;gt;     from DefaultMethod.java:169:in `call'
&lt;br&gt;&amp;gt;     from CachingCallSite.java:310:in `cacheAndCall'
&lt;br&gt;&amp;gt;     from CachingCallSite.java:149:in `call'
&lt;br&gt;&amp;gt;     from CallOneArgNode.java:57:in `interpret'
&lt;br&gt;&amp;gt;     from NewlineNode.java:104:in `interpret'
&lt;br&gt;&amp;gt;     from BlockNode.java:71:in `interpret'
&lt;br&gt;&amp;gt;     from RootNode.java:129:in `interpret'
&lt;br&gt;&amp;gt;     from Ruby.java:2419:in `loadFile'
&lt;br&gt;&amp;gt;     from ExternalScript.java:64:in `load'
&lt;br&gt;&amp;gt;     from LoadService.java:249:in `load'
&lt;br&gt;&amp;gt;     from RubyKernel.java:932:in `load'
&lt;br&gt;&amp;gt;     from org/jruby/RubyKernel$s_method_0_1$RUBYFRAMEDINVOKER$load.gen:-1:in
&lt;br&gt;&amp;gt; `call'
&lt;br&gt;&amp;gt;     from DynamicMethod.java:180:in `call'
&lt;br&gt;&amp;gt;     from DynamicMethod.java:176:in `call'
&lt;br&gt;&amp;gt;     from CachingCallSite.java:147:in `call'
&lt;br&gt;&amp;gt;     from FCallOneArgNode.java:36:in `interpret'
&lt;br&gt;&amp;gt;     from NewlineNode.java:104:in `interpret'
&lt;br&gt;&amp;gt;     from InterpretedBlock.java:317:in `evalBlockBody'
&lt;br&gt;&amp;gt;     from InterpretedBlock.java:268:in `yield'
&lt;br&gt;&amp;gt;     from Block.java:194:in `yield'
&lt;br&gt;&amp;gt;     from RubyArray.java:1635:in `eachCommon'
&lt;br&gt;&amp;gt;     from RubyArray.java:1642:in `each'
&lt;br&gt;&amp;gt;     from org/jruby/RubyArray$i_method_0_0$RUBYFRAMEDINVOKER$each.gen:-1:in
&lt;br&gt;&amp;gt; `call'
&lt;br&gt;&amp;gt;     from CachingCallSite.java:116:in `callBlock'
&lt;br&gt;&amp;gt;     from CachingCallSite.java:123:in `call'
&lt;br&gt;&amp;gt;     from CallNoArgBlockNode.java:64:in `interpret'
&lt;br&gt;&amp;gt;     from NewlineNode.java:104:in `interpret'
&lt;br&gt;&amp;gt;     from BlockNode.java:71:in `interpret'
&lt;br&gt;&amp;gt;     from InterpretedMethod.java:173:in `call'
&lt;br&gt;&amp;gt;     from DefaultMethod.java:169:in `call'
&lt;br&gt;&amp;gt;     from CachingCallSite.java:147:in `call'
&lt;br&gt;&amp;gt;     from CallOneArgNode.java:57:in `interpret'
&lt;br&gt;&amp;gt;     from NewlineNode.java:104:in `interpret'
&lt;br&gt;&amp;gt;     from BlockNode.java:71:in `interpret'
&lt;br&gt;&amp;gt;     from IfNode.java:119:in `interpret'
&lt;br&gt;&amp;gt;     from NewlineNode.java:104:in `interpret'
&lt;br&gt;&amp;gt;     from BlockNode.java:71:in `interpret'
&lt;br&gt;&amp;gt;     from EnsureNode.java:96:in `interpret'
&lt;br&gt;&amp;gt;     from BeginNode.java:83:in `interpret'
&lt;br&gt;&amp;gt;     from NewlineNode.java:104:in `interpret'
&lt;br&gt;&amp;gt;     from BlockNode.java:71:in `interpret'
&lt;br&gt;&amp;gt;     from InterpretedMethod.java:136:in `call'
&lt;br&gt;&amp;gt;     from DefaultMethod.java:153:in `call'
&lt;br&gt;&amp;gt;     from CachingCallSite.java:290:in `cacheAndCall'
&lt;br&gt;&amp;gt;     from CachingCallSite.java:109:in `call'
&lt;br&gt;&amp;gt;     from CallNoArgNode.java:61:in `interpret'
&lt;br&gt;&amp;gt;     from OrNode.java:97:in `interpret'
&lt;br&gt;&amp;gt;     from NewlineNode.java:104:in `interpret'
&lt;br&gt;&amp;gt;     from InterpretedMethod.java:136:in `call'
&lt;br&gt;&amp;gt;     from DefaultMethod.java:153:in `call'
&lt;br&gt;&amp;gt;     from CachingCallSite.java:290:in `cacheAndCall'
&lt;br&gt;&amp;gt;     from CachingCallSite.java:109:in `call'
&lt;br&gt;&amp;gt;     from VCallNode.java:85:in `interpret'
&lt;br&gt;&amp;gt;     from FCallOneArgNode.java:36:in `interpret'
&lt;br&gt;&amp;gt;     from IfNode.java:119:in `interpret'
&lt;br&gt;&amp;gt;     from NewlineNode.java:104:in `interpret'
&lt;br&gt;&amp;gt;     from InterpretedBlock.java:317:in `evalBlockBody'
&lt;br&gt;&amp;gt;     from InterpretedBlock.java:305:in `yield'
&lt;br&gt;&amp;gt;     from BlockBody.java:72:in `call'
&lt;br&gt;&amp;gt;     from BlockBody.java:78:in `call'
&lt;br&gt;&amp;gt;     from Block.java:89:in `call'
&lt;br&gt;&amp;gt;     from RubyProc.java:221:in `call'
&lt;br&gt;&amp;gt;     from RubyProc.java:204:in `call'
&lt;br&gt;&amp;gt;     from Ruby.java:2616:in `tearDown'
&lt;br&gt;&amp;gt;     from Main.java:274:in `run'
&lt;br&gt;&amp;gt;     from Main.java:117:in `run'
&lt;br&gt;&amp;gt;     from Main.java:97:in `main'
&lt;br&gt;&amp;gt; ---
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Antonio Alegria
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe from this list, please visit:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;    &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/StringIndexOutOfBoundsException-with-RSpec-%2B-Parsing-YAML-tp26449351p26449964.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26449446</id>
	<title>Re: StringIndexOutOfBoundsException with RSpec + Parsing  YAML</title>
	<published>2009-11-20T12:02:05Z</published>
	<updated>2009-11-20T12:02:05Z</updated>
	<author>
		<name>Vladimir Sizikov-2</name>
	</author>
	<content type="html">Hi António,
&lt;br&gt;&lt;br&gt;But you do realize that you're loading not the YAML file, but the rb
&lt;br&gt;file itself? :)
&lt;br&gt;&lt;br&gt;YAML.load_file &amp;quot;config_yaml_spec.rb&amp;quot;
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&amp;nbsp; --Vladimir
&lt;br&gt;&lt;br&gt;2009/11/20 António Alegria &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26449446&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;antoniomcalegria@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When doing jspec config_yaml_spec.rb (attached) a java
&lt;br&gt;&amp;gt; StringIndexOutOfBoundsException occurs.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The strangest part is that small changes in the script, such as removing one
&lt;br&gt;&amp;gt; RSpec example or removing the whole describe block and running it with plain
&lt;br&gt;&amp;gt; JRuby doesn't raise this error.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Used Platform:
&lt;br&gt;&amp;gt; --------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; JRuby version: jruby 1.4.0 (ruby 1.8.7 patchlevel 174) (2009-11-16 6586)
&lt;br&gt;&amp;gt; (Java HotSpot(TM) Client VM 1.6.0_03-p3) [i386-java]
&lt;br&gt;&amp;gt; Mac OS X 10.5 with Soylatte 1.6 1.0.3 i386
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Full Exception:
&lt;br&gt;&amp;gt; --------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; String.java:398:in `checkBounds': java.lang.StringIndexOutOfBoundsException:
&lt;br&gt;&amp;gt; String index out of range: -1
&lt;br&gt;&amp;gt;     from String.java:443:in `&amp;lt;init&amp;gt;'
&lt;br&gt;&amp;gt;     from RubyErrHandler.java:28:in `handle'
&lt;br&gt;&amp;gt;     from TokenScanner.java:19:in `error'
&lt;br&gt;&amp;gt;     from DefaultYAMLParser.java:803:in `yyerror'
&lt;br&gt;&amp;gt;     from DefaultYAMLParser.java:329:in `yyparse'
&lt;br&gt;&amp;gt;     from Parser.java:290:in `yechtparse'
&lt;br&gt;&amp;gt;     from Parser.java:284:in `parse'
&lt;br&gt;&amp;gt;     from YParser.java:152:in `load'
&lt;br&gt;&amp;gt;     from org/yecht/ruby/YParser$s_method_0_1$RUBYINVOKER$load.gen:-1:in
&lt;br&gt;&amp;gt; `call'
&lt;br&gt;&amp;gt;     from JavaMethod.java:623:in `call'
&lt;br&gt;&amp;gt;     from DynamicMethod.java:176:in `call'
&lt;br&gt;&amp;gt;     from CachingCallSite.java:147:in `call'
&lt;br&gt;&amp;gt;     from CallOneArgNode.java:57:in `interpret'
&lt;br&gt;&amp;gt;     from LocalAsgnNode.java:123:in `interpret'
&lt;br&gt;&amp;gt;     from NewlineNode.java:104:in `interpret'
&lt;br&gt;&amp;gt;     from InterpretedMethod.java:173:in `call'
&lt;br&gt;&amp;gt;     from DefaultMethod.java:169:in `call'
&lt;br&gt;&amp;gt;     from CachingCallSite.java:147:in `call'
&lt;br&gt;&amp;gt;     from FCallOneArgNode.java:36:in `interpret'
&lt;br&gt;&amp;gt;     from NewlineNode.java:104:in `interpret'
&lt;br&gt;&amp;gt;     from InterpretedBlock.java:317:in `evalBlockBody'
&lt;br&gt;&amp;gt;     from InterpretedBlock.java:268:in `yield'
&lt;br&gt;&amp;gt;     from Block.java:194:in `yield'
&lt;br&gt;&amp;gt;     from RubyIO.java:1067:in `open'
&lt;br&gt;&amp;gt;     from org/jruby/RubyIO$s_method_0_2$RUBYFRAMEDINVOKER$open.gen:-1:in
&lt;br&gt;&amp;gt; `call'
&lt;br&gt;&amp;gt;     from DynamicMethod.java:180:in `call'
&lt;br&gt;&amp;gt;     from CachingCallSite.java:156:in `callBlock'
&lt;br&gt;&amp;gt;     from CachingCallSite.java:163:in `call'
&lt;br&gt;&amp;gt;     from CallOneArgBlockNode.java:60:in `interpret'
&lt;br&gt;&amp;gt;     from NewlineNode.java:104:in `interpret'
&lt;br&gt;&amp;gt;     from InterpretedMethod.java:173:in `call'
&lt;br&gt;&amp;gt;     from DefaultMethod.java:169:in `call'
&lt;br&gt;&amp;gt;     from CachingCallSite.java:310:in `cacheAndCall'
&lt;br&gt;&amp;gt;     from CachingCallSite.java:149:in `call'
&lt;br&gt;&amp;gt;     from CallOneArgNode.java:57:in `interpret'
&lt;br&gt;&amp;gt;     from NewlineNode.java:104:in `interpret'
&lt;br&gt;&amp;gt;     from BlockNode.java:71:in `interpret'
&lt;br&gt;&amp;gt;     from RootNode.java:129:in `interpret'
&lt;br&gt;&amp;gt;     from Ruby.java:2419:in `loadFile'
&lt;br&gt;&amp;gt;     from ExternalScript.java:64:in `load'
&lt;br&gt;&amp;gt;     from LoadService.java:249:in `load'
&lt;br&gt;&amp;gt;     from RubyKernel.java:932:in `load'
&lt;br&gt;&amp;gt;     from org/jruby/RubyKernel$s_method_0_1$RUBYFRAMEDINVOKER$load.gen:-1:in
&lt;br&gt;&amp;gt; `call'
&lt;br&gt;&amp;gt;     from DynamicMethod.java:180:in `call'
&lt;br&gt;&amp;gt;     from DynamicMethod.java:176:in `call'
&lt;br&gt;&amp;gt;     from CachingCallSite.java:147:in `call'
&lt;br&gt;&amp;gt;     from FCallOneArgNode.java:36:in `interpret'
&lt;br&gt;&amp;gt;     from NewlineNode.java:104:in `interpret'
&lt;br&gt;&amp;gt;     from InterpretedBlock.java:317:in `evalBlockBody'
&lt;br&gt;&amp;gt;     from InterpretedBlock.java:268:in `yield'
&lt;br&gt;&amp;gt;     from Block.java:194:in `yield'
&lt;br&gt;&amp;gt;     from RubyArray.java:1635:in `eachCommon'
&lt;br&gt;&amp;gt;     from RubyArray.java:1642:in `each'
&lt;br&gt;&amp;gt;     from org/jruby/RubyArray$i_method_0_0$RUBYFRAMEDINVOKER$each.gen:-1:in
&lt;br&gt;&amp;gt; `call'
&lt;br&gt;&amp;gt;     from CachingCallSite.java:116:in `callBlock'
&lt;br&gt;&amp;gt;     from CachingCallSite.java:123:in `call'
&lt;br&gt;&amp;gt;     from CallNoArgBlockNode.java:64:in `interpret'
&lt;br&gt;&amp;gt;     from NewlineNode.java:104:in `interpret'
&lt;br&gt;&amp;gt;     from BlockNode.java:71:in `interpret'
&lt;br&gt;&amp;gt;     from InterpretedMethod.java:173:in `call'
&lt;br&gt;&amp;gt;     from DefaultMethod.java:169:in `call'
&lt;br&gt;&amp;gt;     from CachingCallSite.java:147:in `call'
&lt;br&gt;&amp;gt;     from CallOneArgNode.java:57:in `interpret'
&lt;br&gt;&amp;gt;     from NewlineNode.java:104:in `interpret'
&lt;br&gt;&amp;gt;     from BlockNode.java:71:in `interpret'
&lt;br&gt;&amp;gt;     from IfNode.java:119:in `interpret'
&lt;br&gt;&amp;gt;     from NewlineNode.java:104:in `interpret'
&lt;br&gt;&amp;gt;     from BlockNode.java:71:in `interpret'
&lt;br&gt;&amp;gt;     from EnsureNode.java:96:in `interpret'
&lt;br&gt;&amp;gt;     from BeginNode.java:83:in `interpret'
&lt;br&gt;&amp;gt;     from NewlineNode.java:104:in `interpret'
&lt;br&gt;&amp;gt;     from BlockNode.java:71:in `interpret'
&lt;br&gt;&amp;gt;     from InterpretedMethod.java:136:in `call'
&lt;br&gt;&amp;gt;     from DefaultMethod.java:153:in `call'
&lt;br&gt;&amp;gt;     from CachingCallSite.java:290:in `cacheAndCall'
&lt;br&gt;&amp;gt;     from CachingCallSite.java:109:in `call'
&lt;br&gt;&amp;gt;     from CallNoArgNode.java:61:in `interpret'
&lt;br&gt;&amp;gt;     from OrNode.java:97:in `interpret'
&lt;br&gt;&amp;gt;     from NewlineNode.java:104:in `interpret'
&lt;br&gt;&amp;gt;     from InterpretedMethod.java:136:in `call'
&lt;br&gt;&amp;gt;     from DefaultMethod.java:153:in `call'
&lt;br&gt;&amp;gt;     from CachingCallSite.java:290:in `cacheAndCall'
&lt;br&gt;&amp;gt;     from CachingCallSite.java:109:in `call'
&lt;br&gt;&amp;gt;     from VCallNode.java:85:in `interpret'
&lt;br&gt;&amp;gt;     from FCallOneArgNode.java:36:in `interpret'
&lt;br&gt;&amp;gt;     from IfNode.java:119:in `interpret'
&lt;br&gt;&amp;gt;     from NewlineNode.java:104:in `interpret'
&lt;br&gt;&amp;gt;     from InterpretedBlock.java:317:in `evalBlockBody'
&lt;br&gt;&amp;gt;     from InterpretedBlock.java:305:in `yield'
&lt;br&gt;&amp;gt;     from BlockBody.java:72:in `call'
&lt;br&gt;&amp;gt;     from BlockBody.java:78:in `call'
&lt;br&gt;&amp;gt;     from Block.java:89:in `call'
&lt;br&gt;&amp;gt;     from RubyProc.java:221:in `call'
&lt;br&gt;&amp;gt;     from RubyProc.java:204:in `call'
&lt;br&gt;&amp;gt;     from Ruby.java:2616:in `tearDown'
&lt;br&gt;&amp;gt;     from Main.java:274:in `run'
&lt;br&gt;&amp;gt;     from Main.java:117:in `run'
&lt;br&gt;&amp;gt;     from Main.java:97:in `main'
&lt;br&gt;&amp;gt; ---
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Antonio Alegria
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe from this list, please visit:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;    &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/StringIndexOutOfBoundsException-with-RSpec-%2B-Parsing-YAML-tp26449351p26449446.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26449351</id>
	<title>StringIndexOutOfBoundsException with RSpec + Parsing YAML</title>
	<published>2009-11-20T11:54:34Z</published>
	<updated>2009-11-20T11:54:34Z</updated>
	<author>
		<name>António Alegria</name>
	</author>
	<content type="html">Hi,&lt;br&gt;&lt;br&gt;When doing jspec config_yaml_spec.rb (attached) a java StringIndexOutOfBoundsException occurs.&lt;br&gt;&lt;br&gt;The strangest part is that small changes in the script, such as removing one RSpec example or removing the whole describe block and running it with plain JRuby doesn&amp;#39;t raise this error.&lt;br&gt;
&lt;br&gt;Used Platform:&lt;br&gt;
--------------------&lt;br&gt;
&lt;br&gt;
JRuby version: jruby 1.4.0 (ruby 1.8.7 patchlevel 174) (2009-11-16 6586) (Java HotSpot(TM) Client VM 1.6.0_03-p3) [i386-java]&lt;br&gt;
Mac OS X 10.5 with Soylatte 1.6 1.0.3 i386&lt;br&gt;&lt;br&gt;Full Exception:&lt;br&gt;--------------------&lt;br&gt;&lt;br&gt;String.java:398:in `checkBounds&amp;#39;: java.lang.StringIndexOutOfBoundsException: String index out of range: -1&lt;br&gt;
    from String.java:443:in `&amp;lt;init&amp;gt;&amp;#39;&lt;br&gt;
    from RubyErrHandler.java:28:in `handle&amp;#39;&lt;br&gt;
    from TokenScanner.java:19:in `error&amp;#39;&lt;br&gt;
    from DefaultYAMLParser.java:803:in `yyerror&amp;#39;&lt;br&gt;
    from DefaultYAMLParser.java:329:in `yyparse&amp;#39;&lt;br&gt;
    from Parser.java:290:in `yechtparse&amp;#39;&lt;br&gt;
    from Parser.java:284:in `parse&amp;#39;&lt;br&gt;
    from YParser.java:152:in `load&amp;#39;&lt;br&gt;
    from org/yecht/ruby/YParser$s_method_0_1$RUBYINVOKER$load.gen:-1:in `call&amp;#39;&lt;br&gt;
    from JavaMethod.java:623:in `call&amp;#39;&lt;br&gt;
    from DynamicMethod.java:176:in `call&amp;#39;&lt;br&gt;
    from CachingCallSite.java:147:in `call&amp;#39;&lt;br&gt;
    from CallOneArgNode.java:57:in `interpret&amp;#39;&lt;br&gt;
    from LocalAsgnNode.java:123:in `interpret&amp;#39;&lt;br&gt;
    from NewlineNode.java:104:in `interpret&amp;#39;&lt;br&gt;
    from InterpretedMethod.java:173:in `call&amp;#39;&lt;br&gt;
    from DefaultMethod.java:169:in `call&amp;#39;&lt;br&gt;
    from CachingCallSite.java:147:in `call&amp;#39;&lt;br&gt;
    from FCallOneArgNode.java:36:in `interpret&amp;#39;&lt;br&gt;
    from NewlineNode.java:104:in `interpret&amp;#39;&lt;br&gt;
    from InterpretedBlock.java:317:in `evalBlockBody&amp;#39;&lt;br&gt;
    from InterpretedBlock.java:268:in `yield&amp;#39;&lt;br&gt;
    from Block.java:194:in `yield&amp;#39;&lt;br&gt;
    from RubyIO.java:1067:in `open&amp;#39;&lt;br&gt;
    from org/jruby/RubyIO$s_method_0_2$RUBYFRAMEDINVOKER$open.gen:-1:in `call&amp;#39;&lt;br&gt;
    from DynamicMethod.java:180:in `call&amp;#39;&lt;br&gt;
    from CachingCallSite.java:156:in `callBlock&amp;#39;&lt;br&gt;
    from CachingCallSite.java:163:in `call&amp;#39;&lt;br&gt;
    from CallOneArgBlockNode.java:60:in `interpret&amp;#39;&lt;br&gt;
    from NewlineNode.java:104:in `interpret&amp;#39;&lt;br&gt;
    from InterpretedMethod.java:173:in `call&amp;#39;&lt;br&gt;
    from DefaultMethod.java:169:in `call&amp;#39;&lt;br&gt;
    from CachingCallSite.java:310:in `cacheAndCall&amp;#39;&lt;br&gt;
    from CachingCallSite.java:149:in `call&amp;#39;&lt;br&gt;
    from CallOneArgNode.java:57:in `interpret&amp;#39;&lt;br&gt;
    from NewlineNode.java:104:in `interpret&amp;#39;&lt;br&gt;
    from BlockNode.java:71:in `interpret&amp;#39;&lt;br&gt;
    from RootNode.java:129:in `interpret&amp;#39;&lt;br&gt;
    from Ruby.java:2419:in `loadFile&amp;#39;&lt;br&gt;
    from ExternalScript.java:64:in `load&amp;#39;&lt;br&gt;
    from LoadService.java:249:in `load&amp;#39;&lt;br&gt;
    from RubyKernel.java:932:in `load&amp;#39;&lt;br&gt;
    from org/jruby/RubyKernel$s_method_0_1$RUBYFRAMEDINVOKER$load.gen:-1:in `call&amp;#39;&lt;br&gt;
    from DynamicMethod.java:180:in `call&amp;#39;&lt;br&gt;
    from DynamicMethod.java:176:in `call&amp;#39;&lt;br&gt;
    from CachingCallSite.java:147:in `call&amp;#39;&lt;br&gt;
    from FCallOneArgNode.java:36:in `interpret&amp;#39;&lt;br&gt;
    from NewlineNode.java:104:in `interpret&amp;#39;&lt;br&gt;
    from InterpretedBlock.java:317:in `evalBlockBody&amp;#39;&lt;br&gt;
    from InterpretedBlock.java:268:in `yield&amp;#39;&lt;br&gt;
    from Block.java:194:in `yield&amp;#39;&lt;br&gt;
    from RubyArray.java:1635:in `eachCommon&amp;#39;&lt;br&gt;
    from RubyArray.java:1642:in `each&amp;#39;&lt;br&gt;
    from org/jruby/RubyArray$i_method_0_0$RUBYFRAMEDINVOKER$each.gen:-1:in `call&amp;#39;&lt;br&gt;
    from CachingCallSite.java:116:in `callBlock&amp;#39;&lt;br&gt;
    from CachingCallSite.java:123:in `call&amp;#39;&lt;br&gt;
    from CallNoArgBlockNode.java:64:in `interpret&amp;#39;&lt;br&gt;
    from NewlineNode.java:104:in `interpret&amp;#39;&lt;br&gt;
    from BlockNode.java:71:in `interpret&amp;#39;&lt;br&gt;
    from InterpretedMethod.java:173:in `call&amp;#39;&lt;br&gt;
    from DefaultMethod.java:169:in `call&amp;#39;&lt;br&gt;
    from CachingCallSite.java:147:in `call&amp;#39;&lt;br&gt;
    from CallOneArgNode.java:57:in `interpret&amp;#39;&lt;br&gt;
    from NewlineNode.java:104:in `interpret&amp;#39;&lt;br&gt;
    from BlockNode.java:71:in `interpret&amp;#39;&lt;br&gt;
    from IfNode.java:119:in `interpret&amp;#39;&lt;br&gt;
    from NewlineNode.java:104:in `interpret&amp;#39;&lt;br&gt;
    from BlockNode.java:71:in `interpret&amp;#39;&lt;br&gt;
    from EnsureNode.java:96:in `interpret&amp;#39;&lt;br&gt;
    from BeginNode.java:83:in `interpret&amp;#39;&lt;br&gt;
    from NewlineNode.java:104:in `interpret&amp;#39;&lt;br&gt;
    from BlockNode.java:71:in `interpret&amp;#39;&lt;br&gt;
    from InterpretedMethod.java:136:in `call&amp;#39;&lt;br&gt;
    from DefaultMethod.java:153:in `call&amp;#39;&lt;br&gt;
    from CachingCallSite.java:290:in `cacheAndCall&amp;#39;&lt;br&gt;
    from CachingCallSite.java:109:in `call&amp;#39;&lt;br&gt;
    from CallNoArgNode.java:61:in `interpret&amp;#39;&lt;br&gt;
    from OrNode.java:97:in `interpret&amp;#39;&lt;br&gt;
    from NewlineNode.java:104:in `interpret&amp;#39;&lt;br&gt;
    from InterpretedMethod.java:136:in `call&amp;#39;&lt;br&gt;
    from DefaultMethod.java:153:in `call&amp;#39;&lt;br&gt;
    from CachingCallSite.java:290:in `cacheAndCall&amp;#39;&lt;br&gt;
    from CachingCallSite.java:109:in `call&amp;#39;&lt;br&gt;
    from VCallNode.java:85:in `interpret&amp;#39;&lt;br&gt;
    from FCallOneArgNode.java:36:in `interpret&amp;#39;&lt;br&gt;
    from IfNode.java:119:in `interpret&amp;#39;&lt;br&gt;
    from NewlineNode.java:104:in `interpret&amp;#39;&lt;br&gt;
    from InterpretedBlock.java:317:in `evalBlockBody&amp;#39;&lt;br&gt;
    from InterpretedBlock.java:305:in `yield&amp;#39;&lt;br&gt;
    from BlockBody.java:72:in `call&amp;#39;&lt;br&gt;
    from BlockBody.java:78:in `call&amp;#39;&lt;br&gt;
    from Block.java:89:in `call&amp;#39;&lt;br&gt;
    from RubyProc.java:221:in `call&amp;#39;&lt;br&gt;
    from RubyProc.java:204:in `call&amp;#39;&lt;br&gt;
    from Ruby.java:2616:in `tearDown&amp;#39;&lt;br&gt;
    from Main.java:274:in `run&amp;#39;&lt;br&gt;
    from Main.java:117:in `run&amp;#39;&lt;br&gt;
    from Main.java:97:in `main&amp;#39;&lt;br&gt;
---&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;&lt;br&gt;Antonio Alegria&lt;br&gt;
&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;config_yaml_spec.yml&lt;/strong&gt; (10K) &lt;a href=&quot;http://old.nabble.com/attachment/26449351/0/config_yaml_spec.yml&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;config_yaml_spec.rb&lt;/strong&gt; (374 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26449351/1/config_yaml_spec.rb&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/StringIndexOutOfBoundsException-with-RSpec-%2B-Parsing-YAML-tp26449351p26449351.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26446911</id>
	<title>Re: at_exit with JRuby Embed?</title>
	<published>2009-11-20T09:10:57Z</published>
	<updated>2009-11-20T09:10:57Z</updated>
	<author>
		<name>Yoko Harada</name>
	</author>
	<content type="html">Hi Adam,
&lt;br&gt;&lt;br&gt;On Wed, Nov 18, 2009 at 9:45 PM, Adam Murray &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26446911&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;adamjmurray@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; What is the preferred way to trigger at_exit blocks with the new JRuby
&lt;br&gt;&amp;gt; Embed API? Previously I was using BSF's terminate() method. I know
&lt;br&gt;&amp;gt; that behavior is not part of JSR223 so maybe it's still an open
&lt;br&gt;&amp;gt; question?
&lt;br&gt;&lt;br&gt;at_exit blocks are executed at the end of each evaluation. BSF's
&lt;br&gt;terminate() like post-processing runs always when runScriplet() or
&lt;br&gt;EvalUnit.run() method is invoked. So, you don't need terminate() just
&lt;br&gt;for at_exit block.
&lt;br&gt;&lt;br&gt;&amp;gt; PS - thanks to Yoko (and anyone else?) for updating all the JRuby
&lt;br&gt;&amp;gt; embedding info on the wiki for the 1.4 release. It's been very
&lt;br&gt;&amp;gt; helpful, especially the comparison of Core, JSR223, and BSF.
&lt;br&gt;&lt;br&gt;Thanks for looking at it. If you want more information there, feel
&lt;br&gt;free to suggest that.
&lt;br&gt;&lt;br&gt;-Yoko
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Adam
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe from this list, please visit:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;    &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/at_exit-with-JRuby-Embed--tp26419506p26446911.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26439381</id>
	<title>Re: [ANN] Using JRuby+Java to prototype audio VST  plugins</title>
	<published>2009-11-19T23:27:10Z</published>
	<updated>2009-11-19T23:27:10Z</updated>
	<author>
		<name>Wayne Meissner</name>
	</author>
	<content type="html">2009/11/20 Thibaut Barrère &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26439381&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;thibaut.barrere@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;&amp;gt; Looks very cool.  I just did a quick code drive-by at your GitHub repo and
&lt;br&gt;&amp;gt;&amp;gt; couldn't help but wonder if implementing via &lt;a href=&quot;http://github.com/ffi/ffi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://github.com/ffi/ffi&lt;/a&gt;&amp;nbsp;might
&lt;br&gt;&amp;gt;&amp;gt; be even more interesting.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; it would be - I thought about it at first, but at the time ffi didn't work
&lt;br&gt;&amp;gt; on windows (I used jVSTwRapper to provide portability).
&lt;br&gt;&amp;gt; Is there a chance to see FFI working on windows ?
&lt;br&gt;&lt;br&gt;Vladimir and Jon both commented, but just to be explicit, FFI on
&lt;br&gt;windows should work fine on both JRuby 1.4.0, and CRuby 1.8.x/1.9.x
&lt;br&gt;with the FFI 0.5.0 or later gem.
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-ANN--Using-JRuby%2BJava-to-prototype-audio-VST-plugins-tp26417763p26439381.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26439014</id>
	<title>RE: undefined method class_eval for ActiveRecord::ConnectionAdapters::JdbcAdapter</title>
	<published>2009-11-19T22:39:39Z</published>
	<updated>2009-11-19T22:39:39Z</updated>
	<author>
		<name>Dhussa, Varun</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:m=&quot;http://schemas.microsoft.com/office/2004/12/omml&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;meta http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 12 (filtered medium)&quot;&gt;
&lt;title&gt;undefined method class_eval for
ActiveRecord::ConnectionAdapters::JdbcAdapter&lt;/title&gt;

&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
  &lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
 &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;
&lt;/head&gt;

&lt;body lang=EN-US link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;Hi,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;I&amp;#8217;ve been trying to get this running but am not
successful. I have tried with the oracle jdbc adapter as well as the old
ActiveRecord_JDBC package. I am running Rails v1.2.6. My current platform uses
Ruby 1.8.7. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;Looking forward to your help.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;Thanks and regards&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;Varun&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;div&gt;

&lt;div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'&gt;

&lt;p class=MsoNormal&gt;&lt;b&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;'&gt;From:&lt;/span&gt;&lt;/b&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;'&gt; Dhussa, Varun
[mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26439014&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vdhussa@...&lt;/a&gt;] &lt;br&gt;
&lt;b&gt;Sent:&lt;/b&gt; Wednesday, November 18, 2009 1:50 PM&lt;br&gt;
&lt;b&gt;To:&lt;/b&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26439014&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;&lt;br&gt;
&lt;b&gt;Subject:&lt;/b&gt; [jruby-user] undefined method class_eval for
ActiveRecord::ConnectionAdapters::JdbcAdapter&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;Hi,&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;I am trying to port
an application from&lt;/span&gt; &lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;c-Ruby
to JRuby. I have an Oracle database backend and have added the JDBC driver jars
to the lib dir of JRuby. Also, I have set the required connection parameters in
database.yml.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;Webrick&lt;/span&gt; &lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;is starting fine, but for
any request, I get the following error:&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;RedirectionController:
missing default helper path redirection_helper&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;undefined method
`class_eval' for
#&amp;lt;ActiveRecord::ConnectionAdapters::JdbcAdapter:0x1fffa73&amp;gt;^M&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;/home/vdhussa/jruby-1.4.0/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.2/lib/jdbc_adapter/jdbc_oracle.rb:29:in
`extended'^M&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;/home/vdhussa/jruby-1.4.0/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.2/lib/active_record/connection_adapters/jdbc_adapter.rb:456:in
`initialize'^M&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;/home/vdhussa/jruby-1.4.0/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.2/lib/active_record/connection_adapters/jdbc_adapter.rb:49:in
`new'^M&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;/home/vdhussa/jruby-1.4.0/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.2/lib/active_record/connection_adapters/jdbc_adapter.rb:49:in
`jdbc_connection'^M&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;/home/vdhussa/jruby-1.4.0/lib/ruby/gems/1.8/gems/activerecord-1.15.6/lib/active_record/connection_adapters/abstract/connection_specification.rb:262:in
`connection='^M&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;/home/vdhussa/jruby-1.4.0/lib/ruby/gems/1.8/gems/activerecord-1.15.6/lib/active_record/query_cache.rb:54:in
`connection='^M&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;/home/vdhussa/jruby-1.4.0/lib/ruby/gems/1.8/gems/activerecord-1.15.6/lib/active_record/connection_adapters/abstract/connection_specification.rb:230:in
`retrieve_connection'^M&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;/home/vdhussa/jruby-1.4.0/lib/ruby/gems/1.8/gems/activerecord-1.15.6/lib/active_record/connection_adapters/abstract/connection_specification.rb:78:in
`connection'^M&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;/home/vdhussa/jruby-1.4.0/lib/ruby/gems/1.8/gems/activerecord-1.15.6/lib/active_record/base.rb:763:in
`columns'^M&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;/home/vdhussa/Work/workspaces/jv3.0/devtools/dewey-3.0/dewey/vendor/plugins/simple_localization/lib/features/localized_column_human_name.rb:61:in
`columns'^M&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;/home/vdhussa/jruby-1.4.0/lib/ruby/gems/1.8/gems/activerecord-1.15.6/lib/active_record/base.rb:776:in
`column_names'^M&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;/home/vdhussa/jruby-1.4.0/lib/ruby/gems/1.8/gems/activerecord-1.15.6/lib/active_record/base.rb:789:in
`column_methods_hash'^M&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;/home/vdhussa/jruby-1.4.0/lib/ruby/gems/1.8/gems/activerecord-1.15.6/lib/active_record/base.rb:1757:in
`respond_to?'^M&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;/home/vdhussa/Work/workspaces/jv3.0/devtools/dewey-3.0/dewey/vendor/plugins/attribute_i18n/lib/attribute_i18n.rb:58:in
`respond_to_with_i18n_attribute_check?'^M&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;/home/vdhussa/jruby-1.4.0/lib/ruby/1.8/pstore.rb:349:in
`dump'^M&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;/home/vdhussa/jruby-1.4.0/lib/ruby/1.8/pstore.rb:349:in
`dump'^M&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;/home/vdhussa/jruby-1.4.0/lib/ruby/1.8/pstore.rb:330:in
`transaction'^M&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;/home/vdhussa/jruby-1.4.0/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/cgi_ext/pstore_performance_fix.rb:26:in
`initialize'^M&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;/home/vdhussa/jruby-1.4.0/lib/ruby/1.8/cgi/session.rb:280:in
`new'^M&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;/home/vdhussa/jruby-1.4.0/lib/ruby/1.8/cgi/session.rb:280:in
`initialize'^M&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;/home/vdhussa/jruby-1.4.0/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/cgi_process.rb:136:in
`new'^M&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;/home/vdhussa/jruby-1.4.0/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/cgi_process.rb:136:in
`session'^M&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;/home/vdhussa/jruby-1.4.0/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/cgi_process.rb:168:in
`stale_session_check!'^M&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;Any pointers and
solutions would be helpful.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;Thanks and regards&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;Varun&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/undefined-method-class_eval-for-ActiveRecord%3A%3AConnectionAdapters%3A%3AJdbcAdapter-tp26404083p26439014.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26435102</id>
	<title>activerecord-jdbc-adapter 0.9.2 oracle issues</title>
	<published>2009-11-19T14:17:07Z</published>
	<updated>2009-11-19T14:17:07Z</updated>
	<author>
		<name>Schultz, Darcy L.</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;META content=&quot;MSHTML 6.00.2900.3603&quot; name=GENERATOR&gt;&lt;/HEAD&gt;
&lt;BODY text=#000000 bgColor=#ffffff&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=372421422-19112009&gt;&lt;FONT face=&quot;Lucida Sans Unicode&quot; color=#000080 size=2&gt;Is there an ETA for a new 
version of the activerecord-jdbc-adapter?&amp;nbsp; I'm running into the same oracle 
issues others have logged in JIRA.&amp;nbsp; It's preventing us from moving to JRuby 
1.4.0.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;p&gt;&lt;span style=&quot;font-family:'Arial';font-size:8pt;&quot;&gt;This email communication and any files transmitted with it may contain confidential and or proprietary information and is provided for the use of the intended recipient only.  Any review, retransmission or dissemination of this information by anyone other than the intended recipient is prohibited.  If you receive this email in error, please contact the sender and delete this communication and any copies immediately.  Thank you.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-family:'Arial';font-size:8pt;&quot;&gt;http://www.encana.com&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-family:'Arial';font-size:8pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;/BODY&gt;&lt;/HTML&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Rails-on-JRuby%2C-activerecord-jdbc-adapter%2C-db2-boolean-type-tp26370873p26435102.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26428952</id>
	<title>Re: Rails on JRuby, activerecord-jdbc-adapter, db2 boolean type</title>
	<published>2009-11-19T08:05:45Z</published>
	<updated>2009-11-19T08:05:45Z</updated>
	<author>
		<name>Pete Helgren</name>
	</author>
	<content type="html">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;meta content=&quot;text/html;charset=ISO-8859-1&quot; http-equiv=&quot;Content-Type&quot;&gt;
&lt;/head&gt;
&lt;body bgcolor=&quot;#ffffff&quot; text=&quot;#000000&quot;&gt;
No concerns.&amp;nbsp; Just lazy (and busy with other concerns).&amp;nbsp; Java is my
primary development language and I have been working on a project whose
scope continues to grow (although on IBM i I spend a fair amount of
time in ILE RPG).&amp;nbsp; I keep meaning to run a final series of tests on at
least the 2 supported OS versions (V5R4M0 and IBM i 6.1) but I haven't
had the time.&lt;br&gt;
&lt;br&gt;
Pete&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Andy Hu wrote:
&lt;blockquote cite=&quot;mid:26421260.post@talk.nabble.com&quot; type=&quot;cite&quot;&gt;
  &lt;pre wrap=&quot;&quot;&gt;Peter, it's great! I will try to see in a few weeks after I come over this
hard time.

Why not submitted to Nick's project? Any concerns or?


Pete Helgren wrote:
  &lt;/pre&gt;
  &lt;blockquote type=&quot;cite&quot;&gt;
    &lt;pre wrap=&quot;&quot;&gt;No.  Not a problem at all.  I have had some issues and put together a 
AR-JDBC driver (still not submitted to Nick's project...yet).  There is 
a boolean to int cast in the driver (I think).

You can find it here:

&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;http://www.petesworkshop.com/downloads/jdbc_db2i.rb&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.petesworkshop.com/downloads/jdbc_db2i.rb&lt;/a&gt;

You'll need to update jdbc_adapter_spec.rb to list the driver. You might 
want to give it a try.  It is written for DB2 for i.

Pete

Andy Hu wrote:
    &lt;/pre&gt;
    &lt;blockquote type=&quot;cite&quot;&gt;
      &lt;pre wrap=&quot;&quot;&gt;Thanks Pete, you're right. DB2 is running on IBM i machine. That's a
problem?


Pete Helgren wrote:
  
      &lt;/pre&gt;
      &lt;blockquote type=&quot;cite&quot;&gt;
        &lt;pre wrap=&quot;&quot;&gt;It sounds like a LUW installation.  IBM i has some syntactical 
differences to the DB2 most folks know.  Since you indicated  DB 9 in a 
later post, I can pretty much rule out the i.

My rails experience hasn't been quite as &quot;vanilla&quot; when it comes to 
legacy schemas.  On current (21st century)  schemas, no problems.  But 
the legacy schemas (30 years old) I work with, embedded # in column 
names, multi-column keys and a few other things have made it a
challenge.

Pete

Finegan, Richard [HDS - WC] wrote:
    
        &lt;/pre&gt;
        &lt;blockquote type=&quot;cite&quot;&gt;
          &lt;pre wrap=&quot;&quot;&gt;i don't know if they are IBM i machines, the machines themselves are
thousands of miles away so i've never seen the actual hardware

unfortunately a few google searches didn't reveal to me any way to
identify them from the command line either

Richard F.


-----Original Message-----
From: Pete Helgren [&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26428952&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Pete@...&lt;/a&gt;] 
Sent: Tuesday, November 17, 2009 1:25 PM
To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26428952&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;
Subject: Re: [jruby-user] Rails on JRuby, activerecord-jdbc-adapter,
db2
boolean type

Richard,

I am curious.  Is the &quot;legacy&quot; database on an IBM i (AS/400) by chance?

That happens to be the DB2 platform I am most familiar with and I have 
had a few challenges.  Embedded '#' in column names for one.

No real reason for the query.  There are only a few DB/2 for i5/OS
folks

on the planet using JRuby so I got curious.

Pete


Finegan, Richard [HDS - WC] wrote:
  
      
          &lt;/pre&gt;
          &lt;blockquote type=&quot;cite&quot;&gt;
            &lt;pre wrap=&quot;&quot;&gt;i'm working on a project using JRuby, Rails, and DB2...the db2
    
        
            &lt;/pre&gt;
          &lt;/blockquote&gt;
          &lt;pre wrap=&quot;&quot;&gt;database
  
      
          &lt;/pre&gt;
          &lt;blockquote type=&quot;cite&quot;&gt;
            &lt;pre wrap=&quot;&quot;&gt;is a legacy database schema and i don't bother converting between 0s
    
        
            &lt;/pre&gt;
          &lt;/blockquote&gt;
          &lt;pre wrap=&quot;&quot;&gt;and
  
      
          &lt;/pre&gt;
          &lt;blockquote type=&quot;cite&quot;&gt;
            &lt;pre wrap=&quot;&quot;&gt;1s or 'Y's and 'N's to boolean types

no special gotchas and everything works great, just in case you wanted
the extra reassurance for your project...sorry, this probably isn't
    
        
            &lt;/pre&gt;
          &lt;/blockquote&gt;
          &lt;pre wrap=&quot;&quot;&gt;much
  
      
          &lt;/pre&gt;
          &lt;blockquote type=&quot;cite&quot;&gt;
            &lt;pre wrap=&quot;&quot;&gt;help!

Richard F.


-----Original Message-----
From: Andy Hu [&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26428952&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;andyhu1007@...&lt;/a&gt;] 
Sent: Monday, November 16, 2009 4:14 AM
To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26428952&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;
Subject: [jruby-user] Rails on JRuby, activerecord-jdbc-adapter, db2
boolean type


Hi All,

    Has anyone worked on project based on Rails on JRuby and db2
database?

    As we know db2 has no native boolean type, I thought
activerecord-jdbc-adapter can convert it automatically. But actually
    
        
            &lt;/pre&gt;
          &lt;/blockquote&gt;
          &lt;pre wrap=&quot;&quot;&gt;as
  
      
          &lt;/pre&gt;
          &lt;blockquote type=&quot;cite&quot;&gt;
            &lt;pre wrap=&quot;&quot;&gt;Nick
replied, he has not worked on db2, so that this issue has not been
    
        
            &lt;/pre&gt;
          &lt;/blockquote&gt;
          &lt;pre wrap=&quot;&quot;&gt;taken
  
      
          &lt;/pre&gt;
          &lt;blockquote type=&quot;cite&quot;&gt;
            &lt;pre wrap=&quot;&quot;&gt;care of.
 
    Then every time when I need to assign/fetch I have to convert it
manually: from 'Yes', 'True', TrueClass, FalseClass... to smallint 1,
    
        
            &lt;/pre&gt;
          &lt;/blockquote&gt;
          &lt;pre wrap=&quot;&quot;&gt;0
  
      
          &lt;/pre&gt;
          &lt;blockquote type=&quot;cite&quot;&gt;
            &lt;pre wrap=&quot;&quot;&gt;or
reverse.

    I shout here just want to know if anyone encountered same problem
    
        
            &lt;/pre&gt;
          &lt;/blockquote&gt;
          &lt;pre wrap=&quot;&quot;&gt;or
  
      
          &lt;/pre&gt;
          &lt;blockquote type=&quot;cite&quot;&gt;
            &lt;pre wrap=&quot;&quot;&gt;even better someone has solved it out? Actually I really like to push
    
        
            &lt;/pre&gt;
          &lt;/blockquote&gt;
          &lt;pre wrap=&quot;&quot;&gt;a
  
      
          &lt;/pre&gt;
          &lt;blockquote type=&quot;cite&quot;&gt;
            &lt;pre wrap=&quot;&quot;&gt;batch for it.

Regards,
Andy
  
    
        
            &lt;/pre&gt;
          &lt;/blockquote&gt;
          &lt;pre wrap=&quot;&quot;&gt;---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    &lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    &lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;



  
      
          &lt;/pre&gt;
        &lt;/blockquote&gt;
        &lt;pre wrap=&quot;&quot;&gt;    
        &lt;/pre&gt;
      &lt;/blockquote&gt;
      &lt;pre wrap=&quot;&quot;&gt;  
      &lt;/pre&gt;
    &lt;/blockquote&gt;
    &lt;pre wrap=&quot;&quot;&gt;
    &lt;/pre&gt;
  &lt;/blockquote&gt;
  &lt;pre wrap=&quot;&quot;&gt;&lt;!----&gt;
  &lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/body&gt;
&lt;/html&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Rails-on-JRuby%2C-activerecord-jdbc-adapter%2C-db2-boolean-type-tp26370873p26428952.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26428002</id>
	<title>Re: include_package strangeness</title>
	<published>2009-11-19T07:14:50Z</published>
	<updated>2009-11-19T07:14:50Z</updated>
	<author>
		<name>gin</name>
	</author>
	<content type="html">Sorry for joining the ancient thread now - just noticed it.
&lt;br&gt;&lt;br&gt;&amp;gt; referencing the classes first is a pretty good solution
&lt;br&gt;&lt;br&gt;I think the best way to deal with this is the same as for extending
&lt;br&gt;classes that we know exist already: use class_eval.
&lt;br&gt;It can hit 2 birds with 1 stone: 1) should work safely with
&lt;br&gt;include_package, &amp;nbsp;2) in general, it will complain if you were
&lt;br&gt;&amp;quot;extending&amp;quot; the wrong class by mistake (which IMHO is a common annoyance).
&lt;br&gt;&lt;br&gt;So:
&lt;br&gt;MyJavaClass.class_eval do
&lt;br&gt;&amp;nbsp; &amp;nbsp; def my_extension
&lt;br&gt;&amp;nbsp; &amp;nbsp; end
&lt;br&gt;end
&lt;br&gt;&lt;br&gt;rather than:
&lt;br&gt;&lt;br&gt;class MyJavaClass
&lt;br&gt;&amp;nbsp; &amp;nbsp; def my_extension
&lt;br&gt;&amp;nbsp; &amp;nbsp; end
&lt;br&gt;end
&lt;br&gt;&lt;br&gt;Gergo
&lt;br&gt;&lt;br&gt;2009/7/21 Charles Oliver Nutter &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26428002&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;headius@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Fri, Jul 17, 2009 at 3:05 PM, Timothy
&lt;br&gt;&amp;gt; Hanson&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26428002&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;thanson@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; I'm extending Java classes in Ruby, but there's one odd catch. I use include_package to pull the whole Java package into a Ruby module. The problem is that the classes are defined lazily, so if my extension is defined before the Java entity is referenced, rather than &amp;quot;extending&amp;quot; the java class, I hide it. Eg:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Yeah, this is a known limitation of include_package. Since it just
&lt;br&gt;&amp;gt; installs a const_missing hook, it's subject to constant lookup
&lt;br&gt;&amp;gt; behaviors. In this case, it does not fire the hook when you just open
&lt;br&gt;&amp;gt; a class, because you could honestly just be defining a new class.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Your workaround of referencing the classes first is a pretty good
&lt;br&gt;&amp;gt; solution. We've also hoped that some day we could include a package
&lt;br&gt;&amp;gt; indexing tool that eagerly defines the constants, but that has never
&lt;br&gt;&amp;gt; happened. If someone wanted to try to integrate Jython's package
&lt;br&gt;&amp;gt; indexer, the code is available here:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://code.google.com/p/jvm-language-runtime/source/browse/#svn/trunk/packagecache&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/p/jvm-language-runtime/source/browse/#svn/trunk/packagecache&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; - Charlie
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe from this list, please visit:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;    &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/include_package-strangeness-tp24540846p26428002.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26427952</id>
	<title>Re: [ANN] Using JRuby+Java to prototype audio VST plugins</title>
	<published>2009-11-19T07:11:04Z</published>
	<updated>2009-11-19T07:11:04Z</updated>
	<author>
		<name>Jon M</name>
	</author>
	<content type="html">I forgot to mention that as of 0.5.0, FFI provides both mswin32 and mingw32 &amp;quot;fat&amp;quot; (both 1.8 and 1.9) binary gems so that &amp;quot;gem install ffi&amp;quot; should Just Work for Windows users.
&lt;br&gt;&lt;br&gt;Also (a bit off topic), for those wanting to do so, we've had success with Windows users building FFI from source using RubyInstallers &lt;a href=&quot;http://wiki.github.com/oneclick/rubyinstaller/development-kit&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.github.com/oneclick/rubyinstaller/development-kit&lt;/a&gt;&lt;br&gt;&lt;br&gt;Jon
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-ANN--Using-JRuby%2BJava-to-prototype-audio-VST-plugins-tp26417763p26427952.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26427603</id>
	<title>Re: [ANN] Using JRuby+Java to prototype audio VST plugins</title>
	<published>2009-11-19T06:50:00Z</published>
	<updated>2009-11-19T06:50:00Z</updated>
	<author>
		<name>Jon M</name>
	</author>
	<content type="html">&amp;gt; Is there a chance to see FFI working on windows ?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; cheers and thanks for the feedback,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thibaut
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.learnivore.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.learnivore.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;Actually, FFI as of 0.5.0 is working GREAT on Windows for me so far!
&lt;br&gt;&lt;br&gt;You'll probably dig this post &lt;a href=&quot;http://groups.google.com/group/ruby-ffi/browse_thread/thread/5be3b2be2e75dc3a&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ruby-ffi/browse_thread/thread/5be3b2be2e75dc3a&lt;/a&gt;&amp;nbsp;of FFI RubyGame.
&lt;br&gt;&lt;br&gt;FYI, as part of the RubyInstaller project &lt;a href=&quot;http://rubyinstaller.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://rubyinstaller.org/&lt;/a&gt;&amp;nbsp;, we're tracking FFI's gem status at &lt;a href=&quot;http://wiki.github.com/oneclick/rubyinstaller/gem-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.github.com/oneclick/rubyinstaller/gem-list&lt;/a&gt;&amp;nbsp;. &amp;nbsp;In addition, Wayne and the rest of Team FFI at &lt;a href=&quot;http://groups.google.com/group/ruby-ffi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ruby-ffi&lt;/a&gt;&amp;nbsp;are very helpful.
&lt;br&gt;&lt;br&gt;I'm also evaluating what it would look like as a bundled part of RubyInstaller in site_ruby for both 1.8 and 1.9.
&lt;br&gt;&lt;br&gt;Finally, when I get a few minutes here and there, I'm trying to finish &lt;a href=&quot;http://wiki.github.com/ffi/ffi/windows-examples&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.github.com/ffi/ffi/windows-examples&lt;/a&gt;&amp;nbsp;(and &lt;a href=&quot;http://wiki.github.com/ffi/ffi/core-concepts&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.github.com/ffi/ffi/core-concepts&lt;/a&gt;) to help jumpstart Windows folks into starting to play more with FFI.
&lt;br&gt;&lt;br&gt;Jon
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-ANN--Using-JRuby%2BJava-to-prototype-audio-VST-plugins-tp26417763p26427603.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26427548</id>
	<title>Re: [ANN] Using JRuby+Java to prototype audio VST  plugins</title>
	<published>2009-11-19T06:46:34Z</published>
	<updated>2009-11-19T06:46:34Z</updated>
	<author>
		<name>Vladimir Sizikov-2</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;On Thu, Nov 19, 2009 at 3:34 PM, Thibaut Barrère
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26427548&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;thibaut.barrere@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; Looks very cool.  I just did a quick code drive-by at your GitHub repo and
&lt;br&gt;&amp;gt;&amp;gt; couldn't help but wonder if implementing via &lt;a href=&quot;http://github.com/ffi/ffi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://github.com/ffi/ffi&lt;/a&gt;&amp;nbsp;might
&lt;br&gt;&amp;gt;&amp;gt; be even more interesting.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; it would be - I thought about it at first, but at the time ffi didn't work
&lt;br&gt;&amp;gt; on windows (I used jVSTwRapper to provide portability).
&lt;br&gt;&amp;gt; Is there a chance to see FFI working on windows ?
&lt;br&gt;&lt;br&gt;FFI should work on Windows fine. At least, in x32 mode.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&amp;nbsp; --Vladimir
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-ANN--Using-JRuby%2BJava-to-prototype-audio-VST-plugins-tp26417763p26427548.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26427480</id>
	<title>Re: Problem with RSpec+Maven+jruby-complete.jar</title>
	<published>2009-11-19T06:42:00Z</published>
	<updated>2009-11-19T06:42:00Z</updated>
	<author>
		<name>kristian-2</name>
	</author>
	<content type="html">thanx
&lt;br&gt;&lt;br&gt;On Thu, Nov 19, 2009 at 8:01 PM, Vladimir Sizikov &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26427480&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vsizikov@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Tue, Nov 17, 2009 at 5:34 AM, kristian &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26427480&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;m.kristian@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; I filed I bug
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://jira.codehaus.org/browse/JRUBY-4238&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jira.codehaus.org/browse/JRUBY-4238&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; OK, so both bugs have been fixed:
&lt;br&gt;&amp;gt; - &lt;a href=&quot;http://jira.codehaus.org/browse/JRUBY-4238&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jira.codehaus.org/browse/JRUBY-4238&lt;/a&gt;&lt;br&gt;&amp;gt; - &lt;a href=&quot;http://jira.codehaus.org/browse/JRUBY-4249&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jira.codehaus.org/browse/JRUBY-4249&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; And executing the spec task via rake from jruby-complete.jar should
&lt;br&gt;&amp;gt; work now, verified on Windows and Linux.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;  --Vladimir
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe from this list, please visit:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;    &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Kristian Meier + Saumya Sharma + Sanuka Meier
&lt;br&gt;Vadakkethu House,
&lt;br&gt;Edayanmula West PO - 689532,
&lt;br&gt;Pathanamthitta District, Kerala, INDIA
&lt;br&gt;&lt;br&gt;tel: +91 468 2319577
&lt;br&gt;&lt;br&gt;protect your privacy while searching the net: www.ixquick.com
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_=_
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;q(-_-)p
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; '_) (_`
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /__/ &amp;nbsp;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_(&amp;lt;_ &amp;nbsp; / )_
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; (__\_\_|_/__)
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-with-RSpec%2BMaven%2Bjruby-complete.jar-tp26285097p26427480.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26427360</id>
	<title>Re: [ANN] Using JRuby+Java to prototype audio VST  plugins</title>
	<published>2009-11-19T06:34:53Z</published>
	<updated>2009-11-19T06:34:53Z</updated>
	<author>
		<name>thbar</name>
	</author>
	<content type="html">&lt;div class=&quot;gmail_quote&quot;&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;Looks very cool.  I just did a quick code drive-by at your GitHub repo and couldn&amp;#39;t help but wonder if implementing via &lt;a href=&quot;http://github.com/ffi/ffi&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://github.com/ffi/ffi&lt;/a&gt; might be even more interesting.&lt;br&gt;

&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;it would be - I thought about it at first, but at the time ffi didn&amp;#39;t work on windows (I used jVSTwRapper to provide portability).&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Is there a chance to see FFI working on windows ?&lt;/div&gt;

&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;cheers and thanks for the feedback,&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Thibaut&lt;/div&gt;&lt;div&gt;--&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://www.learnivore.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.learnivore.com&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-ANN--Using-JRuby%2BJava-to-prototype-audio-VST-plugins-tp26417763p26427360.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26427292</id>
	<title>Re: Problem with RSpec+Maven+jruby-complete.jar</title>
	<published>2009-11-19T06:31:21Z</published>
	<updated>2009-11-19T06:31:21Z</updated>
	<author>
		<name>Vladimir Sizikov-2</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;On Tue, Nov 17, 2009 at 5:34 AM, kristian &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26427292&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;m.kristian@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; I filed I bug
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://jira.codehaus.org/browse/JRUBY-4238&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jira.codehaus.org/browse/JRUBY-4238&lt;/a&gt;&lt;br&gt;&lt;br&gt;OK, so both bugs have been fixed:
&lt;br&gt;- &lt;a href=&quot;http://jira.codehaus.org/browse/JRUBY-4238&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jira.codehaus.org/browse/JRUBY-4238&lt;/a&gt;&lt;br&gt;- &lt;a href=&quot;http://jira.codehaus.org/browse/JRUBY-4249&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jira.codehaus.org/browse/JRUBY-4249&lt;/a&gt;&lt;br&gt;&lt;br&gt;And executing the spec task via rake from jruby-complete.jar should
&lt;br&gt;work now, verified on Windows and Linux.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&amp;nbsp; --Vladimir
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-with-RSpec%2BMaven%2Bjruby-complete.jar-tp26285097p26427292.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26427072</id>
	<title>Re: [ANN] Using JRuby+Java to prototype audio VST plugins</title>
	<published>2009-11-19T06:16:25Z</published>
	<updated>2009-11-19T06:16:25Z</updated>
	<author>
		<name>Jon M</name>
	</author>
	<content type="html">&amp;gt; some feedback of a JRuby project of mine: I used JRuby+Java to create audio
&lt;br&gt;&amp;gt; (VST) plugins. Not the typical project, but was interesting from an interop
&lt;br&gt;&amp;gt; point of view :)
&lt;br&gt;&lt;br&gt;Looks very cool. &amp;nbsp;I just did a quick code drive-by at your GitHub repo and couldn't help but wonder if implementing via &lt;a href=&quot;http://github.com/ffi/ffi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://github.com/ffi/ffi&lt;/a&gt;&amp;nbsp;might be even more interesting.
&lt;br&gt;&lt;br&gt;Jon
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-ANN--Using-JRuby%2BJava-to-prototype-audio-VST-plugins-tp26417763p26427072.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26421260</id>
	<title>Re: Rails on JRuby, activerecord-jdbc-adapter, db2 boolean type</title>
	<published>2009-11-19T02:22:37Z</published>
	<updated>2009-11-19T02:22:37Z</updated>
	<author>
		<name>Andy Hu</name>
	</author>
	<content type="html">Peter, it's great! I will try to see in a few weeks after I come over this hard time.
&lt;br&gt;&lt;br&gt;Why not submitted to Nick's project? Any concerns or?
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Pete Helgren wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;No. &amp;nbsp;Not a problem at all. &amp;nbsp;I have had some issues and put together a 
&lt;br&gt;AR-JDBC driver (still not submitted to Nick's project...yet). &amp;nbsp;There is 
&lt;br&gt;a boolean to int cast in the driver (I think).
&lt;br&gt;&lt;br&gt;You can find it here:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.petesworkshop.com/downloads/jdbc_db2i.rb&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.petesworkshop.com/downloads/jdbc_db2i.rb&lt;/a&gt;&lt;br&gt;&lt;br&gt;You'll need to update jdbc_adapter_spec.rb to list the driver. You might 
&lt;br&gt;want to give it a try. &amp;nbsp;It is written for DB2 for i.
&lt;br&gt;&lt;br&gt;Pete
&lt;br&gt;&lt;br&gt;Andy Hu wrote:
&lt;br&gt;&amp;gt; Thanks Pete, you're right. DB2 is running on IBM i machine. That's a problem?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Pete Helgren wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; It sounds like a LUW installation. &amp;nbsp;IBM i has some syntactical 
&lt;br&gt;&amp;gt;&amp;gt; differences to the DB2 most folks know. &amp;nbsp;Since you indicated &amp;nbsp;DB 9 in a 
&lt;br&gt;&amp;gt;&amp;gt; later post, I can pretty much rule out the i.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; My rails experience hasn't been quite as &amp;quot;vanilla&amp;quot; when it comes to 
&lt;br&gt;&amp;gt;&amp;gt; legacy schemas. &amp;nbsp;On current (21st century) &amp;nbsp;schemas, no problems. &amp;nbsp;But 
&lt;br&gt;&amp;gt;&amp;gt; the legacy schemas (30 years old) I work with, embedded # in column 
&lt;br&gt;&amp;gt;&amp;gt; names, multi-column keys and a few other things have made it a challenge.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Pete
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Finegan, Richard [HDS - WC] wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; i don't know if they are IBM i machines, the machines themselves are
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; thousands of miles away so i've never seen the actual hardware
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; unfortunately a few google searches didn't reveal to me any way to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; identify them from the command line either
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Richard F.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; From: Pete Helgren [mailto:Pete@valadd.com] 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Sent: Tuesday, November 17, 2009 1:25 PM
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To: user@jruby.codehaus.org
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Subject: Re: [jruby-user] Rails on JRuby, activerecord-jdbc-adapter, db2
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; boolean type
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Richard,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I am curious. &amp;nbsp;Is the &amp;quot;legacy&amp;quot; database on an IBM i (AS/400) by chance?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; That happens to be the DB2 platform I am most familiar with and I have 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; had a few challenges. &amp;nbsp;Embedded '#' in column names for one.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; No real reason for the query. &amp;nbsp;There are only a few DB/2 for i5/OS folks
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; on the planet using JRuby so I got curious.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Pete
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Finegan, Richard [HDS - WC] wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; i'm working on a project using JRuby, Rails, and DB2...the db2
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; database
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; is a legacy database schema and i don't bother converting between 0s
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; and
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 1s or 'Y's and 'N's to boolean types
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; no special gotchas and everything works great, just in case you wanted
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; the extra reassurance for your project...sorry, this probably isn't
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; much
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; help!
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Richard F.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; From: Andy Hu [mailto:andyhu1007@gmail.com] 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Sent: Monday, November 16, 2009 4:14 AM
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; To: user@jruby.codehaus.org
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Subject: [jruby-user] Rails on JRuby, activerecord-jdbc-adapter, db2
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; boolean type
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi All,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; Has anyone worked on project based on Rails on JRuby and db2
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; database?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; As we know db2 has no native boolean type, I thought
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; activerecord-jdbc-adapter can convert it automatically. But actually
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; as
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Nick
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; replied, he has not worked on db2, so that this issue has not been
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; taken
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; care of.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; Then every time when I need to assign/fetch I have to convert it
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; manually: from 'Yes', 'True', TrueClass, FalseClass... to smallint 1,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 0
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; or
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; reverse.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; I shout here just want to know if anyone encountered same problem
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; or
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; even better someone has solved it out? Actually I really like to push
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; a
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; batch for it.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Andy
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe from this list, please visit:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe from this list, please visit:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Rails-on-JRuby%2C-activerecord-jdbc-adapter%2C-db2-boolean-type-tp26370873p26421260.html" />
</entry>

</feed>
