Tim Coffman
|
Posted: August 17, 2010 21:20 by Tim Coffman
|
Following the RedBridge tutorials on embedding JRuby, I have created a scripting containers_scriptingContainer = new org.jruby.embed.ScriptingContainer ( org.jruby.embed.LocalContextScope.THREADSAFE, org.jruby.embed.LocalVariableBehavior.TRANSIENT ) ; Then I parsed some code evalUnit = s_scriptingContainer.parse( "def myfunc\n puts \"myfunc!\"; end; myfunc()" ) ; Finally, I tried to run the code: evalUnit.run() But I get a NullPointerException at StaticScope.determineModule() line 348 because getEnclosingScope() returns null. I definitely don't understand why this might be, so if you have any advice I welcome it. |
RedBridge Embedding tutorials - Encountering NullPointerException in StaticScope
Replies: 0 - Last Post: August 17, 2010 21:20
by: Tim Coffman
by: Tim Coffman
« Older Topic
» Newer Topic
showing 1 - 1 of 1
Replies: 0 - Last Post: August 17, 2010 21:20
by: Tim Coffman
by: Tim Coffman
« Older Topic
» Newer Topic






