【发布时间】:2014-05-23 12:48:22
【问题描述】:
Orient DB 在 orientdb-community-1.7-rc2 中存在和问题
当我尝试如下创建一个小函数时
var db = orient.getDatabase()
return 'test';
并执行它我得到以下错误
在位置 #0 解析脚本时出错:执行脚本时出错 脚本:newPOJS ------^ sun.org.mozilla.javascript.internal.WrappedException: Wrapped com.orientechnologies.orient.core.exception.OConfigurationException: No database instance found in context (#2) in at line number 2 Wrapped com.orientechnologies.orient.core.exception.OConfigurationException: No database instance found in context (#2) 在上下文中找不到数据库实例
但是,当我得到 Graph 而不是数据库时,以下函数可以正常工作
var db = orient.getGraph()
return 'test';
任何人都知道问题出在哪里,
我也进行了以下配置更改
<handler class="com.orientechnologies.orient.server.handler.OServerSideScriptInterpreter">
<parameters>
<parameter value="true" name="enabled"/>
</parameters>
</handler>
【问题讨论】:
标签: javascript orientdb