OrientDB 空间查询抛出错误:java.lang.NoSuchFieldError: INSTANCE

杰夫一世

我正在尝试评估 OrientDB 及其空间功能,但似乎无法从浏览查询窗口运行简单查询

我将 orientdb-spatial-2.2.30-dist.jar 放在 /PATH/orientdb-community-importers-2.2.29/lib/ 并反弹了 orient db

这是我创建空间索引的方式

OrientVertexType vertexType = graph.getVertexType("Foo");
ODocument location = new ODocument("OPoint");
vertexType.createProperty("location", OType.EMBEDDED, location.getSchemaClass());
ODocument metadata = new ODocument();
metadata.field("ignoreNullValues", "true");
vertexType.createIndex("Foo.location", "SPATIAL", null, metadata, "LUCENE", new String[]{"location"});

一切正常

这是我运行的查询。(我也运行了其他几个查询,但一直得到相同的堆栈跟踪......)

select from Foo where ST_DWithin(location, "POINT (-97.822 37.751)",20.0) = true

OrientDB 信息:Studio 版本:2.2 OrientDB 版本:2.2.29 操作系统:Mac

堆栈跟踪:

java.lang.NoSuchFieldError: INSTANCE
    at com.orientechnologies.spatial.functions.OSpatialFunctionAbstractIndexable.getDb(OSpatialFunctionAbstractIndexable.java:69)
    at com.orientechnologies.spatial.functions.OSpatialFunctionAbstractIndexable.searchForIndex(OSpatialFunctionAbstractIndexable.java:57)
    at com.orientechnologies.spatial.functions.OSpatialFunctionAbstractIndexable.results(OSpatialFunctionAbstractIndexable.java:73)
    at com.orientechnologies.spatial.functions.OSTDistanceSphereFunction.estimate(OSTDistanceSphereFunction.java:82)
    at com.orientechnologies.orient.core.sql.parser.OFunctionCall.estimateIndexedFunction(OFunctionCall.java:135)
    at com.orientechnologies.orient.core.sql.parser.OLevelZeroIdentifier.estimateIndexedFunction(OLevelZeroIdentifier.java:60)
    at com.orientechnologies.orient.core.sql.parser.OBaseIdentifier.estimateIndexedFunction(OBaseIdentifier.java:57)
    at com.orientechnologies.orient.core.sql.parser.OBaseExpression.estimateIndexedFunction(OBaseExpression.java:96)
    at com.orientechnologies.orient.core.sql.parser.OExpression.estimateIndexedFunction(OExpression.java:171)
    at com.orientechnologies.orient.core.sql.parser.OBinaryCondition.estimateIndexed(OBinaryCondition.java:91)
    at com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect.tryIndexedFunctions(OCommandExecutorSQLSelect.java:2318)
    at com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect.searchForIndexes(OCommandExecutorSQLSelect.java:2101)
    at com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect.searchInClasses(OCommandExecutorSQLSelect.java:1024)
    at com.orientechnologies.orient.core.sql.OCommandExecutorSQLResultsetAbstract.assignTarget(OCommandExecutorSQLResultsetAbstract.java:211)
    at com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect.assignTarget(OCommandExecutorSQLSelect.java:527)
    at com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect.executeSearch(OCommandExecutorSQLSelect.java:509)
    at com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect.execute(OCommandExecutorSQLSelect.java:485)
    at com.orientechnologies.orient.core.sql.OCommandExecutorSQLDelegate.execute(OCommandExecutorSQLDelegate.java:70)
    at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.executeCommand(OAbstractPaginatedStorage.java:3340)
    at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.command(OAbstractPaginatedStorage.java:3278)
    at com.orientechnologies.orient.core.command.OCommandRequestTextAbstract.execute(OCommandRequestTextAbstract.java:69)
    at com.orientechnologies.orient.server.network.protocol.http.command.post.OServerCommandPostCommand.execute(OServerCommandPostCommand.java:106)
    at com.orientechnologies.orient.graph.server.command.OServerCommandPostCommandGraph.execute(OServerCommandPostCommandGraph.java:37)
    at com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpAbstract.service(ONetworkProtocolHttpAbstract.java:173)
    at com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpAbstract.execute(ONetworkProtocolHttpAbstract.java:629)
    at com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:81)
$ANSI{green {db=mydb}} Exception `22001A4F` in storage `mydb`
狼来了

您正在使用带有 2.2.29 的插件空间版本 2.2.30。版本应该是一样的。尝试升级 OrientDB 或降级 Spatial 插件

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

java.lang.NoSuchFieldError:INSTANCE

java.lang.NoSuchFieldError: INSTANCE - WebDriver

HttpClientBuilder-java.lang.NoSuchFieldError:INSTANCE

java.lang.NoSuchFieldError:默认

java.lang.NoSuchFieldError:反思

HTTPClient示例-线程“主”中的异常java.lang.NoSuchFieldError:INSTANCE

线程“主”中的异常java.lang.NoSuchFieldError:AWS SNS中的INSTANCE

NullnessChecker错误:java.lang.NoSuchFieldError:释放

java.lang.NoSuchFieldError:IBM_JAVA

Java应用程序中Mashape Unirest的java.lang.NoSuchFieldError:org.apache.http.message.BasicLineFormatter.INSTANCE

更改类后java.lang.NoSuchFieldError

ScalaFx MouseEvent:java.lang.NoSuchFieldError:返回

java.lang.NoSuchMethodError:okhttp3.internal.Platform.log和线程“ Okhttp Dispatcher”中的异常java.lang.NoSuchFieldError:INSTANCE

正在创建CA ...意外错误java.lang.NoSuchFieldError:BasicConstraints

“java.lang.NoSuchFieldError的:超级”异常 - 错误的编译器?

Spring 3.1 entityManagerFactory java.lang.NoSuchFieldError:NULL错误

春季:java.lang.NoSuchFieldError:IMPORT_BEAN_NAME_GENERATOR

java.lang.NoSuchFieldError的:ACCEPT_CASE_INSENSITIVE_VALUES

使用 AWS Amplify API 時的 Android java.lang.NoSuchFieldError

java.lang.NoSuchFieldError: 运行 JUnit 测试时的边缘

使用ScalaTest时出现java.lang.NoSuchFieldError

线程“主”中的异常java.lang.NoSuchFieldError:TRACE

GPIO - java.lang.NoSuchFieldError: device_reference

JSON解析器-java.lang.NoSuchFieldError:defaultReader

Eclipse无法启动:java.lang.NoSuchFieldError:url

java.lang.NoSuchFieldError:Apache HttpComonents和Wildfly中的实例

由第3方模块引起的java.lang.NoSuchFieldError

NoSuchFieldError Java

Osmdroid (android 25):显示离线 Mapsforge 文件给出错误:java.lang.NoSuchFieldError: No field DEBUG_TILE_PROVIDERS