Hi Asiri,
On Thu, Jul 23, 2009 at 5:08 AM, Asiri
Rathnayake<[email protected]> wrote:
> Hi,
>
> I'm have ported JSR223-JRuby Engine to work with JRuby 1.3.0 version (few
> minor adjustments only). However when using this engine with JRuby 1.3.0 I
> get an annoying error log which says:
>
> "Error, could not compile; pass -d or -J-Djruby.jit.logging.verbose=true for
> more details"
>
> Following is the engine code which generates the error log:
>
> <code>
> private Object evalNodeWithAutoTermination(Node node) throws Exception
> {
> try {
> return rubyToJava(runtime.runNormally(node)); // This line
> } finally {
> try {
> JavaEmbedUtils.terminate(runtime);
> } catch (RaiseException e) {
> RubyException re = e.getException();
> runtime.printError(re);
> if (!runtime.fastGetClass("SystemExit").isInstance(re)) {
> throw new ScriptException(e);
> }
> }
> }
> }
> </code>
>
> It is the "runtime.runNormally(node)" line that causes the error log.
This issue was fixed in JRuby 1.3.0RC2 or RC1 (Sorry, I don't remember
version number exactly). So, current, JRuby 1.3.1, does not cause this
error anymore. If you don't have any reason to keep using JRuby 1.3.0,
try your code on JRuby 1.3.1.
-Yoko
>
> What am I doing wrong and what can I do to fix this? (Note: I'm not an
> experienced ruby developer)
>
> Also, it would be really cool if JSR223 engine for jruby can be ditributed
> with JRuby itself, this will make a lot of probelms go away.
>
> Thanks.
>
> - Asiri
>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email