提供程序com.ontotext.trree.plugin.externalsync.impl.lucene4.Lucene4Plugin无法实例化

时间:2019-02-25 17:15:47

标签: graphdb

我正在使用GraphDB Free v8.8.1运行时,并且在存储库初始化期间收到以下错误:

25055 [main] INFO  com.ontotext.config.AbstractParameter  - Configured parameter 'register-plugins' to default value '[]'
25055 [main] INFO  com.ontotext.trree.free.GraphDBFreeSchemaRepository  - Registering external plugins...
25056 [main] INFO  com.ontotext.trree.free.GraphDBFreeSchemaRepository  - Scanning /home/tioannid/graphdb-free-8.8.1/lib/plugins/sparql-mm for plugins
25057 [main] INFO  com.ontotext.trree.sdk.impl.PluginManager  - Registering plugin sparql-mm
25058 [main] INFO  com.ontotext.trree.free.GraphDBFreeSchemaRepository  - Scanning /home/tioannid/graphdb-free-8.8.1/lib/plugins/lucene-connector for plugins
25064 [main] ERROR com.ontotext.trree.sdk.impl.ServiceLocator  - Provider com.ontotext.trree.plugin.externalsync.impl.lucene4.Lucene4Plugin could not be instantiated
java.lang.NoClassDefFoundError: org/json/simple/parser/ParseException
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
    at java.lang.Class.getConstructor0(Class.java:3075)
    at java.lang.Class.newInstance(Class.java:412)
    at com.ontotext.trree.sdk.impl.ServiceLocator.locateExternal(ServiceLocator.java:93)
    at com.ontotext.trree.OwlimSchemaRepository.initPlugins(OwlimSchemaRepository.java:1998)
    at com.ontotext.trree.OwlimSchemaRepository.initializeInternal(OwlimSchemaRepository.java:244)
    at org.eclipse.rdf4j.sail.helpers.AbstractSail.initialize(AbstractSail.java:188)
    at org.eclipse.rdf4j.repository.sail.SailRepository.initializeInternal(SailRepository.java:151)
    at org.eclipse.rdf4j.repository.base.AbstractRepository.initialize(AbstractRepository.java:34)
    at org.eclipse.rdf4j.repository.manager.LocalRepositoryManager.createRepository(LocalRepositoryManager.java:273)
    at org.eclipse.rdf4j.repository.manager.RepositoryManager.getRepository(RepositoryManager.java:424)
    at gr.uoa.di.rdf.Geographica2.graphdbsut.GraphDBSUT$GraphDB.excGeoSPARQLDDLQuery(GraphDBSUT.java:255)
    at gr.uoa.di.rdf.Geographica2.graphdbsut.RepoUtil.main(RepoUtil.java:27)
Caused by: java.lang.ClassNotFoundException: org.json.simple.parser.ParseException
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at com.ontotext.trree.sdk.impl.ServiceLocator$ExternalPluginLoader.loadClass(ServiceLocator.java:163)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 14 more
25066 [main] WARN  com.ontotext.trree.free.GraphDBFreeSchemaRepository  - No plugins found at /home/tioannid/graphdb-free-8.8.1/lib/plugins/lucene-connector
25066 [main] INFO  com.ontotext.trree.free.GraphDBFreeSchemaRepository  - Scanning /home/tioannid/graphdb-free-8.8.1/lib/plugins/dependencies-plugin for plugins
25070 [main] INFO  com.ontotext.trree.sdk.impl.PluginManager  - Registering plugin dependencies-plugin

GraphDB发行版中是否缺少某些内容?

1 个答案:

答案 0 :(得分:0)

这可能是由于不兼容的Lucene连接器配置引起的。您是否有任何外部插件(VM Options中的-Dregister-external-plugins = ....)。还要确保在graphdb / lib目录中有json-simple-1.1.1.jar。您对发行版本身进行了任何更改吗?