【发布时间】:2015-01-25 14:36:45
【问题描述】:
当我尝试访问芝麻服务器中的存储库时,我的项目中运行了以下代码:
try{
String serverUrl = "http://localhost:8080/openrdf-sesame";
String repositoryID ="200";
RepositoryProvider.getRepositoryManager(serverUrl);
Repository myRepository =new HTTPRepository(serverUrl,repositoryID);
myRepository.initialize();
RepositoryConnection con= myRepository.getConnection();
}
我什至使用调试来定位错误的来源,但它似乎来自:
RepositoryConnection con= myRepository.getConnection();
当我运行代码时,出现以下错误。
HTTP Status 500 -
type Exception report
message
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.NoSuchMethodError: org.openrdf.model.impl.ValueFactoryImpl.getInstance()Lorg/openrdf/model/impl/ValueFactoryImpl;
note The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 3.1.1 logs.
【问题讨论】:
标签: java repository sesame