[Ironruby-core] IronRuby and MarkLogic
N. F.
lists at ruby-forum.com
Thu Nov 29 11:43:29 EST 2007
Eric Nicholson wrote:
> I think instead of
> $content_source::NewSession()
>
> you want
> $content_source.NewSession()
>
> :: is a scoping operator.
>
> -Eric
Thanks Eric...but still the same error. Here is the whole error output:
System.MissingMethodException: undefined local variable or method
`NewSession' f
or
#<Marklogic::Xcc::Impl::ContentSourceImpl:0x0000058>:Ruby.Builtins.RubyClass
at Ruby.Builtins.Kernel.MethodMissing(CodeContext context, Object
self, Block
Param block, SymbolId name, Object[] args)
at Microsoft.Scripting.Utils.InvokeHelper`6.Invoke(Object arg0,
Object arg1,
Object arg2, Object arg3, Object arg4)
at Microsoft.Scripting.Utils.ReflectedCaller.Invoke(Object[] args)
at Microsoft.Scripting.Ast.MethodCallExpression.InvokeMethod(Object
instance,
Object[] parameters)
at
Microsoft.Scripting.Ast.MethodCallExpression.DoEvaluate(CodeContext
contex
t)
at Microsoft.Scripting.Ast.ReturnStatement.DoExecute(CodeContext
context)
at Microsoft.Scripting.Ast.Statement.Execute(CodeContext context)
at Microsoft.Scripting.Actions.StandardRule`1.ExecuteTarget(Object
site, Code
Context context, Object[] args)
at
Microsoft.Scripting.Actions.ActionBinder.UpdateSiteAndExecute[T](CodeConte
xt callerContext, DynamicAction action, Object[] args, Object site, T&
target, R
uleSet`1& rules)
at
Microsoft.Scripting.Actions.FastDynamicSite`2.UpdateBindingAndInvoke(T0
ar
g0)
at
Microsoft.Scripting.Actions.DynamicSiteHelpers.UninitializedTargetHelper`7
.FastInvoke1(FastDynamicSite`2 site, T0 arg0)
at Microsoft.Scripting.Actions.FastDynamicSite`2.Invoke(T0 arg0)
at helloml$mod_1.main$1() in helloml.rb:line 0
at Ruby.Runtime.RubyOps.RunMain(CodeContext context, Object main)
at helloml$mod_1.Initialize(CodeContext ) in helloml.rb:line 0
at Microsoft.Scripting.ScriptCode.Run(CodeContext codeContext,
Boolean tryEva
luate)
at Microsoft.Scripting.ScriptScope.Execute()
at Ruby.Hosting.RubyCommandLine.RunFile(String path)
--
Posted via http://www.ruby-forum.com/.
More information about the Ironruby-core
mailing list